[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:
Mathieu Duckerts-Antoine
2021-10-15 13:08:07 +02:00
committed by Aaron Bohy
parent ee1ef20ce1
commit d6668e3439
16 changed files with 628 additions and 326 deletions
+3 -1
View File
@@ -919,7 +919,9 @@ describe("lifecycle hooks", () => {
static template = xml`<div/>`;
setup() {
created = true;
onMounted(() => { mounted = true; })
onMounted(() => {
mounted = true;
});
}
}
class Parent extends Component {