[IMP] qweb: add template name in generated compiled code

This commit is contained in:
Géry Debongnie
2019-12-10 14:27:14 +01:00
committed by aab-odoo
parent 124211c18b
commit b890e7ceae
7 changed files with 395 additions and 199 deletions
+10 -5
View File
@@ -1,8 +1,9 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`animations t-transition combined with component 1`] = `
"function anonymous(context,extra
"function anonymous(context, extra
) {
// Template name: \\"Parent\\"
let utils = this.constructor.utils;
let QWeb = this.constructor;
let parent = context;
@@ -45,8 +46,9 @@ exports[`animations t-transition combined with component 1`] = `
`;
exports[`animations t-transition combined with t-component and t-if 1`] = `
"function anonymous(context,extra
"function anonymous(context, extra
) {
// Template name: \\"Parent\\"
let utils = this.constructor.utils;
let QWeb = this.constructor;
let parent = context;
@@ -91,8 +93,9 @@ exports[`animations t-transition combined with t-component and t-if 1`] = `
`;
exports[`animations t-transition combined with t-component, remove and re-add before transitionend 1`] = `
"function anonymous(context,extra
"function anonymous(context, extra
) {
// Template name: \\"__template__2\\"
let utils = this.constructor.utils;
let QWeb = this.constructor;
let parent = context;
@@ -137,8 +140,9 @@ exports[`animations t-transition combined with t-component, remove and re-add be
`;
exports[`animations t-transition with no delay/duration 1`] = `
"function anonymous(context,extra
"function anonymous(context, extra
) {
// Template name: \\"test\\"
let utils = this.constructor.utils;
var h = this.h;
let c1 = [], p1 = {key:1};
@@ -157,8 +161,9 @@ exports[`animations t-transition with no delay/duration 1`] = `
`;
exports[`animations t-transition, on a simple node (insert) 1`] = `
"function anonymous(context,extra
"function anonymous(context, extra
) {
// Template name: \\"test\\"
let utils = this.constructor.utils;
var h = this.h;
let c1 = [], p1 = {key:1};