From 23594b8179f92d9f6b70b0ca4949dac614fc4764 Mon Sep 17 00:00:00 2001 From: Mike Pennisi Date: Sun, 11 Nov 2018 22:48:29 -0500 Subject: [PATCH] Correct tests These files were authored to test the effect of the carriage return character, but that character was not present in the source text. Insert the character as intended by the authors. --- test/language/line-terminators/S7.3_A1.2_T2.js | 8 +++----- test/language/line-terminators/S7.3_A5.2_T2.js | 7 ++----- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/test/language/line-terminators/S7.3_A1.2_T2.js b/test/language/line-terminators/S7.3_A1.2_T2.js index 4cdb7d07c2..553f75d4ab 100644 --- a/test/language/line-terminators/S7.3_A1.2_T2.js +++ b/test/language/line-terminators/S7.3_A1.2_T2.js @@ -3,15 +3,13 @@ /*--- info: CARRIAGE RETURN (U+000D) may occur between any two tokens +esid: sec-line-terminators es5id: 7.3_A1.2_T2 description: Insert real CARRIAGE RETURN between tokens of var x=1 ---*/ -//CHECK#1 -var -x -= -1; +var x = 1; + if (x !== 1) { $ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x)); } diff --git a/test/language/line-terminators/S7.3_A5.2_T2.js b/test/language/line-terminators/S7.3_A5.2_T2.js index 47fe256c25..98d42edca0 100644 --- a/test/language/line-terminators/S7.3_A5.2_T2.js +++ b/test/language/line-terminators/S7.3_A5.2_T2.js @@ -3,17 +3,14 @@ /*--- info: Multi line comment can contain CARRIAGE RETURN (U+000D) +esid: sec-line-terminators es5id: 7.3_A5.2_T2 description: Insert real CARRIAGE RETURN into multi line comment ---*/ -/*CHECK#1*/ var x = 0; /* -multi -line -comment -x = 1; +multi line comment x = 1; */ if (x !== 0) { $ERROR('#1: var x = 0; /*\\rmulti\\rline\\rcomment\\rx = 1;\\r*/ x === 0. Actual: ' + (x));