summaryrefslogtreecommitdiff
path: root/src/dstr-binding-for-await
diff options
context:
space:
mode:
authorMike Pennisi <mike@mikepennisi.com>2017-04-29 16:31:08 -0400
committerRick Waldron <waldron.rick@gmail.com>2017-06-28 11:24:36 -0400
commit81d00def42cdc7eb83eae2cf0126e26fc0002ce3 (patch)
treec0fa9d5676721445c45f08c358f7b35746e73dbb /src/dstr-binding-for-await
parente5ffc904d6162305006089bb1f3ec815ec7eaa81 (diff)
downloadqtdeclarative-testsuites-81d00def42cdc7eb83eae2cf0126e26fc0002ce3.tar.gz
Force "early error" tests to fail if evaluated
This pattern makes expectations more explicit by making test files more literal.
Diffstat (limited to 'src/dstr-binding-for-await')
-rw-r--r--src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case2
-rw-r--r--src/dstr-binding-for-await/ary-ptrn-rest-init-id.case2
-rw-r--r--src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case2
-rw-r--r--src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case2
-rw-r--r--src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case2
-rw-r--r--src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case2
6 files changed, 12 insertions, 0 deletions
diff --git a/src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case b/src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case
index 8d302fa4c..f4d19eca7 100644
--- a/src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case
+++ b/src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...[ x ] = []]
//- vals
diff --git a/src/dstr-binding-for-await/ary-ptrn-rest-init-id.case b/src/dstr-binding-for-await/ary-ptrn-rest-init-id.case
index 157935b1a..518a5b320 100644
--- a/src/dstr-binding-for-await/ary-ptrn-rest-init-id.case
+++ b/src/dstr-binding-for-await/ary-ptrn-rest-init-id.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...x = []]
//- vals
diff --git a/src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case b/src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case
index e55c245fd..0dbe74cd2 100644
--- a/src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case
+++ b/src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...{ x } = []]
//- vals
diff --git a/src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case b/src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case
index 4a7b66f86..8b3f55115 100644
--- a/src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case
+++ b/src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...[x], y]
//- vals
diff --git a/src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case b/src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case
index b569bb020..026e7a4a8 100644
--- a/src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case
+++ b/src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...x, y]
//- vals
diff --git a/src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case b/src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case
index 3540f3dd1..630e67a07 100644
--- a/src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case
+++ b/src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...{ x }, y]
//- vals