mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
oo
This commit is contained in:
@@ -283,6 +283,7 @@ export class QWeb extends EventBus {
|
|||||||
fn: function(this: QWeb, context, extra) {
|
fn: function(this: QWeb, context, extra) {
|
||||||
const compiledFunction = this._compile(name, elem);
|
const compiledFunction = this._compile(name, elem);
|
||||||
template.fn = compiledFunction;
|
template.fn = compiledFunction;
|
||||||
|
console.warn('CompiledFn', compiledFunction.toString());
|
||||||
return compiledFunction.call(this, context, extra);
|
return compiledFunction.call(this, context, extra);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2671,7 +2671,7 @@ describe("other directives with t-component", () => {
|
|||||||
expect(fixture.innerHTML).toBe("<div><span>B0</span><span>B1</span></div>");
|
expect(fixture.innerHTML).toBe("<div><span>B0</span><span>B1</span></div>");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("t-set outside modified in t-foreach", async () => {
|
test.only("t-set outside modified in t-foreach", async () => {
|
||||||
class SomeWidget extends Component<any, any> {
|
class SomeWidget extends Component<any, any> {
|
||||||
static template = xml`
|
static template = xml`
|
||||||
<div>
|
<div>
|
||||||
@@ -2691,7 +2691,7 @@ describe("other directives with t-component", () => {
|
|||||||
expect(fixture.innerHTML).toBe("<div><p>Inloop: 0</p><p>Inloop: 1</p><p>EndLoop: 2<p></div>");
|
expect(fixture.innerHTML).toBe("<div><p>Inloop: 0</p><p>Inloop: 1</p><p>EndLoop: 2<p></div>");
|
||||||
});
|
});
|
||||||
|
|
||||||
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<any, any> {
|
class SomeWidget extends Component<any, any> {
|
||||||
static template = xml`
|
static template = xml`
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user