Replace runTestCase with assert helpers [test/language/types]

This commit is contained in:
André Bargull 2015-08-06 18:33:32 +02:00
parent 3c3e0a6adb
commit 31f027dc03
5 changed files with 6 additions and 25 deletions

View File

@ -6,11 +6,8 @@ es5id: 8.7.2-2-s
description: >
ReferenceError isn't thrown if LeftHandSide evaluates to a resolvable
Reference
includes: [runTestCase.js]
---*/
function testcase() {
var b = 11;
return b === 11;
}
runTestCase(testcase);
assert.sameValue(b, 11, 'b');

View File

@ -4,11 +4,6 @@
/*---
es5id: 8.7.2-3-1-s
description: eval - a property named 'eval' is permitted
includes: [runTestCase.js]
---*/
function testcase() {
var o = { eval: 42};
return true;
}
runTestCase(testcase);

View File

@ -6,10 +6,8 @@ es5id: 8.7.2-6-s
description: >
TypeError isn't thrown if LeftHandSide is a reference to a writable data
property
includes: [runTestCase.js]
---*/
function testcase() {
var _8_7_2_6 = {};
Object.defineProperty(_8_7_2_6, "b", {
writable: true
@ -17,6 +15,4 @@ function testcase() {
_8_7_2_6.b = 11;
return _8_7_2_6.b === 11;
}
runTestCase(testcase);
assert.sameValue(_8_7_2_6.b, 11, '_8_7_2_6.b');

View File

@ -6,10 +6,8 @@ es5id: 8.7.2-7-s
description: >
TypeError isn't thrown if LeftHandSide is a reference to an accessor
property with setter
includes: [runTestCase.js]
---*/
function testcase() {
var _8_7_2_7 = {};
var _8_7_2_7_bValue = 1;
Object.defineProperty(_8_7_2_7, "b", {
@ -18,6 +16,5 @@ function testcase() {
});
_8_7_2_7.b = 11;
return _8_7_2_7.b === 11;
}
runTestCase(testcase);
assert.sameValue(_8_7_2_7.b, 11, '_8_7_2_7.b');

View File

@ -6,14 +6,10 @@ es5id: 8.7.2-8-s
description: >
TypeError isn't thrown if LeftHandSide is a reference to a property of an
extensible object
includes: [runTestCase.js]
---*/
function testcase() {
var _8_7_2_8 = {};
_8_7_2_8.b = 11;
return _8_7_2_8.b === 11;
}
runTestCase(testcase);
assert.sameValue(_8_7_2_8.b, 11, '_8_7_2_8.b');