diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2017-05-22 14:18:53 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2017-05-22 14:18:53 -0400 |
commit | f6dd54eb1928f80bc3e3c99efbc0f586d54cafe8 (patch) | |
tree | fd6972668127d7dac0469c7d367d421e53aaa620 /src | |
parent | b1620ab5b825c91e3f05ab5dd6df271e6b596c95 (diff) | |
download | qtdeclarative-testsuites-f6dd54eb1928f80bc3e3c99efbc0f586d54cafe8.tar.gz |
update the async func templates to match async generator templates (error)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Diffstat (limited to 'src')
3 files changed, 18 insertions, 3 deletions
diff --git a/src/dstr-binding-for-await/error/for-await-of-async-func-const.template b/src/dstr-binding-for-await/error/for-await-of-async-func-const.template index dc2fc2499..046172877 100644 --- a/src/dstr-binding-for-await/error/for-await-of-async-func-const.template +++ b/src/dstr-binding-for-await/error/for-await-of-async-func-const.template @@ -43,6 +43,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, /*{ error }*/)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, /*{ error }*/); + /*{ rejectBody }*/ + }) .then($DONE, $DONE); diff --git a/src/dstr-binding-for-await/error/for-await-of-async-func-let.template b/src/dstr-binding-for-await/error/for-await-of-async-func-let.template index 291b51a64..1a018086d 100644 --- a/src/dstr-binding-for-await/error/for-await-of-async-func-let.template +++ b/src/dstr-binding-for-await/error/for-await-of-async-func-let.template @@ -43,6 +43,11 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, /*{ error }*/)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, /*{ error }*/); + /*{ rejectBody }*/ + }) .then($DONE, $DONE); diff --git a/src/dstr-binding-for-await/error/for-await-of-async-func-var.template b/src/dstr-binding-for-await/error/for-await-of-async-func-var.template index ab9ae9712..cfc53e285 100644 --- a/src/dstr-binding-for-await/error/for-await-of-async-func-var.template +++ b/src/dstr-binding-for-await/error/for-await-of-async-func-var.template @@ -43,5 +43,10 @@ async function fn() { } fn() - .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, /*{ error }*/)) + .then(_ => { + throw new Test262Error("Expected async function to reject, but resolved."); + }, ({ constructor }) => { + assert.sameValue(constructor, /*{ error }*/); + /*{ rejectBody }*/ + }) .then($DONE, $DONE); |