diff options
author | Leo Balter <leonardo.balter@gmail.com> | 2017-08-18 17:58:37 -0400 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2017-08-18 18:16:55 -0400 |
commit | ceaa01212138cca45883311ed8862a5a334c8367 (patch) | |
tree | 390bf2d743e24c9640f001ccfbb3cf28fdcc2dfa /src/spread | |
parent | 75db6744eb11c7638b4db3802f256c6b9d9db7cb (diff) | |
download | qtdeclarative-testsuites-ceaa01212138cca45883311ed8862a5a334c8367.tar.gz |
Remove remaining cases for ...{
Diffstat (limited to 'src/spread')
-rw-r--r-- | src/spread/mult-err-obj-getter-throws.case | 23 | ||||
-rw-r--r-- | src/spread/mult-obj-base.case | 39 | ||||
-rw-r--r-- | src/spread/mult-obj-empty.case | 27 | ||||
-rw-r--r-- | src/spread/mult-obj-null-empty-undefined.case | 30 | ||||
-rw-r--r-- | src/spread/obj-setter-redef.case | 20 | ||||
-rw-r--r-- | src/spread/sngl-err-obj-getter-throws.case | 24 | ||||
-rw-r--r-- | src/spread/sngl-obj-base.case | 36 | ||||
-rw-r--r-- | src/spread/sngl-obj-empty.case | 25 |
8 files changed, 0 insertions, 224 deletions
diff --git a/src/spread/mult-err-obj-getter-throws.case b/src/spread/mult-err-obj-getter-throws.case deleted file mode 100644 index ff59a858f..000000000 --- a/src/spread/mult-err-obj-getter-throws.case +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (C) 2017 Caio Lima. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -desc: Object Spread operator results in error when there is an getter that throws an exception -template: error -esid: pending -info: | - Pending Runtime Semantics: PropertyDefinitionEvaluation - - PropertyDefinition:...AssignmentExpression - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let fromValue be GetValue(exprValue). - 3. ReturnIfAbrupt(fromValue). - 4. Let excludedNames be a new empty List. - 5. Return CopyDataProperties(object, fromValue, excludedNames). -features: [object-spread] ----*/ - -//- error -Test262Error -//- args -{a: 1, ...{ get foo() { throw new Test262Error(); } }} diff --git a/src/spread/mult-obj-base.case b/src/spread/mult-obj-base.case deleted file mode 100644 index 8c0f24439..000000000 --- a/src/spread/mult-obj-base.case +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (C) 2017 Caio Lima. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -desc: Object Spread operator following other arguments -template: default -esid: pending -includes: [propertyHelper.js] -info: | - Pending Runtime Semantics: PropertyDefinitionEvaluation - - PropertyDefinition:...AssignmentExpression - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let fromValue be GetValue(exprValue). - 3. ReturnIfAbrupt(fromValue). - 4. Let excludedNames be a new empty List. - 5. Return CopyDataProperties(object, fromValue, excludedNames). -features: [object-spread] ----*/ - -//- args -{a: 1, b: 2, ...{c: 3, d: 4}} -//- params -obj -//- body -assert.sameValue(obj.a, 1); -assert.sameValue(obj.b, 2); -assert.sameValue(obj.c, 3); -assert.sameValue(obj.d, 4); -assert.sameValue(Object.keys(obj).length, 4); - -verifyEnumerable(obj, "c"); -verifyWritable(obj, "c"); -verifyConfigurable(obj, "c"); - -verifyEnumerable(obj, "d"); -verifyWritable(obj, "d"); -verifyConfigurable(obj, "d"); - diff --git a/src/spread/mult-obj-empty.case b/src/spread/mult-obj-empty.case deleted file mode 100644 index d7fff6587..000000000 --- a/src/spread/mult-obj-empty.case +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2017 Caio Lima. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -desc: Object Spread operator following other arguments with empty object -template: default -esid: pending -info: | - Pending Runtime Semantics: PropertyDefinitionEvaluation - - PropertyDefinition:...AssignmentExpression - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let fromValue be GetValue(exprValue). - 3. ReturnIfAbrupt(fromValue). - 4. Let excludedNames be a new empty List. - 5. Return CopyDataProperties(object, fromValue, excludedNames). -features: [object-spread] ----*/ - -//- args -{a: 1, b: 2, ...{}} -//- params -obj -//- body -assert.sameValue(obj.a, 1); -assert.sameValue(obj.b, 2); -assert.sameValue(Object.keys(obj).length, 2); diff --git a/src/spread/mult-obj-null-empty-undefined.case b/src/spread/mult-obj-null-empty-undefined.case deleted file mode 100644 index b8d010139..000000000 --- a/src/spread/mult-obj-null-empty-undefined.case +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2017 Caio Lima. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -desc: Object Spread operator following other arguments with null, undefined and empty object -template: default -esid: pending -includes: [compareArray.js] -info: | - Pending Runtime Semantics: PropertyDefinitionEvaluation - - PropertyDefinition:...AssignmentExpression - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let fromValue be GetValue(exprValue). - 3. ReturnIfAbrupt(fromValue). - 4. Let excludedNames be a new empty List. - 5. Return CopyDataProperties(object, fromValue, excludedNames). -features: [object-spread] ----*/ - -//- args -{a: 1, ...null, b: 2, ...undefined, c: 3, ...{}, ...{...{}}, d: 4} -//- params -obj -//- body -assert.sameValue(obj.a, 1); -assert.sameValue(obj.b, 2); -assert.sameValue(obj.c, 3); -assert.sameValue(obj.d, 4); -assert(compareArray(Object.keys(obj), ["a", "b", "c", "d"])); diff --git a/src/spread/obj-setter-redef.case b/src/spread/obj-setter-redef.case deleted file mode 100644 index 3354d77ca..000000000 --- a/src/spread/obj-setter-redef.case +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (C) 2017 Caio Lima. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -desc: Setter are not executed when redefined in Object Spread -template: default -esid: pending -features: [object-spread] ----*/ - -//- setup -let executedSetter = false; - -//- args -{set c(v) { executedSetter = true; }, ...{c: 1}} -//- params -obj -//- body -assert.sameValue(obj.c, 1); -assert.sameValue(executedSetter, false); -assert.sameValue(Object.keys(obj).length, 1); diff --git a/src/spread/sngl-err-obj-getter-throws.case b/src/spread/sngl-err-obj-getter-throws.case deleted file mode 100644 index 98b58892b..000000000 --- a/src/spread/sngl-err-obj-getter-throws.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: Object Spread operator results in error when there is an getter that throws an exception -template: error -esid: pending -info: | - Pending Runtime Semantics: PropertyDefinitionEvaluation - - PropertyDefinition:...AssignmentExpression - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let fromValue be GetValue(exprValue). - 3. ReturnIfAbrupt(fromValue). - 4. Let excludedNames be a new empty List. - 5. Return CopyDataProperties(object, fromValue, excludedNames). - -features: [object-spread] ----*/ - -//- error -Test262Error -//- args -{...{ get foo() { throw new Test262Error(); } }} diff --git a/src/spread/sngl-obj-base.case b/src/spread/sngl-obj-base.case deleted file mode 100644 index b00f328bf..000000000 --- a/src/spread/sngl-obj-base.case +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (C) 2017 Caio Lima. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -desc: Object Spread operator without other arguments -template: default -esid: pending -includes: [propertyHelper.js] -info: | - Pending Runtime Semantics: PropertyDefinitionEvaluation - - PropertyDefinition:...AssignmentExpression - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let fromValue be GetValue(exprValue). - 3. ReturnIfAbrupt(fromValue). - 4. Let excludedNames be a new empty List. - 5. Return CopyDataProperties(object, fromValue, excludedNames). -features: [object-spread] ----*/ - -//- args -{...{c: 3, d: 4}} -//- params -obj -//- body -assert.sameValue(obj.c, 3); -assert.sameValue(obj.d, 4); -assert.sameValue(Object.keys(obj).length, 2); - -verifyEnumerable(obj, "c"); -verifyWritable(obj, "c"); -verifyConfigurable(obj, "c"); - -verifyEnumerable(obj, "d"); -verifyWritable(obj, "d"); -verifyConfigurable(obj, "d"); diff --git a/src/spread/sngl-obj-empty.case b/src/spread/sngl-obj-empty.case deleted file mode 100644 index 4fbeaa70a..000000000 --- a/src/spread/sngl-obj-empty.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: Object Spread operator on a single empty object -template: default -esid: pending -info: | - Pending Runtime Semantics: PropertyDefinitionEvaluation - - PropertyDefinition:...AssignmentExpression - - 1. Let exprValue be the result of evaluating AssignmentExpression. - 2. Let fromValue be GetValue(exprValue). - 3. ReturnIfAbrupt(fromValue). - 4. Let excludedNames be a new empty List. - 5. Return CopyDataProperties(object, fromValue, excludedNames). -features: [object-spread] ----*/ - -//- args -{...{}} -//- params -obj -//- body -assert.sameValue(Object.keys(obj).length, 0); |