mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
wip
This commit is contained in:
@@ -3064,14 +3064,14 @@ exports[`t-out (formerly t-raw tests) not escaping 1`] = `
|
||||
"function anonymous(context, extra
|
||||
) {
|
||||
// Template name: \\"test\\"
|
||||
let utils = this.constructor.utils;
|
||||
let insertValue = utils.insertValue;
|
||||
let scope = Object.create(context);
|
||||
let h = this.h;
|
||||
let c1 = [], p1 = {key:1};
|
||||
let vn1 = h('div', p1, c1);
|
||||
let _2 = scope['var'];
|
||||
if (_2 != null) {
|
||||
c1.push({text: _2});
|
||||
}
|
||||
insertValue(c1, _2)
|
||||
return vn1;
|
||||
}"
|
||||
`;
|
||||
@@ -3181,14 +3181,14 @@ exports[`t-out escaping 1`] = `
|
||||
"function anonymous(context, extra
|
||||
) {
|
||||
// Template name: \\"test\\"
|
||||
let utils = this.constructor.utils;
|
||||
let insertValue = utils.insertValue;
|
||||
let scope = Object.create(context);
|
||||
let h = this.h;
|
||||
let c1 = [], p1 = {key:1};
|
||||
let vn1 = h('span', p1, c1);
|
||||
let _2 = scope['var'];
|
||||
if (_2 != null) {
|
||||
c1.push({text: _2});
|
||||
}
|
||||
insertValue(c1, _2)
|
||||
return vn1;
|
||||
}"
|
||||
`;
|
||||
@@ -3197,14 +3197,14 @@ exports[`t-out escaping on a node 1`] = `
|
||||
"function anonymous(context, extra
|
||||
) {
|
||||
// Template name: \\"test\\"
|
||||
let utils = this.constructor.utils;
|
||||
let insertValue = utils.insertValue;
|
||||
let scope = Object.create(context);
|
||||
let h = this.h;
|
||||
let c1 = [], p1 = {key:1};
|
||||
let vn1 = h('span', p1, c1);
|
||||
let _2 = 'ok';
|
||||
if (_2 != null) {
|
||||
c1.push({text: _2});
|
||||
}
|
||||
insertValue(c1, _2)
|
||||
return vn1;
|
||||
}"
|
||||
`;
|
||||
@@ -3213,16 +3213,14 @@ exports[`t-out escaping on a node with a body 1`] = `
|
||||
"function anonymous(context, extra
|
||||
) {
|
||||
// Template name: \\"test\\"
|
||||
let utils = this.constructor.utils;
|
||||
let insertValue = utils.insertValue;
|
||||
let scope = Object.create(context);
|
||||
let h = this.h;
|
||||
let c1 = [], p1 = {key:1};
|
||||
let vn1 = h('span', p1, c1);
|
||||
let _2 = 'ok';
|
||||
if (_2 != null) {
|
||||
c1.push({text: _2});
|
||||
} else {
|
||||
c1.push({text: \`nope\`});
|
||||
}
|
||||
insertValue(c1, _2)
|
||||
return vn1;
|
||||
}"
|
||||
`;
|
||||
@@ -3231,16 +3229,14 @@ exports[`t-out escaping on a node with a body, as a default 1`] = `
|
||||
"function anonymous(context, extra
|
||||
) {
|
||||
// Template name: \\"test\\"
|
||||
let utils = this.constructor.utils;
|
||||
let insertValue = utils.insertValue;
|
||||
let scope = Object.create(context);
|
||||
let h = this.h;
|
||||
let c1 = [], p1 = {key:1};
|
||||
let vn1 = h('span', p1, c1);
|
||||
let _2 = scope['var'];
|
||||
if (_2 != null) {
|
||||
c1.push({text: _2});
|
||||
} else {
|
||||
c1.push({text: \`nope\`});
|
||||
}
|
||||
insertValue(c1, _2)
|
||||
return vn1;
|
||||
}"
|
||||
`;
|
||||
@@ -3249,14 +3245,14 @@ exports[`t-out literal 1`] = `
|
||||
"function anonymous(context, extra
|
||||
) {
|
||||
// Template name: \\"test\\"
|
||||
let utils = this.constructor.utils;
|
||||
let insertValue = utils.insertValue;
|
||||
let scope = Object.create(context);
|
||||
let h = this.h;
|
||||
let c1 = [], p1 = {key:1};
|
||||
let vn1 = h('span', p1, c1);
|
||||
let _2 = 'ok';
|
||||
if (_2 != null) {
|
||||
c1.push({text: _2});
|
||||
}
|
||||
insertValue(c1, _2)
|
||||
return vn1;
|
||||
}"
|
||||
`;
|
||||
@@ -3357,14 +3353,14 @@ exports[`t-out variable 1`] = `
|
||||
"function anonymous(context, extra
|
||||
) {
|
||||
// Template name: \\"test\\"
|
||||
let utils = this.constructor.utils;
|
||||
let insertValue = utils.insertValue;
|
||||
let scope = Object.create(context);
|
||||
let h = this.h;
|
||||
let c1 = [], p1 = {key:1};
|
||||
let vn1 = h('span', p1, c1);
|
||||
let _2 = scope['var'];
|
||||
if (_2 != null) {
|
||||
c1.push({text: _2});
|
||||
}
|
||||
insertValue(c1, _2)
|
||||
return vn1;
|
||||
}"
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user