mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] qweb: re-add support of t-on directive
We add some test for the t-on directive. For making them pass, it was necessary to change the code produced by compileTForeach: the const declaration is not done by using generateId and there was some conflict with the variable names produced in captureExpression. Consequently, many snapshots had to be changed. Code prettification has been done too.
This commit is contained in:
committed by
Géry Debongnie
parent
55ef9ca116
commit
5f1e1e189f
@@ -718,7 +718,9 @@ describe("basics", () => {
|
||||
await nextTick();
|
||||
expect(Object.values(parent.__owl__.children)[0].component).toBe(child);
|
||||
expect(status(child)).toBe("mounted");
|
||||
expect(fixture.innerHTML).toBe(`<div><h1>hey</h1><span><span>child</span></span><span>test</span></div>`)
|
||||
expect(fixture.innerHTML).toBe(
|
||||
`<div><h1>hey</h1><span><span>child</span></span><span>test</span></div>`
|
||||
);
|
||||
});
|
||||
|
||||
test("list of two sub components inside other nodes", async () => {
|
||||
|
||||
Reference in New Issue
Block a user