From 401b2a5b486e3b7c4f019bbbf8db89634e2d9743 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Fri, 3 Jan 2020 13:01:17 +0100 Subject: [PATCH] oo --- src/qweb/qweb.ts | 1 + tests/component/component.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qweb/qweb.ts b/src/qweb/qweb.ts index f95d1c58..6e4d1a95 100644 --- a/src/qweb/qweb.ts +++ b/src/qweb/qweb.ts @@ -283,6 +283,7 @@ export class QWeb extends EventBus { fn: function(this: QWeb, context, extra) { const compiledFunction = this._compile(name, elem); template.fn = compiledFunction; + console.warn('CompiledFn', compiledFunction.toString()); return compiledFunction.call(this, context, extra); } }; diff --git a/tests/component/component.test.ts b/tests/component/component.test.ts index 696c13e1..79449588 100644 --- a/tests/component/component.test.ts +++ b/tests/component/component.test.ts @@ -2671,7 +2671,7 @@ describe("other directives with t-component", () => { expect(fixture.innerHTML).toBe("
B0B1
"); }); - test("t-set outside modified in t-foreach", async () => { + test.only("t-set outside modified in t-foreach", async () => { class SomeWidget extends Component { static template = xml`
@@ -2691,7 +2691,7 @@ describe("other directives with t-component", () => { expect(fixture.innerHTML).toBe("

Inloop: 0

Inloop: 1

EndLoop: 2

"); }); - test("t-set outside modified in t-foreach increment operator", async () => { + test.only("t-set outside modified in t-foreach increment operator", async () => { class SomeWidget extends Component { static template = xml`