[REF] component: rename t-async into t-asyncroot

This commit is contained in:
Géry Debongnie
2019-06-14 15:40:32 +02:00
parent b9fae87273
commit f013c57050
5 changed files with 23 additions and 23 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`async rendering delayed t-widget with t-async directive 1`] = `
exports[`async rendering delayed t-widget with t-asyncroot directive 1`] = `
"function anonymous(context,extra
) {
let utils = this.utils;
@@ -81,7 +81,7 @@ exports[`async rendering delayed t-widget with t-async directive 1`] = `
}"
`;
exports[`async rendering fast t-widget with t-async directive 1`] = `
exports[`async rendering fast t-widget with t-asyncroot directive 1`] = `
"function anonymous(context,extra
) {
let utils = this.utils;
@@ -162,7 +162,7 @@ exports[`async rendering fast t-widget with t-async directive 1`] = `
}"
`;
exports[`async rendering t-widget with t-async directive: mixed re-renderings 1`] = `
exports[`async rendering t-widget with t-asyncroot directive: mixed re-renderings 1`] = `
"function anonymous(context,extra
) {
let utils = this.utils;
+6 -6
View File
@@ -2354,14 +2354,14 @@ describe("async rendering", () => {
expect(destroyCount).toBe(0);
});
test("delayed t-widget with t-async directive", async () => {
test("delayed t-widget with t-asyncroot directive", async () => {
env.qweb.addTemplates(`
<templates>
<div t-name="Parent">
<button t-on-click="updateApp">Update App State</button>
<div class="children">
<t t-widget="Child" val="state.val"/>
<t t-widget="AsyncChild" t-async="1" val="state.val"/>
<t t-widget="AsyncChild" t-asyncroot="1" val="state.val"/>
</div>
</div>
<span t-name="Child"><t t-esc="props.val"/></span>
@@ -2409,13 +2409,13 @@ describe("async rendering", () => {
);
});
test("fast t-widget with t-async directive", async () => {
test("fast t-widget with t-asyncroot directive", async () => {
env.qweb.addTemplates(`
<templates>
<div t-name="Parent">
<button t-on-click="updateApp">Update App State</button>
<div class="children">
<t t-widget="Child" t-async="1" val="state.val"/>
<t t-widget="Child" t-asyncroot="1" val="state.val"/>
<t t-widget="AsyncChild" val="state.val"/>
</div>
</div>
@@ -2464,14 +2464,14 @@ describe("async rendering", () => {
);
});
test("t-widget with t-async directive: mixed re-renderings", async () => {
test("t-widget with t-asyncroot directive: mixed re-renderings", async () => {
env.qweb.addTemplates(`
<templates>
<div t-name="Parent">
<button t-on-click="updateApp">Update App State</button>
<div class="children">
<t t-widget="Child" val="state.val"/>
<t t-widget="AsyncChild" t-async="1" val="state.val"/>
<t t-widget="AsyncChild" t-asyncroot="1" val="state.val"/>
</div>
</div>
<span t-name="Child" t-on-click="increment">