diff --git a/test/language/line-terminators/7.3-1.js b/test/language/line-terminators/7.3-1.js index 23e19f7696..40c575c4f4 100644 --- a/test/language/line-terminators/7.3-1.js +++ b/test/language/line-terminators/7.3-1.js @@ -6,12 +6,10 @@ es5id: 7.3-1 description: > 7.3 - ES5 recognizes the character (\u2028) as line terminators when parsing statements -includes: [runTestCase.js] ---*/ -function testcase() { var test7_3_1, prop; eval("test7_3_1\u2028prop = 66;"); - return (prop === 66) && ((typeof test7_3_1) === "undefined"); - } -runTestCase(testcase); + +assert.sameValue(prop, 66, 'prop'); +assert.sameValue((typeof test7_3_1), "undefined", '(typeof test7_3_1)'); diff --git a/test/language/line-terminators/7.3-11.js b/test/language/line-terminators/7.3-11.js index 7903019acb..230edb1dd9 100644 --- a/test/language/line-terminators/7.3-11.js +++ b/test/language/line-terminators/7.3-11.js @@ -7,14 +7,9 @@ description: > 7.3 - ES5 specifies that a multiline comment that contains a line terminator character (\u2028) must be treated as a single line terminator for the purposes of semicolon insertion -includes: [runTestCase.js] ---*/ -function testcase() { /*MultiLine Comments \u2028 var = ; */ - return true; - } -runTestCase(testcase); diff --git a/test/language/line-terminators/7.3-12.js b/test/language/line-terminators/7.3-12.js index 9cf2616b0f..add89852a5 100644 --- a/test/language/line-terminators/7.3-12.js +++ b/test/language/line-terminators/7.3-12.js @@ -7,14 +7,9 @@ description: > 7.3 - ES5 specifies that a multiline comment that contains a line terminator character (\u2029) must be treated as a single line terminator for the purposes of semicolon insertion -includes: [runTestCase.js] ---*/ -function testcase() { /*MultiLine Comments \u2029 var = ; */ - return true; - } -runTestCase(testcase); diff --git a/test/language/line-terminators/7.3-13.js b/test/language/line-terminators/7.3-13.js index 4587a89ac7..d28bceae74 100644 --- a/test/language/line-terminators/7.3-13.js +++ b/test/language/line-terminators/7.3-13.js @@ -7,14 +7,9 @@ description: > 7.3 - ES5 specifies that a multiline comment that contains a line terminator character (\u000D) must be treated as a single line terminator for the purposes of semicolon insertion -includes: [runTestCase.js] ---*/ -function testcase() { /*MultiLine Comments \u000D var = ; */ - return true; - } -runTestCase(testcase); diff --git a/test/language/line-terminators/7.3-14.js b/test/language/line-terminators/7.3-14.js index ea2cf9447d..211d3184ee 100644 --- a/test/language/line-terminators/7.3-14.js +++ b/test/language/line-terminators/7.3-14.js @@ -7,14 +7,9 @@ description: > 7.3 - ES5 specifies that a multiline comment that contains a line terminator character (\u000A) must be treated as a single line terminator for the purposes of semicolon insertion -includes: [runTestCase.js] ---*/ -function testcase() { /*MultiLine Comments \u000A var = ; */ - return true; - } -runTestCase(testcase); diff --git a/test/language/line-terminators/7.3-15.js b/test/language/line-terminators/7.3-15.js index ec4faa18f1..2dfc66d264 100644 --- a/test/language/line-terminators/7.3-15.js +++ b/test/language/line-terminators/7.3-15.js @@ -4,11 +4,10 @@ /*--- es5id: 7.3-15 description: 7.3 - ES5 recognize (\uFFFF) as a whitespace character -includes: [runTestCase.js] ---*/ -function testcase() { var prop = "a\uFFFFa"; - return prop.length === 3 && prop !== "aa" && prop[1] === "\uFFFF"; - } -runTestCase(testcase); + +assert.sameValue(prop.length, 3, 'prop.length'); +assert.notSameValue(prop, "aa", 'prop'); +assert.sameValue(prop[1], "\uFFFF", 'prop[1]'); diff --git a/test/language/line-terminators/7.3-2.js b/test/language/line-terminators/7.3-2.js index 6d8b65f9b2..5373947ae0 100644 --- a/test/language/line-terminators/7.3-2.js +++ b/test/language/line-terminators/7.3-2.js @@ -6,12 +6,10 @@ es5id: 7.3-2 description: > 7.3 - ES5 recognizes the character (\u2029) as line terminators when parsing statements -includes: [runTestCase.js] ---*/ -function testcase() { var test7_3_2, prop; eval("test7_3_2\u2029prop = 66;"); - return (prop===66) && ((typeof test7_3_2) === "undefined"); - } -runTestCase(testcase); + +assert.sameValue(prop, 66, 'prop'); +assert.sameValue((typeof test7_3_2), "undefined", '(typeof test7_3_2)'); diff --git a/test/language/line-terminators/7.3-5.js b/test/language/line-terminators/7.3-5.js index be4853ea67..6304cc3c20 100644 --- a/test/language/line-terminators/7.3-5.js +++ b/test/language/line-terminators/7.3-5.js @@ -6,11 +6,10 @@ es5id: 7.3-5 description: > 7.3 - ES5 recognizes the character (\u2028) as terminating string literal -includes: [runTestCase.js] ---*/ -function testcase() { var prop = "66\u2028123"; - return prop === "66\u2028123" && prop[2] === "\u2028" && prop.length === 6; - } -runTestCase(testcase); + +assert.sameValue(prop, "66\u2028123", 'prop'); +assert.sameValue(prop[2], "\u2028", 'prop[2]'); +assert.sameValue(prop.length, 6, 'prop.length'); diff --git a/test/language/line-terminators/7.3-6.js b/test/language/line-terminators/7.3-6.js index 7176056ebf..45c834ee83 100644 --- a/test/language/line-terminators/7.3-6.js +++ b/test/language/line-terminators/7.3-6.js @@ -6,11 +6,10 @@ es5id: 7.3-6 description: > 7.3 - ES5 recognizes the character (\u2029) as terminating string literal -includes: [runTestCase.js] ---*/ -function testcase() { var prop = "66\u2029123"; - return prop === "66\u2029123" && prop[2] === "\u2029" && prop.length === 6; - } -runTestCase(testcase); + +assert.sameValue(prop, "66\u2029123", 'prop'); +assert.sameValue(prop[2], "\u2029", 'prop[2]'); +assert.sameValue(prop.length, 6, 'prop.length');