diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2017-06-23 13:15:52 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2017-06-23 13:15:52 -0400 |
commit | a57ffd11e1bd75411e89a3d3f2323361cb315992 (patch) | |
tree | 44c70dc3703cc192bd1093e2beecfa553db1adf3 /src | |
parent | a2f44c71511bbf8aa59ab76c4e4a4d0b2286fd48 (diff) | |
download | qtdeclarative-testsuites-a57ffd11e1bd75411e89a3d3f2323361cb315992.tar.gz |
Remove tests that allow `...{` in object destructuring. Ref gh-1050
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/dstr-binding/obj-ptrn-rest-nested-obj.case | 25 | ||||
-rw-r--r-- | src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case | 34 | ||||
-rw-r--r-- | src/dstr-binding/obj-ptrn-rest-obj-own-property.case | 24 |
3 files changed, 0 insertions, 83 deletions
diff --git a/src/dstr-binding/obj-ptrn-rest-nested-obj.case b/src/dstr-binding/obj-ptrn-rest-nested-obj.case deleted file mode 100644 index 8fb0bb2d1..000000000 --- a/src/dstr-binding/obj-ptrn-rest-nested-obj.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2017 Caio Lima. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: > - When DestructuringAssignmentTarget is an object literal, it should be parsed - parsed as a DestructuringAssignmentPattern and evaluated as a destructuring - assignment. -template: default -esid: pending -features: [object-rest] ----*/ - -//- setup -var obj = {a: 3, b: 4}; -//- elems -{a, b, ...{c, e}} -//- vals -{a: 1, b: 2, c: 3, d: 4, e: 5} -//- body -assert.sameValue(a, 1); -assert.sameValue(b, 2); -assert.sameValue(c, 3); -assert.sameValue(e, 5); - diff --git a/src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case b/src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case deleted file mode 100644 index a6eb8c024..000000000 --- a/src/dstr-binding/obj-ptrn-rest-obj-nested-rest.case +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (C) 2017 Caio Lima. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: > - When DestructuringAssignmentTarget is an object literal, it should be parsed - parsed as a DestructuringAssignmentPattern and evaluated as a destructuring - assignment and object rest desconstruction is allowed in that case. -template: default -esid: pending -includes: [propertyHelper.js] -features: [object-rest] ----*/ - -//- elems -{a, b, ...{c, ...rest}} -//- vals -{a: 1, b: 2, c: 3, d: 4, e: 5} -//- body -assert.sameValue(a, 1); -assert.sameValue(b, 2); -assert.sameValue(c, 3); - -assert.sameValue(rest.d, 4); -assert.sameValue(rest.e, 5); - -verifyEnumerable(rest, "d"); -verifyWritable(rest, "d"); -verifyConfigurable(rest, "d"); - -verifyEnumerable(rest, "e"); -verifyWritable(rest, "e"); -verifyConfigurable(rest, "e"); - diff --git a/src/dstr-binding/obj-ptrn-rest-obj-own-property.case b/src/dstr-binding/obj-ptrn-rest-obj-own-property.case deleted file mode 100644 index 71c375adc..000000000 --- a/src/dstr-binding/obj-ptrn-rest-obj-own-property.case +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (C) 2017 Caio Lima. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: > - Rest object contains just soruce object's own properties -template: default -esid: pending -includes: [propertyHelper.js] -features: [object-rest] ----*/ - -//- setup -var o = Object.create({ x: 1, y: 2 }); -o.z = 3; -//- elems -{ x, ...{y , z} } -//- vals -o -//- body -assert.sameValue(x, 1); -assert.sameValue(y, undefined); -assert.sameValue(z, 3); - |