mirror of https://github.com/tc39/test262.git
Normalize testcase format
This commit normalizes the test case format used across test262. It applies the following transformations: * Convert to YAML for frontmatter * Remove of trailing whitespace * Replace /r/n with /n except in chapters 6 and 7. * Copyright header always uses // comments * new includes attribute replaces $INCLUDE * No implicit assumptions about test environment other than $ERROR. Everything else appears in the include array. This includes "runTestCase" which is now included in a substantial number of tests.
This commit is contained in:
parent
07ccd199d9
commit
d4354d14d5
|
@ -1,13 +1,17 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path annexB/B.2.1.js
|
|
||||||
* @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.escape)
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||||
|
built-ins (Global.escape)
|
||||||
|
includes:
|
||||||
|
- runTestCase.js
|
||||||
|
- fnGlobalObject.js
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
var global = fnGlobalObject();
|
var global = fnGlobalObject();
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Check type of various properties
|
info: Check type of various properties
|
||||||
*
|
description: Checking properties of this object (escape)
|
||||||
* @path annexB/B.2.1.propertyCheck.js
|
---*/
|
||||||
* @description Checking properties of this object (escape)
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (typeof this.escape === "undefined") $ERROR('#1: typeof this.escape !== "undefined"');
|
if (typeof this.escape === "undefined") $ERROR('#1: typeof this.escape !== "undefined"');
|
||||||
if (typeof this['escape'] === "undefined") $ERROR('#2: typeof this["escape"] !== "undefined"');
|
if (typeof this['escape'] === "undefined") $ERROR('#2: typeof this["escape"] !== "undefined"');
|
||||||
|
|
|
@ -1,13 +1,17 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path annexB/B.2.2.js
|
|
||||||
* @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Global.unescape)
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||||
|
built-ins (Global.unescape)
|
||||||
|
includes:
|
||||||
|
- runTestCase.js
|
||||||
|
- fnGlobalObject.js
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
var global = fnGlobalObject();
|
var global = fnGlobalObject();
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Check type of various properties
|
info: Check type of various properties
|
||||||
*
|
description: Checking properties of this object (unescape)
|
||||||
* @path annexB/B.2.2.propertyCheck.js
|
---*/
|
||||||
* @description Checking properties of this object (unescape)
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (typeof this.unescape === "undefined") $ERROR('#1: typeof this.unescape !== "undefined"');
|
if (typeof this.unescape === "undefined") $ERROR('#1: typeof this.unescape !== "undefined"');
|
||||||
if (typeof this['unescape'] === "undefined") $ERROR('#2: typeof this["unescape"] !== "undefined"');
|
if (typeof this['unescape'] === "undefined") $ERROR('#2: typeof this["unescape"] !== "undefined"');
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path annexB/B.2.3.js
|
|
||||||
* @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (String.prototype.substr)
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||||
|
built-ins (String.prototype.substr)
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
var desc = Object.getOwnPropertyDescriptor(String.prototype, "substr");
|
var desc = Object.getOwnPropertyDescriptor(String.prototype, "substr");
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path annexB/B.2.4.js
|
|
||||||
* @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.getYear)
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||||
|
built-ins (Date.prototype.getYear)
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getYear");
|
var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getYear");
|
||||||
|
|
|
@ -1,15 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Check type of various properties
|
info: Check type of various properties
|
||||||
*
|
description: Checking properties of the Date object (getYear)
|
||||||
* @path annexB/B.2.4.propertyCheck.js
|
---*/
|
||||||
* @description Checking properties of the Date object (getYear)
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (typeof Date.prototype.getYear !== "function") $ERROR('#1: typeof Date.prototype.getYear === "function". Actual: ' + (typeof Date.prototype.getYear ));
|
if (typeof Date.prototype.getYear !== "function") $ERROR('#1: typeof Date.prototype.getYear === "function". Actual: ' + (typeof Date.prototype.getYear ));
|
||||||
if (typeof Date.prototype['getYear'] !== "function") $ERROR('#2: typeof Date.prototype["getYear"] === "function". Actual: ' + (typeof Date.prototype["getYear"] ));
|
if (typeof Date.prototype['getYear'] !== "function") $ERROR('#2: typeof Date.prototype["getYear"] === "function". Actual: ' + (typeof Date.prototype["getYear"] ));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path annexB/B.2.5.js
|
|
||||||
* @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.setYear)
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||||
|
built-ins (Date.prototype.setYear)
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setYear");
|
var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setYear");
|
||||||
|
|
|
@ -1,15 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Check type of various properties
|
info: Check type of various properties
|
||||||
*
|
description: Checking properties of the Date object (setYear)
|
||||||
* @path annexB/B.2.5.propertyCheck.js
|
---*/
|
||||||
* @description Checking properties of the Date object (setYear)
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (typeof Date.prototype.setYear !== "function") $ERROR('#1: typeof Date.prototype.setYear === "function". Actual: ' + (typeof Date.prototype.setYear ));
|
if (typeof Date.prototype.setYear !== "function") $ERROR('#1: typeof Date.prototype.setYear === "function". Actual: ' + (typeof Date.prototype.setYear ));
|
||||||
if (typeof Date.prototype['setYear'] !== "function") $ERROR('#2: typeof Date.prototype["setYear"] === "function". Actual: ' + (typeof Date.prototype["setYear"] ));
|
if (typeof Date.prototype['setYear'] !== "function") $ERROR('#2: typeof Date.prototype["setYear"] === "function". Actual: ' + (typeof Date.prototype["setYear"] ));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path annexB/B.2.6.js
|
|
||||||
* @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (Date.prototype.toGMTString)
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||||
|
built-ins (Date.prototype.toGMTString)
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toGMTString");
|
var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toGMTString");
|
||||||
|
|
|
@ -1,16 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Check type of various properties
|
info: Check type of various properties
|
||||||
*
|
description: Checking properties of the Date object (toGMTString)
|
||||||
* @path annexB/B.2.6.propertyCheck.js
|
---*/
|
||||||
* @description Checking properties of the Date object (toGMTString)
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (typeof Date.prototype.toGMTString !== "function") $ERROR('#1: typeof Date.prototype.toGMTString === "function". Actual: ' + (typeof Date.prototype.toGMTString ));
|
if (typeof Date.prototype.toGMTString !== "function") $ERROR('#1: typeof Date.prototype.toGMTString === "function". Actual: ' + (typeof Date.prototype.toGMTString ));
|
||||||
if (typeof Date.prototype['toGMTString'] !== "function") $ERROR('#2: typeof Date.prototype["toGMTString"] === "function". Actual: ' + (typeof Date.prototype["toGMTString"] ));
|
if (typeof Date.prototype['toGMTString'] !== "function") $ERROR('#2: typeof Date.prototype["toGMTString"] === "function". Actual: ' + (typeof Date.prototype["toGMTString"] ));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path test/suite/annexB/B.RegExp.prototype.compile.js
|
|
||||||
* @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (RegExp.prototype.compile)
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||||
|
built-ins (RegExp.prototype.compile)
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "compile");
|
var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "compile");
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Function declaration within an "if" statement is not allowed
|
info: Function declaration within an "if" statement is not allowed
|
||||||
*
|
description: >
|
||||||
* @path bestPractice/Sbp_12.5_A9_T3.js
|
Declaring function within an "if" statement that is declared
|
||||||
* @description Declaring function within an "if" statement that is declared within the function declaration
|
within the function declaration
|
||||||
* @negative
|
flags: [negative]
|
||||||
*/
|
---*/
|
||||||
|
|
||||||
function(){
|
function(){
|
||||||
|
|
||||||
|
@ -18,4 +18,3 @@ if (true) {
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* FunctionDeclaration within a "do-while" Block is not allowed
|
info: FunctionDeclaration within a "do-while" Block is not allowed
|
||||||
*
|
description: >
|
||||||
* @path bestPractice/Sbp_12.6.1_A13_T3.js
|
Declaring a function within a "do-while" loop that is within a
|
||||||
* @description Declaring a function within a "do-while" loop that is within a function declaration itself
|
function declaration itself
|
||||||
* @negative
|
flags: [negative]
|
||||||
*/
|
---*/
|
||||||
|
|
||||||
function(){
|
function(){
|
||||||
|
|
||||||
|
@ -16,4 +16,3 @@ do{
|
||||||
}while(0);
|
}while(0);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* FunctionDeclaration within a "while" Statement is not allowed
|
info: FunctionDeclaration within a "while" Statement is not allowed
|
||||||
*
|
description: >
|
||||||
* @path bestPractice/Sbp_12.6.2_A13_T3.js
|
Checking if declaring a function within a "while" Statement that
|
||||||
* @description Checking if declaring a function within a "while" Statement that is in a function body leads to an exception
|
is in a function body leads to an exception
|
||||||
* @negative
|
flags: [negative]
|
||||||
*/
|
---*/
|
||||||
|
|
||||||
function(){
|
function(){
|
||||||
|
|
||||||
|
@ -16,4 +16,3 @@ while(0){
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* FunctionDeclaration within a "for-in" Statement is not allowed
|
info: FunctionDeclaration within a "for-in" Statement is not allowed
|
||||||
*
|
description: >
|
||||||
* @path bestPractice/Sbp_12.6.4_A13_T3.js
|
Declaring function within a "for-in" Statement that is within
|
||||||
* @description Declaring function within a "for-in" Statement that is within function declaration
|
function declaration
|
||||||
* @negative
|
flags: [negative]
|
||||||
*/
|
---*/
|
||||||
|
|
||||||
function(){
|
function(){
|
||||||
|
|
||||||
|
@ -16,4 +16,3 @@ for(x in this){
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* EscapeSequence :: HexEscapeSequence :: x HexDigit HexDigit
|
info: "EscapeSequence :: HexEscapeSequence :: x HexDigit HexDigit"
|
||||||
*
|
description: "HexEscapeSequence :: x0G is incorrect"
|
||||||
* @path bestPractice/Sbp_7.8.4_A6.1_T4.js
|
flags: [negative]
|
||||||
* @description HexEscapeSequence :: x0G is incorrect
|
---*/
|
||||||
* @negative
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#
|
//CHECK#
|
||||||
"\x0G"
|
"\x0G"
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* HexEscapeSequence :: x HexDigit is incorrect
|
info: "HexEscapeSequence :: x HexDigit is incorrect"
|
||||||
*
|
description: "HexDigit :: 1"
|
||||||
* @path bestPractice/Sbp_7.8.4_A6.2_T1.js
|
flags: [negative]
|
||||||
* @description HexDigit :: 1
|
---*/
|
||||||
* @negative
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
"\x1"
|
"\x1"
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* HexEscapeSequence :: x HexDigit is incorrect
|
info: "HexEscapeSequence :: x HexDigit is incorrect"
|
||||||
*
|
description: "HexDigit :: A"
|
||||||
* @path bestPractice/Sbp_7.8.4_A6.2_T2.js
|
flags: [negative]
|
||||||
* @description HexDigit :: A
|
---*/
|
||||||
* @negative
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
"\xA"
|
"\xA"
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Check Do-While Statement for automatic semicolon insertion
|
info: Check Do-While Statement for automatic semicolon insertion
|
||||||
*
|
description: Execute do { \n ; \n }while(false) true
|
||||||
* @path bestPractice/Sbp_7.9_A9_T3.js
|
---*/
|
||||||
* @description Execute do { \n ; \n }while(false) true
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
do {
|
do {
|
||||||
;
|
;
|
||||||
} while (false) true
|
} while (false) true
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Check Do-While Statement for automatic semicolon insertion
|
info: Check Do-While Statement for automatic semicolon insertion
|
||||||
*
|
description: Execute do ; while \n (false) true
|
||||||
* @path bestPractice/Sbp_7.9_A9_T4.js
|
---*/
|
||||||
* @description Execute do ; while \n (false) true
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
do ; while
|
do ; while
|
||||||
(false) true
|
(false) true
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
// Copyright 2011 Google Inc. All rights reserved.
|
// Copyright 2011 Google Inc. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* @path bestPractice/Sbp_A10_T1.js
|
description: >
|
||||||
* @description Built-in functions should not have a non-deletable,
|
Built-in functions should not have a non-deletable, non-poisoned
|
||||||
* non-poisoned "caller" property.
|
"caller" property.
|
||||||
* @bestPractice
|
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:make_non-standard_properties_configurable"
|
||||||
* http://wiki.ecmascript.org/doku.php?id=conventions:make_non-standard_properties_configurable
|
---*/
|
||||||
*/
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var map = Array.prototype.map;
|
var map = Array.prototype.map;
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
// Copyright 2011 Google Inc. All rights reserved.
|
// Copyright 2011 Google Inc. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* @path bestPractice/Sbp_A10_T2.js
|
description: >
|
||||||
* @description Built-in functions should not have a non-deletable,
|
Built-in functions should not have a non-deletable, non-poisoned
|
||||||
* non-poisoned "arguments" property.
|
"arguments" property.
|
||||||
* @bestPractice
|
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:make_non-standard_properties_configurable"
|
||||||
* http://wiki.ecmascript.org/doku.php?id=conventions:make_non-standard_properties_configurable
|
---*/
|
||||||
*/
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var map = Array.prototype.map;
|
var map = Array.prototype.map;
|
||||||
|
|
|
@ -1,19 +1,17 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* The production Block { } in strict code can't contain function
|
info: >
|
||||||
* declaration;
|
The production Block { } in strict code can't contain function
|
||||||
*
|
declaration;
|
||||||
* @path bestPractice/Sbp_A1_T1.js
|
description: Trying to declare function at the Block statement
|
||||||
* @description Trying to declare function at the Block statement
|
negative: SyntaxError
|
||||||
* @onlyStrict
|
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||||
* @negative SyntaxError
|
flags: [onlyStrict]
|
||||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
---*/
|
||||||
*/
|
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
{
|
{
|
||||||
function __func(){}
|
function __func(){}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Function declaration within an "if" statement in strict code is not
|
info: >
|
||||||
* allowed
|
Function declaration within an "if" statement in strict code is not
|
||||||
*
|
allowed
|
||||||
* @path bestPractice/Sbp_A2_T1.js
|
description: Declaring function within a strict "if" statement
|
||||||
* @description Declaring function within a strict "if" statement
|
negative: SyntaxError
|
||||||
* @onlyStrict
|
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||||
* @negative SyntaxError
|
flags: [onlyStrict]
|
||||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
---*/
|
||||||
*/
|
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
if (true) {
|
if (true) {
|
||||||
|
@ -18,4 +17,3 @@ if (true) {
|
||||||
} else {
|
} else {
|
||||||
function __func(){};
|
function __func(){};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,17 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Function declaration within an "if" statement in strict code is not allowed;
|
info: >
|
||||||
*
|
Function declaration within an "if" statement in strict code is not
|
||||||
* @path bestPractice/Sbp_A2_T2.js
|
allowed;
|
||||||
* @description Declaring function within an "if" that is declared
|
description: >
|
||||||
* within the strict function
|
Declaring function within an "if" that is declared within the
|
||||||
* @onlyStrict
|
strict function
|
||||||
* @negative SyntaxError
|
negative: SyntaxError
|
||||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||||
*/
|
flags: [onlyStrict]
|
||||||
|
---*/
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
(function(){
|
(function(){
|
||||||
|
@ -20,4 +21,3 @@
|
||||||
function __func(){};
|
function __func(){};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,17 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* FunctionDeclaration within a "do-while" Block in strict code is not
|
info: >
|
||||||
* allowed
|
FunctionDeclaration within a "do-while" Block in strict code is not
|
||||||
*
|
allowed
|
||||||
* @path bestPractice/Sbp_A3_T1.js
|
description: Declaring function within a "do-while" loop
|
||||||
* @description Declaring function within a "do-while" loop
|
negative: SyntaxError
|
||||||
* @onlyStrict
|
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||||
* @negative SyntaxError
|
flags: [onlyStrict]
|
||||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
---*/
|
||||||
*/
|
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
do {
|
do {
|
||||||
function __func(){};
|
function __func(){};
|
||||||
} while(0);
|
} while(0);
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,17 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* FunctionDeclaration within a "do-while" Block in strict code is not allowed
|
info: >
|
||||||
*
|
FunctionDeclaration within a "do-while" Block in strict code is not
|
||||||
* @path bestPractice/Sbp_A3_T2.js
|
allowed
|
||||||
* @description Declaring a function within a "do-while" loop that is
|
description: >
|
||||||
* within a strict function
|
Declaring a function within a "do-while" loop that is within a
|
||||||
* @onlyStrict
|
strict function
|
||||||
* @negative SyntaxError
|
negative: SyntaxError
|
||||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||||
*/
|
flags: [onlyStrict]
|
||||||
|
---*/
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
(function(){
|
(function(){
|
||||||
|
@ -18,4 +19,3 @@
|
||||||
function __func(){};
|
function __func(){};
|
||||||
} while(0);
|
} while(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,17 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* FunctionDeclaration within a "while" Statement is not allowed
|
info: FunctionDeclaration within a "while" Statement is not allowed
|
||||||
*
|
description: >
|
||||||
* @path bestPractice/Sbp_A4_T1.js
|
Checking if declaring a function within a "while" Statement leads
|
||||||
* @description Checking if declaring a function within a "while"
|
to an exception
|
||||||
* Statement leads to an exception
|
negative: SyntaxError
|
||||||
* @onlyStrict
|
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||||
* @negative SyntaxError
|
flags: [onlyStrict]
|
||||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
---*/
|
||||||
*/
|
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
while (0) {
|
while (0) {
|
||||||
function __func(){};
|
function __func(){};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* FunctionDeclaration within a "while" Statement is not allowed
|
info: FunctionDeclaration within a "while" Statement is not allowed
|
||||||
*
|
description: >
|
||||||
* @path bestPractice/Sbp_A4_T2.js
|
Checking if declaring a function within a "while" Statement that
|
||||||
* @description Checking if declaring a function within a "while"
|
is in a function call leads to an exception
|
||||||
* Statement that is in a function call leads to an exception
|
negative: SyntaxError
|
||||||
* @onlyStrict
|
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||||
* @negative SyntaxError
|
flags: [onlyStrict]
|
||||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
---*/
|
||||||
*/
|
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
(function(){
|
(function(){
|
||||||
|
@ -18,4 +17,3 @@
|
||||||
function __func(){};
|
function __func(){};
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,15 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* FunctionDeclaration within a "for-in" Statement is not allowed
|
info: FunctionDeclaration within a "for-in" Statement is not allowed
|
||||||
*
|
description: Declaring function within a "for-in" Statement
|
||||||
* @path bestPractice/Sbp_A5_T1.js
|
negative: SyntaxError
|
||||||
* @description Declaring function within a "for-in" Statement
|
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||||
* @onlyStrict
|
flags: [onlyStrict]
|
||||||
* @negative SyntaxError
|
---*/
|
||||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
|
||||||
*/
|
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
for (x in this) {
|
for (x in this) {
|
||||||
function __func(){};
|
function __func(){};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* FunctionDeclaration within a "for-in" Statement is not allowed
|
info: FunctionDeclaration within a "for-in" Statement is not allowed
|
||||||
*
|
description: >
|
||||||
* @path bestPractice/Sbp_A5_T2.js
|
Declaring function within a "for-in" Statement that is within a
|
||||||
* @description Declaring function within a "for-in" Statement that is
|
function call
|
||||||
* within a function call
|
negative: SyntaxError
|
||||||
* @onlyStrict
|
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||||
* @negative SyntaxError
|
flags: [onlyStrict]
|
||||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
---*/
|
||||||
*/
|
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
(function(){
|
(function(){
|
||||||
|
@ -18,4 +17,3 @@
|
||||||
function __func(){};
|
function __func(){};
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* @description Test for handling of supplementary characters
|
description: Test for handling of supplementary characters
|
||||||
*/
|
---*/
|
||||||
|
|
||||||
var chars = "𐒠"; // Single Unicode character at codepoint \u{104A0}
|
var chars = "𐒠"; // Single Unicode character at codepoint \u{104A0}
|
||||||
if(chars.length !== 2) {
|
if(chars.length !== 2) {
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* HORIZONTAL TAB (U+0009) between any two tokens is allowed
|
info: HORIZONTAL TAB (U+0009) between any two tokens is allowed
|
||||||
*
|
description: Insert HORIZONTAL TAB(\u0009 and \t) between tokens of var x=1
|
||||||
* @path ch07/7.2/S7.2_A1.1_T1.js
|
---*/
|
||||||
* @description Insert HORIZONTAL TAB(\u0009 and \t) between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("\u0009var\u0009x\u0009=\u00091\u0009");
|
eval("\u0009var\u0009x\u0009=\u00091\u0009");
|
||||||
|
@ -37,4 +35,3 @@ eval("\u0009" + "var" + "\t" + "x" + "\u0009" + "=" + "\t" + "1" + "\u0009");
|
||||||
if (x !== 1) {
|
if (x !== 1) {
|
||||||
$ERROR('#5: eval("\\u0009" + "var" + "\\t" + "x" + "\\u0009" + "=" + "\\t" + "1" + "\\u0009"); x === 1. Actual: ' + (x));
|
$ERROR('#5: eval("\\u0009" + "var" + "\\t" + "x" + "\\u0009" + "=" + "\\t" + "1" + "\\u0009"); x === 1. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* HORIZONTAL TAB (U+0009) between any two tokens is allowed
|
info: HORIZONTAL TAB (U+0009) between any two tokens is allowed
|
||||||
*
|
description: Insert real HORIZONTAL TAB between tokens of var x=1
|
||||||
* @path ch07/7.2/S7.2_A1.1_T2.js
|
---*/
|
||||||
* @description Insert real HORIZONTAL TAB between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
var x = 1 ;
|
var x = 1 ;
|
||||||
|
@ -19,4 +17,3 @@ eval(" var\tx =\t2 ");
|
||||||
if (x !== 2) {
|
if (x !== 2) {
|
||||||
$ERROR('#2: var\\tx =\\t1 ; x === 2. Actual: ' + (x));
|
$ERROR('#2: var\\tx =\\t1 ; x === 2. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* VERTICAL TAB (U+000B) between any two tokens is allowed
|
info: VERTICAL TAB (U+000B) between any two tokens is allowed
|
||||||
*
|
description: Insert VERTICAL TAB(\u000B and \v) between tokens of var x=1
|
||||||
* @path ch07/7.2/S7.2_A1.2_T1.js
|
---*/
|
||||||
* @description Insert VERTICAL TAB(\u000B and \v) between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("\u000Bvar\u000Bx\u000B=\u000B1\u000B");
|
eval("\u000Bvar\u000Bx\u000B=\u000B1\u000B");
|
||||||
|
@ -37,4 +35,3 @@ eval("\u000B" + "var" + "\v" + "x" + "\u000B" + "=" + "\v" + "1" + "\u000B");
|
||||||
if (x !== 1) {
|
if (x !== 1) {
|
||||||
$ERROR('#5: eval("\\u000B" + "var" + "\\v" + "x" + "\\u000B" + "=" + "\\v" + "1" + "\\u000B"); x === 1. Actual: ' + (x));
|
$ERROR('#5: eval("\\u000B" + "var" + "\\v" + "x" + "\\u000B" + "=" + "\\v" + "1" + "\\u000B"); x === 1. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* VERTICAL TAB (U+000B) between any two tokens is allowed
|
info: VERTICAL TAB (U+000B) between any two tokens is allowed
|
||||||
*
|
description: Insert real VERTICAL TAB between tokens of var x=1
|
||||||
* @path ch07/7.2/S7.2_A1.2_T2.js
|
---*/
|
||||||
* @description Insert real VERTICAL TAB between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
varx=1;
|
varx=1;
|
||||||
|
@ -19,5 +17,3 @@ eval("var\vx=\v1");
|
||||||
if (x !== 1) {
|
if (x !== 1) {
|
||||||
$ERROR('#2: var\\vx=\\v1; x === 1. Actual: ' + (x));
|
$ERROR('#2: var\\vx=\\v1; x === 1. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* FORM FEED (U+000C) between any two tokens is allowed
|
info: FORM FEED (U+000C) between any two tokens is allowed
|
||||||
*
|
description: Insert FORM FEED(\u000C and \f) between tokens of var x=1
|
||||||
* @path ch07/7.2/S7.2_A1.3_T1.js
|
---*/
|
||||||
* @description Insert FORM FEED(\u000C and \f) between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("\u000Cvar\u000Cx\u000C=\u000C1\u000C");
|
eval("\u000Cvar\u000Cx\u000C=\u000C1\u000C");
|
||||||
|
@ -37,4 +35,3 @@ eval("\u000C" + "var" + "\f" + "x" + "\u000C" + "=" + "\f" + "1" + "\u000C");
|
||||||
if (x !== 1) {
|
if (x !== 1) {
|
||||||
$ERROR('#5: eval("\\u000C" + "var" + "\\f" + "x" + "\\u000C" + "=" + "\\f" + "1" + "\\u000C"); x === 1. Actual: ' + (x));
|
$ERROR('#5: eval("\\u000C" + "var" + "\\f" + "x" + "\\u000C" + "=" + "\\f" + "1" + "\\u000C"); x === 1. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* FORM FEED (U+000C) between any two tokens is allowed
|
info: FORM FEED (U+000C) between any two tokens is allowed
|
||||||
*
|
description: Insert real FORM FEED between tokens of var x=1
|
||||||
* @path ch07/7.2/S7.2_A1.3_T2.js
|
---*/
|
||||||
* @description Insert real FORM FEED between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
varx=1;
|
varx=1;
|
||||||
|
@ -19,5 +17,3 @@ eval("var\fx=\f1");
|
||||||
if (x !== 1) {
|
if (x !== 1) {
|
||||||
$ERROR('#2: var\\fx=\\f1; x === 1. Actual: ' + (x));
|
$ERROR('#2: var\\fx=\\f1; x === 1. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* SPACE (U+0020) between any two tokens is allowed
|
info: SPACE (U+0020) between any two tokens is allowed
|
||||||
*
|
description: Insert SPACE(\u0020) between tokens of var x=1
|
||||||
* @path ch07/7.2/S7.2_A1.4_T1.js
|
---*/
|
||||||
* @description Insert SPACE(\u0020) between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("\u0020var\u0020x\u0020=\u00201\u0020");
|
eval("\u0020var\u0020x\u0020=\u00201\u0020");
|
||||||
|
@ -19,4 +17,3 @@ eval("\u0020" + "var" + "\u0020" + "x" + "\u0020" + "=" + "\u0020" + "1" + "\u00
|
||||||
if (x !== 1) {
|
if (x !== 1) {
|
||||||
$ERROR('#2: eval("\\u0020" + "var" + "\\u0020" + "x" + "\\u0020" + "=" + "\\u0020" + "1" + "\\u0020"); x === 1. Actual: ' + (x));
|
$ERROR('#2: eval("\\u0020" + "var" + "\\u0020" + "x" + "\\u0020" + "=" + "\\u0020" + "1" + "\\u0020"); x === 1. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* SPACE (U+0020) between any two tokens is allowed
|
info: SPACE (U+0020) between any two tokens is allowed
|
||||||
*
|
description: Insert real SPACE between tokens of var x=1
|
||||||
* @path ch07/7.2/S7.2_A1.4_T2.js
|
---*/
|
||||||
* @description Insert real SPACE between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
eval("\u0020var x\u0020= 1\u0020");
|
eval("\u0020var x\u0020= 1\u0020");
|
||||||
|
@ -19,5 +17,3 @@ if (x !== 1) {
|
||||||
if (x !== 1) {
|
if (x !== 1) {
|
||||||
$ERROR('#2: var x = 1 ; x === 1. Actual: ' + (x));
|
$ERROR('#2: var x = 1 ; x === 1. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* NO-BREAK SPACE (U+00A0) between any two tokens is allowed
|
info: NO-BREAK SPACE (U+00A0) between any two tokens is allowed
|
||||||
*
|
description: Insert NO-BREAK SPACE(\u00A0) between tokens of var x=1
|
||||||
* @path ch07/7.2/S7.2_A1.5_T1.js
|
---*/
|
||||||
* @description Insert NO-BREAK SPACE(\u00A0) between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("\u00A0var\u00A0x\u00A0=\u00A01\u00A0");
|
eval("\u00A0var\u00A0x\u00A0=\u00A01\u00A0");
|
||||||
|
@ -19,4 +17,3 @@ eval("\u00A0" + "var" + "\u00A0" + "x" + "\u00A0" + "=" + "\u00A0" + "1" + "\u00
|
||||||
if (x !== 1) {
|
if (x !== 1) {
|
||||||
$ERROR('#2: eval("\\u00A0" + "var" + "\\u00A0" + "x" + "\\u00A0" + "=" + "\\u00A0" + "1" + "\\u00A0"); x === 1. Actual: ' + (x));
|
$ERROR('#2: eval("\\u00A0" + "var" + "\\u00A0" + "x" + "\\u00A0" + "=" + "\\u00A0" + "1" + "\\u00A0"); x === 1. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* NO-BREAK SPACE (U+00A0) between any two tokens is allowed
|
info: NO-BREAK SPACE (U+00A0) between any two tokens is allowed
|
||||||
*
|
description: Insert real NO-BREAK SPACE between tokens of var x=1
|
||||||
* @path ch07/7.2/S7.2_A1.5_T2.js
|
---*/
|
||||||
* @description Insert real NO-BREAK SPACE between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
eval("\u00A0var x\u00A0= 1\u00A0");
|
eval("\u00A0var x\u00A0= 1\u00A0");
|
||||||
|
@ -19,5 +17,3 @@ if (x !== 1) {
|
||||||
if (x !== 1) {
|
if (x !== 1) {
|
||||||
$ERROR('#2: var x = 1 ; x === 1. Actual: ' + (x));
|
$ERROR('#2: var x = 1 ; x === 1. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* HORIZONTAL TAB (U+0009) may occur within strings
|
info: HORIZONTAL TAB (U+0009) may occur within strings
|
||||||
*
|
description: Use HORIZONTAL TAB(\u0009 and \t)
|
||||||
* @path ch07/7.2/S7.2_A2.1_T1.js
|
---*/
|
||||||
* @description Use HORIZONTAL TAB(\u0009 and \t)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
if (eval("'\u0009str\u0009ing\u0009'") !== "\u0009str\u0009ing\u0009") {
|
if (eval("'\u0009str\u0009ing\u0009'") !== "\u0009str\u0009ing\u0009") {
|
||||||
|
@ -17,4 +15,3 @@ if (eval("'\u0009str\u0009ing\u0009'") !== "\u0009str\u0009ing\u0009") {
|
||||||
if (eval("'\tstr\ting\t'") !== "\tstr\ting\t") {
|
if (eval("'\tstr\ting\t'") !== "\tstr\ting\t") {
|
||||||
$ERROR('#2: eval("\'\\tstr\\ting\\t\'") === "\\tstr\\ting\\t"');
|
$ERROR('#2: eval("\'\\tstr\\ting\\t\'") === "\\tstr\\ting\\t"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* HORIZONTAL TAB (U+0009) may occur within strings
|
info: HORIZONTAL TAB (U+0009) may occur within strings
|
||||||
*
|
description: Use real HORIZONTAL TAB
|
||||||
* @path ch07/7.2/S7.2_A2.1_T2.js
|
---*/
|
||||||
* @description Use real HORIZONTAL TAB
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
if (" str ing " !== "\u0009str\u0009ing\u0009") {
|
if (" str ing " !== "\u0009str\u0009ing\u0009") {
|
||||||
$ERROR('#1: " str ing " === "\\u0009str\\u0009ing\\u0009"');
|
$ERROR('#1: " str ing " === "\\u0009str\\u0009ing\\u0009"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* VERTICAL TAB (U+000B) may occur within strings
|
info: VERTICAL TAB (U+000B) may occur within strings
|
||||||
*
|
description: Use VERTICAL TAB(\u000B and \v)
|
||||||
* @path ch07/7.2/S7.2_A2.2_T1.js
|
---*/
|
||||||
* @description Use VERTICAL TAB(\u000B and \v)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
if (eval("'\u000Bstr\u000Bing\u000B'") !== "\u000Bstr\u000Bing\u000B") {
|
if (eval("'\u000Bstr\u000Bing\u000B'") !== "\u000Bstr\u000Bing\u000B") {
|
||||||
|
@ -17,4 +15,3 @@ if (eval("'\u000Bstr\u000Bing\u000B'") !== "\u000Bstr\u000Bing\u000B") {
|
||||||
if (eval("'\vstr\ving\v'") !== "\vstr\ving\v") {
|
if (eval("'\vstr\ving\v'") !== "\vstr\ving\v") {
|
||||||
$ERROR('#2: eval("\'\\vstr\\ving\\v\'") === "\\vstr\\ving\\v"');
|
$ERROR('#2: eval("\'\\vstr\\ving\\v\'") === "\\vstr\\ving\\v"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* VERTICAL TAB (U+000B) may occur within strings
|
info: VERTICAL TAB (U+000B) may occur within strings
|
||||||
*
|
description: Use real VERTICAL TAB
|
||||||
* @path ch07/7.2/S7.2_A2.2_T2.js
|
---*/
|
||||||
* @description Use real VERTICAL TAB
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
if ("string" !== "\u000Bstr\u000Bing\u000B") {
|
if ("string" !== "\u000Bstr\u000Bing\u000B") {
|
||||||
$ERROR('#1: "string" === "\\u000Bstr\\u000Bing\\u000B"');
|
$ERROR('#1: "string" === "\\u000Bstr\\u000Bing\\u000B"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* FORM FEED (U+000C) may occur within strings
|
info: FORM FEED (U+000C) may occur within strings
|
||||||
*
|
description: Use FORM FEED(\u000C and \f)
|
||||||
* @path ch07/7.2/S7.2_A2.3_T1.js
|
---*/
|
||||||
* @description Use FORM FEED(\u000C and \f)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
if (eval("'\u000Cstr\u000Cing\u000C'") !== "\u000Cstr\u000Cing\u000C") {
|
if (eval("'\u000Cstr\u000Cing\u000C'") !== "\u000Cstr\u000Cing\u000C") {
|
||||||
|
@ -17,4 +15,3 @@ if (eval("'\u000Cstr\u000Cing\u000C'") !== "\u000Cstr\u000Cing\u000C") {
|
||||||
if (eval("'\fstr\fing\f'") !== "\fstr\fing\f") {
|
if (eval("'\fstr\fing\f'") !== "\fstr\fing\f") {
|
||||||
$ERROR('#2: eval("\'\\fstr\\fing\\f\'") === "\\fstr\\fing\\f"');
|
$ERROR('#2: eval("\'\\fstr\\fing\\f\'") === "\\fstr\\fing\\f"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* FORM FEED (U+000C) may occur within strings
|
info: FORM FEED (U+000C) may occur within strings
|
||||||
*
|
description: Use real FORM FEED
|
||||||
* @path ch07/7.2/S7.2_A2.3_T2.js
|
---*/
|
||||||
* @description Use real FORM FEED
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
if ("string" !== "\u000Cstr\u000Cing\u000C") {
|
if ("string" !== "\u000Cstr\u000Cing\u000C") {
|
||||||
$ERROR('#1: "string" === "\\u000Cstr\\u000Cing\\u000C"');
|
$ERROR('#1: "string" === "\\u000Cstr\\u000Cing\\u000C"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* SPACE (U+0020) may occur within strings
|
info: SPACE (U+0020) may occur within strings
|
||||||
*
|
description: Use SPACE(\u0020)
|
||||||
* @path ch07/7.2/S7.2_A2.4_T1.js
|
---*/
|
||||||
* @description Use SPACE(\u0020)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
if (eval("'\u0020str\u0020ing\u0020'") !== "\u0020str\u0020ing\u0020") {
|
if (eval("'\u0020str\u0020ing\u0020'") !== "\u0020str\u0020ing\u0020") {
|
||||||
|
@ -17,4 +15,3 @@ if (eval("'\u0020str\u0020ing\u0020'") !== "\u0020str\u0020ing\u0020") {
|
||||||
if (eval("' str ing '") !== " str ing ") {
|
if (eval("' str ing '") !== " str ing ") {
|
||||||
$ERROR('#2: eval("\' str ing \'") === " str ing "');
|
$ERROR('#2: eval("\' str ing \'") === " str ing "');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* SPACE (U+0020) may occur within strings
|
info: SPACE (U+0020) may occur within strings
|
||||||
*
|
description: Use real SPACE
|
||||||
* @path ch07/7.2/S7.2_A2.4_T2.js
|
---*/
|
||||||
* @description Use real SPACE
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
if (" str ing " !== "\u0020str\u0020ing\u0020") {
|
if (" str ing " !== "\u0020str\u0020ing\u0020") {
|
||||||
$ERROR('#1: " str ing " === "\\u0020str\\u0020ing\\u0020"');
|
$ERROR('#1: " str ing " === "\\u0020str\\u0020ing\\u0020"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* NO-BREAK SPACE (U+00A0) may occur within strings
|
info: NO-BREAK SPACE (U+00A0) may occur within strings
|
||||||
*
|
description: Use NO-BREAK SPACE(\u00A0)
|
||||||
* @path ch07/7.2/S7.2_A2.5_T1.js
|
---*/
|
||||||
* @description Use NO-BREAK SPACE(\u00A0)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
if (eval("'\u00A0str\u00A0ing\u00A0'") !== "\u00A0str\u00A0ing\u00A0") {
|
if (eval("'\u00A0str\u00A0ing\u00A0'") !== "\u00A0str\u00A0ing\u00A0") {
|
||||||
$ERROR('#1: eval("\'\\u00A0str\\u00A0ing\\u00A0\'") === "\\u00A0str\\u00A0ing\\u00A0"');
|
$ERROR('#1: eval("\'\\u00A0str\\u00A0ing\\u00A0\'") === "\\u00A0str\\u00A0ing\\u00A0"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* NO-BREAK SPACE (U+00A0) may occur within strings
|
info: NO-BREAK SPACE (U+00A0) may occur within strings
|
||||||
*
|
description: Use real NO-BREAK SPACE
|
||||||
* @path ch07/7.2/S7.2_A2.5_T2.js
|
---*/
|
||||||
* @description Use real NO-BREAK SPACE
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
if (" str ing " !== "\u00A0str\u00A0ing\u00A0") {
|
if (" str ing " !== "\u00A0str\u00A0ing\u00A0") {
|
||||||
$ERROR('#1: " str ing " === "\\u00A0str\\u00A0ing\\u00A0"');
|
$ERROR('#1: " str ing " === "\\u00A0str\\u00A0ing\\u00A0"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Single line comment can contain HORIZONTAL TAB (U+0009)
|
info: Single line comment can contain HORIZONTAL TAB (U+0009)
|
||||||
*
|
description: Use HORIZONTAL TAB(\u0009)
|
||||||
* @path ch07/7.2/S7.2_A3.1_T1.js
|
---*/
|
||||||
* @description Use HORIZONTAL TAB(\u0009)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("//\u0009 single line \u0009 comment \u0009");
|
eval("//\u0009 single line \u0009 comment \u0009");
|
||||||
|
@ -17,4 +15,3 @@ eval("//\u0009 single line \u0009 comment \u0009 x = 1;");
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; eval("//\\u0009 single line \\u0009 comment \\u0009 x = 1;"); x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; eval("//\\u0009 single line \\u0009 comment \\u0009 x = 1;"); x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Single line comment can contain HORIZONTAL TAB (U+0009)
|
info: Single line comment can contain HORIZONTAL TAB (U+0009)
|
||||||
*
|
description: Use real HORIZONTAL TAB
|
||||||
* @path ch07/7.2/S7.2_A3.1_T2.js
|
---*/
|
||||||
* @description Use real HORIZONTAL TAB
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
var x = 0;
|
var x = 0;
|
||||||
|
@ -14,4 +12,3 @@ var x = 0;
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Single line comment can contain VERTICAL TAB (U+000B)
|
info: Single line comment can contain VERTICAL TAB (U+000B)
|
||||||
*
|
description: Use VERTICAL TAB(\u000B)
|
||||||
* @path ch07/7.2/S7.2_A3.2_T1.js
|
---*/
|
||||||
* @description Use VERTICAL TAB(\u000B)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("//\u000B single line \u000B comment \u000B");
|
eval("//\u000B single line \u000B comment \u000B");
|
||||||
|
@ -17,4 +15,3 @@ eval("//\u000B single line \u000B comment \u000B x = 1;");
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; eval("//\\u000B single line \\u000B comment \\u000B x = 1;"); x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; eval("//\\u000B single line \\u000B comment \\u000B x = 1;"); x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Single line comment can contain VERTICAL TAB (U+000B)
|
info: Single line comment can contain VERTICAL TAB (U+000B)
|
||||||
*
|
description: Use real VERTICAL TAB
|
||||||
* @path ch07/7.2/S7.2_A3.2_T2.js
|
---*/
|
||||||
* @description Use real VERTICAL TAB
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
var x = 0;
|
var x = 0;
|
||||||
|
@ -14,4 +12,3 @@ var x = 0;
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; //singlelinecommentx = 1; x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; //singlelinecommentx = 1; x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Single line comment can contain FORM FEED (U+000C)
|
info: Single line comment can contain FORM FEED (U+000C)
|
||||||
*
|
description: Use FORM FEED(\u000C)
|
||||||
* @path ch07/7.2/S7.2_A3.3_T1.js
|
---*/
|
||||||
* @description Use FORM FEED(\u000C)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("//\u000C single line \u000C comment \u000C");
|
eval("//\u000C single line \u000C comment \u000C");
|
||||||
|
@ -17,4 +15,3 @@ eval("//\u000C single line \u000C comment \u000C x = 1;");
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; eval("//\\u000C single line \\u000C comment \\u000C x = 1;"); x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; eval("//\\u000C single line \\u000C comment \\u000C x = 1;"); x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Single line comment can contain FORM FEED (U+000C)
|
info: Single line comment can contain FORM FEED (U+000C)
|
||||||
*
|
description: Use real FORM FEED
|
||||||
* @path ch07/7.2/S7.2_A3.3_T2.js
|
---*/
|
||||||
* @description Use real FORM FEED
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
var x = 0;
|
var x = 0;
|
||||||
|
@ -14,4 +12,3 @@ var x = 0;
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; //singlelinecommentx = 1; x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; //singlelinecommentx = 1; x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Single line comment can contain SPACE (U+0020)
|
info: Single line comment can contain SPACE (U+0020)
|
||||||
*
|
description: Use SPACE(\u0020)
|
||||||
* @path ch07/7.2/S7.2_A3.4_T1.js
|
---*/
|
||||||
* @description Use SPACE(\u0020)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("//\u0020 single line \u0020 comment \u0020");
|
eval("//\u0020 single line \u0020 comment \u0020");
|
||||||
|
@ -17,4 +15,3 @@ eval("//\u0020 single line \u0020 comment \u0020 x = 1;");
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; eval("//\\u0020 single line \\u0020 comment \\u0020 x = 1;"); x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; eval("//\\u0020 single line \\u0020 comment \\u0020 x = 1;"); x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Single line comment can contain SPACE (U+0020)
|
info: Single line comment can contain SPACE (U+0020)
|
||||||
*
|
description: Use real SPACE
|
||||||
* @path ch07/7.2/S7.2_A3.4_T2.js
|
---*/
|
||||||
* @description Use real SPACE
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
var x = 0;
|
var x = 0;
|
||||||
|
@ -14,4 +12,3 @@ var x = 0;
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Single line comment can contain NO-BREAK SPACE (U+00A0)
|
info: Single line comment can contain NO-BREAK SPACE (U+00A0)
|
||||||
*
|
description: Use NO-BREAK SPACE(\u00A0)
|
||||||
* @path ch07/7.2/S7.2_A3.5_T1.js
|
---*/
|
||||||
* @description Use NO-BREAK SPACE(\u00A0)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("//\u00A0 single line \u00A0 comment \u00A0");
|
eval("//\u00A0 single line \u00A0 comment \u00A0");
|
||||||
|
@ -17,4 +15,3 @@ eval("//\u00A0 single line \u00A0 comment \u00A0 x = 1;");
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; eval("//\\u00A0 single line \\u00A0 comment \\u00A0 x = 1;"); x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; eval("//\\u00A0 single line \\u00A0 comment \\u00A0 x = 1;"); x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Single line comment can contain NO-BREAK SPACE (U+00A0)
|
info: Single line comment can contain NO-BREAK SPACE (U+00A0)
|
||||||
*
|
description: Use real NO-BREAK SPACE
|
||||||
* @path ch07/7.2/S7.2_A3.5_T2.js
|
---*/
|
||||||
* @description Use real NO-BREAK SPACE
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
var x = 0;
|
var x = 0;
|
||||||
|
@ -14,4 +12,3 @@ var x = 0;
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; // single line comment x = 1; x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Multi line comment can contain HORIZONTAL TAB (U+0009)
|
info: Multi line comment can contain HORIZONTAL TAB (U+0009)
|
||||||
*
|
description: Use HORIZONTAL TAB(\u0009)
|
||||||
* @path ch07/7.2/S7.2_A4.1_T1.js
|
---*/
|
||||||
* @description Use HORIZONTAL TAB(\u0009)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("/*\u0009 multi line \u0009 comment \u0009*/");
|
eval("/*\u0009 multi line \u0009 comment \u0009*/");
|
||||||
|
@ -17,4 +15,3 @@ eval("/*\u0009 multi line \u0009 comment \u0009 x = 1;*/");
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; eval("/*\\u0009 multi line \\u0009 comment \\u0009 x = 1;*/"); x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; eval("/*\\u0009 multi line \\u0009 comment \\u0009 x = 1;*/"); x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Multi line comment can contain HORIZONTAL TAB (U+0009)
|
info: Multi line comment can contain HORIZONTAL TAB (U+0009)
|
||||||
*
|
description: Use real HORIZONTAL TAB
|
||||||
* @path ch07/7.2/S7.2_A4.1_T2.js
|
---*/
|
||||||
* @description Use real HORIZONTAL TAB
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*CHECK#1*/
|
/*CHECK#1*/
|
||||||
var x = 0;
|
var x = 0;
|
||||||
|
@ -14,4 +12,3 @@ var x = 0;
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Multi line comment can contain VERTICAL TAB (U+000B)
|
info: Multi line comment can contain VERTICAL TAB (U+000B)
|
||||||
*
|
description: Use VERTICAL TAB(\u000B)
|
||||||
* @path ch07/7.2/S7.2_A4.2_T1.js
|
---*/
|
||||||
* @description Use VERTICAL TAB(\u000B)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("/*\u000B multi line \u000B comment \u000B*/");
|
eval("/*\u000B multi line \u000B comment \u000B*/");
|
||||||
|
@ -17,4 +15,3 @@ eval("/*\u000B multi line \u000B comment \u000B x = 1;*/");
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; eval("/*\\u000B multi line \\u000B comment \\u000B x = 1;*/"); x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; eval("/*\\u000B multi line \\u000B comment \\u000B x = 1;*/"); x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Multi line comment can contain VERTICAL TAB (U+000B)
|
info: Multi line comment can contain VERTICAL TAB (U+000B)
|
||||||
*
|
description: Use real VERTICAL TAB
|
||||||
* @path ch07/7.2/S7.2_A4.2_T2.js
|
---*/
|
||||||
* @description Use real VERTICAL TAB
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*CHECK#1*/
|
/*CHECK#1*/
|
||||||
var x = 0;
|
var x = 0;
|
||||||
|
@ -14,4 +12,3 @@ var x = 0;
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; /*multilinecommentx = 1;*/ x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; /*multilinecommentx = 1;*/ x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Multi line comment can contain FORM FEED (U+000C)
|
info: Multi line comment can contain FORM FEED (U+000C)
|
||||||
*
|
description: Use FORM FEED(\u000C)
|
||||||
* @path ch07/7.2/S7.2_A4.3_T1.js
|
---*/
|
||||||
* @description Use FORM FEED(\u000C)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("/*\u000C multi line \u000C comment \u000C*/");
|
eval("/*\u000C multi line \u000C comment \u000C*/");
|
||||||
|
@ -17,4 +15,3 @@ eval("/*\u000C multi line \u000C comment \u000C x = 1;*/");
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; eval("/*\\u000C multi line \\u000C comment \\u000C x = 1;*/"); x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; eval("/*\\u000C multi line \\u000C comment \\u000C x = 1;*/"); x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Multi line comment can contain FORM FEED (U+000C)
|
info: Multi line comment can contain FORM FEED (U+000C)
|
||||||
*
|
description: Use real FORM FEED
|
||||||
* @path ch07/7.2/S7.2_A4.3_T2.js
|
---*/
|
||||||
* @description Use real FORM FEED
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*CHECK#1*/
|
/*CHECK#1*/
|
||||||
var x = 0;
|
var x = 0;
|
||||||
|
@ -14,4 +12,3 @@ var x = 0;
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; /*multilinecommentx = 1;*/ x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; /*multilinecommentx = 1;*/ x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Multi line comment can contain SPACE (U+0020)
|
info: Multi line comment can contain SPACE (U+0020)
|
||||||
*
|
description: Use SPACE(\u0020)
|
||||||
* @path ch07/7.2/S7.2_A4.4_T1.js
|
---*/
|
||||||
* @description Use SPACE(\u0020)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("/*\u0020 multi line \u0020 comment \u0020*/");
|
eval("/*\u0020 multi line \u0020 comment \u0020*/");
|
||||||
|
@ -17,4 +15,3 @@ eval("/*\u0020 multi line \u0020 comment \u0020 x = 1;*/");
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; eval("/*\\u0020 multi line \\u0020 comment \\u0020 x = 1;*/"); x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; eval("/*\\u0020 multi line \\u0020 comment \\u0020 x = 1;*/"); x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Multi line comment can contain SPACE (U+0020)
|
info: Multi line comment can contain SPACE (U+0020)
|
||||||
*
|
description: Use real SPACE
|
||||||
* @path ch07/7.2/S7.2_A4.4_T2.js
|
---*/
|
||||||
* @description Use real SPACE
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*CHECK#1*/
|
/*CHECK#1*/
|
||||||
var x = 0;
|
var x = 0;
|
||||||
|
@ -14,4 +12,3 @@ var x = 0;
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Multi line comment can contain NO-BREAK SPACE (U+00A0)
|
info: Multi line comment can contain NO-BREAK SPACE (U+00A0)
|
||||||
*
|
description: Use NO-BREAK SPACE(\u00A0)
|
||||||
* @path ch07/7.2/S7.2_A4.5_T1.js
|
---*/
|
||||||
* @description Use NO-BREAK SPACE(\u00A0)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("/*\u00A0 multi line \u00A0 comment \u00A0*/");
|
eval("/*\u00A0 multi line \u00A0 comment \u00A0*/");
|
||||||
|
@ -17,4 +15,3 @@ eval("/*\u00A0 multi line \u00A0 comment \u00A0 x = 1;*/");
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; eval("/*\\u00A0 multi line \\u00A0 comment \\u00A0 x = 1;*/"); x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; eval("/*\\u00A0 multi line \\u00A0 comment \\u00A0 x = 1;*/"); x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* Multi line comment can contain NO-BREAK SPACE (U+00A0)
|
info: Multi line comment can contain NO-BREAK SPACE (U+00A0)
|
||||||
*
|
description: Use real NO-BREAK SPACE
|
||||||
* @path ch07/7.2/S7.2_A4.5_T2.js
|
---*/
|
||||||
* @description Use real NO-BREAK SPACE
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*CHECK#1*/
|
/*CHECK#1*/
|
||||||
var x = 0;
|
var x = 0;
|
||||||
|
@ -14,4 +12,3 @@ var x = 0;
|
||||||
if (x !== 0) {
|
if (x !== 0) {
|
||||||
$ERROR('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
|
$ERROR('#1: var x = 0; /* multi line comment x = 1;*/ x === 0. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* White space cannot be expressed as a Unicode escape sequence consisting of six characters, namely \u plus four hexadecimal digits
|
info: >
|
||||||
*
|
White space cannot be expressed as a Unicode escape sequence consisting
|
||||||
* @path ch07/7.2/S7.2_A5_T1.js
|
of six characters, namely \u plus four hexadecimal digits
|
||||||
* @description Use TAB (U+0009)
|
description: Use TAB (U+0009)
|
||||||
* @negative
|
flags: [negative]
|
||||||
*/
|
---*/
|
||||||
|
|
||||||
var\u0009x;
|
var\u0009x;
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* White space cannot be expressed as a Unicode escape sequence consisting of six characters, namely \u plus four hexadecimal digits
|
info: >
|
||||||
*
|
White space cannot be expressed as a Unicode escape sequence consisting
|
||||||
* @path ch07/7.2/S7.2_A5_T2.js
|
of six characters, namely \u plus four hexadecimal digits
|
||||||
* @description Use VERTICAL TAB (U+000B)
|
description: Use VERTICAL TAB (U+000B)
|
||||||
* @negative
|
flags: [negative]
|
||||||
*/
|
---*/
|
||||||
|
|
||||||
var\u000Bx;
|
var\u000Bx;
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* White space cannot be expressed as a Unicode escape sequence consisting of six characters, namely \u plus four hexadecimal digits
|
info: >
|
||||||
*
|
White space cannot be expressed as a Unicode escape sequence consisting
|
||||||
* @path ch07/7.2/S7.2_A5_T3.js
|
of six characters, namely \u plus four hexadecimal digits
|
||||||
* @description Use FORM FEED (U+000C)
|
description: Use FORM FEED (U+000C)
|
||||||
* @negative
|
flags: [negative]
|
||||||
*/
|
---*/
|
||||||
|
|
||||||
var\u000Cx;
|
var\u000Cx;
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* White space cannot be expressed as a Unicode escape sequence consisting of six characters, namely \u plus four hexadecimal digits
|
info: >
|
||||||
*
|
White space cannot be expressed as a Unicode escape sequence consisting
|
||||||
* @path ch07/7.2/S7.2_A5_T4.js
|
of six characters, namely \u plus four hexadecimal digits
|
||||||
* @description Use SPACE (U+0020)
|
description: Use SPACE (U+0020)
|
||||||
* @negative
|
flags: [negative]
|
||||||
*/
|
---*/
|
||||||
|
|
||||||
var\u0020x;
|
var\u0020x;
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* White space cannot be expressed as a Unicode escape sequence consisting of six characters, namely \u plus four hexadecimal digits
|
info: >
|
||||||
*
|
White space cannot be expressed as a Unicode escape sequence consisting
|
||||||
* @path ch07/7.2/S7.2_A5_T5.js
|
of six characters, namely \u plus four hexadecimal digits
|
||||||
* @description Use NO-BREAK SPACE (U+00A0)
|
description: Use NO-BREAK SPACE (U+00A0)
|
||||||
* @negative
|
flags: [negative]
|
||||||
*/
|
---*/
|
||||||
|
|
||||||
var\u00A0x;
|
var\u00A0x;
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path ch07/7.3/7.3-1.js
|
|
||||||
* @description 7.3 - ES5 recognizes the character <LS> (\u2028) as line terminators when parsing statements
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
7.3 - ES5 recognizes the character <LS> (\u2028) as line
|
||||||
|
terminators when parsing statements
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
eval("var test7_3_1\u2028prop = 66;");
|
eval("var test7_3_1\u2028prop = 66;");
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path ch07/7.3/7.3-10.js
|
|
||||||
* @description 7.3 - ES5 recognizes the character <PS> (\u2029) as a NonEscapeCharacter
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
7.3 - ES5 recognizes the character <PS> (\u2029) as a
|
||||||
|
NonEscapeCharacter
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path ch07/7.3/7.3-11.js
|
|
||||||
* @description 7.3 - ES5 specifies that a multiline comment that contains a line terminator character <LS> (\u2028) must be treated as a single line terminator for the purposes of semicolon insertion
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
7.3 - ES5 specifies that a multiline comment that contains a line
|
||||||
|
terminator character <LS> (\u2028) must be treated as a single
|
||||||
|
line terminator for the purposes of semicolon insertion
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
/*MultiLine
|
/*MultiLine
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path ch07/7.3/7.3-12.js
|
|
||||||
* @description 7.3 - ES5 specifies that a multiline comment that contains a line terminator character <PS> (\u2029) must be treated as a single line terminator for the purposes of semicolon insertion
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
7.3 - ES5 specifies that a multiline comment that contains a line
|
||||||
|
terminator character <PS> (\u2029) must be treated as a single
|
||||||
|
line terminator for the purposes of semicolon insertion
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
/*MultiLine
|
/*MultiLine
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path ch07/7.3/7.3-13.js
|
|
||||||
* @description 7.3 - ES5 specifies that a multiline comment that contains a line terminator character <CR> (\u000D) must be treated as a single line terminator for the purposes of semicolon insertion
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
7.3 - ES5 specifies that a multiline comment that contains a line
|
||||||
|
terminator character <CR> (\u000D) must be treated as a single
|
||||||
|
line terminator for the purposes of semicolon insertion
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
/*MultiLine
|
/*MultiLine
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path ch07/7.3/7.3-14.js
|
|
||||||
* @description 7.3 - ES5 specifies that a multiline comment that contains a line terminator character <LF> (\u000A) must be treated as a single line terminator for the purposes of semicolon insertion
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
7.3 - ES5 specifies that a multiline comment that contains a line
|
||||||
|
terminator character <LF> (\u000A) must be treated as a single
|
||||||
|
line terminator for the purposes of semicolon insertion
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
/*MultiLine
|
/*MultiLine
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path ch07/7.3/7.3-15.js
|
|
||||||
* @description 7.3 - ES5 recognize <BOM> (\uFFFF) as a whitespace character
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: 7.3 - ES5 recognize <BOM> (\uFFFF) as a whitespace character
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
var prop = "a\uFFFFa";
|
var prop = "a\uFFFFa";
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path ch07/7.3/7.3-2.js
|
|
||||||
* @description 7.3 - ES5 recognizes the character <PS> (\u2029) as line terminators when parsing statements
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
7.3 - ES5 recognizes the character <PS> (\u2029) as line
|
||||||
|
terminators when parsing statements
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
eval("var test7_3_2\u2029prop = 66;");
|
eval("var test7_3_2\u2029prop = 66;");
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path ch07/7.3/7.3-3.js
|
|
||||||
* @description 7.3 - ES5 recognizes the character <LS> (\u2028) as terminating SingleLineComments
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
7.3 - ES5 recognizes the character <LS> (\u2028) as terminating
|
||||||
|
SingleLineComments
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path ch07/7.3/7.3-4.js
|
|
||||||
* @description 7.3 - ES5 recognizes the character <PS> (\u2029) as terminating SingleLineComments
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
7.3 - ES5 recognizes the character <PS> (\u2029) as terminating
|
||||||
|
SingleLineComments
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path ch07/7.3/7.3-5.js
|
|
||||||
* @description 7.3 - ES5 recognizes the character <LS> (\u2028) as terminating string literal
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
7.3 - ES5 recognizes the character <LS> (\u2028) as terminating
|
||||||
|
string literal
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
var prop = "66\u2028123";
|
var prop = "66\u2028123";
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path ch07/7.3/7.3-6.js
|
|
||||||
* @description 7.3 - ES5 recognizes the character <PS> (\u2029) as terminating string literal
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
7.3 - ES5 recognizes the character <PS> (\u2029) as terminating
|
||||||
|
string literal
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
var prop = "66\u2029123";
|
var prop = "66\u2029123";
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path ch07/7.3/7.3-7.js
|
|
||||||
* @description 7.3 - ES5 recognizes the character <LS> (\u2028) as terminating regular expression literals
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
7.3 - ES5 recognizes the character <LS> (\u2028) as terminating
|
||||||
|
regular expression literals
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path ch07/7.3/7.3-8.js
|
|
||||||
* @description 7.3 - ES5 recognizes the character <PS> (\u2029) as terminating regular expression literals
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
7.3 - ES5 recognizes the character <PS> (\u2029) as terminating
|
||||||
|
regular expression literals
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||||
/// Ecma International makes this code available under the terms and conditions set
|
// Ecma International makes this code available under the terms and conditions set
|
||||||
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
||||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
// "Use Terms"). Any redistribution of this code must retain the above
|
||||||
/// copyright and this notice and otherwise comply with the Use Terms.
|
// copyright and this notice and otherwise comply with the Use Terms.
|
||||||
/**
|
|
||||||
* @path ch07/7.3/7.3-9.js
|
|
||||||
* @description 7.3 - ES5 recognizes the character <LS> (\u2028) as a NonEscapeCharacter
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/*---
|
||||||
|
description: >
|
||||||
|
7.3 - ES5 recognizes the character <LS> (\u2028) as a
|
||||||
|
NonEscapeCharacter
|
||||||
|
includes: [runTestCase.js]
|
||||||
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* LINE FEED (U+000A) may occur between any two tokens
|
info: LINE FEED (U+000A) may occur between any two tokens
|
||||||
*
|
description: Insert LINE FEED (\u000A and \n) between tokens of var x=1
|
||||||
* @path ch07/7.3/S7.3_A1.1_T1.js
|
---*/
|
||||||
* @description Insert LINE FEED (\u000A and \n) between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("\u000Avar\u000Ax\u000A=\u000A1\u000A");
|
eval("\u000Avar\u000Ax\u000A=\u000A1\u000A");
|
||||||
|
@ -37,4 +35,3 @@ eval("\u000A" + "var" + "\n" + "x" + "\u000A" + "=" + "\n" + "1" + "\u000A");
|
||||||
if (x !== 1) {
|
if (x !== 1) {
|
||||||
$ERROR('#5: eval("\\u000A" + "var" + "\\n" + "x" + "\\u000A" + "=" + "\\n" + "1" + "\\u000A"); x === 1. Actual: ' + (x));
|
$ERROR('#5: eval("\\u000A" + "var" + "\\n" + "x" + "\\u000A" + "=" + "\\n" + "1" + "\\u000A"); x === 1. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* LINE FEED (U+000A) may occur between any two tokens
|
info: LINE FEED (U+000A) may occur between any two tokens
|
||||||
*
|
description: Insert real LINE FEED between tokens of var x=1
|
||||||
* @path ch07/7.3/S7.3_A1.1_T2.js
|
---*/
|
||||||
* @description Insert real LINE FEED between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
var
|
var
|
||||||
|
@ -16,4 +14,3 @@ x
|
||||||
if (x !== 1) {
|
if (x !== 1) {
|
||||||
$ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x));
|
$ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* CARRIAGE RETURN (U+000D) may occur between any two tokens
|
info: CARRIAGE RETURN (U+000D) may occur between any two tokens
|
||||||
*
|
description: Insert CARRIAGE RETURN (\u000D and \r) between tokens of var x=1
|
||||||
* @path ch07/7.3/S7.3_A1.2_T1.js
|
---*/
|
||||||
* @description Insert CARRIAGE RETURN (\u000D and \r) between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("\u000Dvar\u000Dx\u000D=\u000D1\u000D");
|
eval("\u000Dvar\u000Dx\u000D=\u000D1\u000D");
|
||||||
|
@ -37,4 +35,3 @@ eval("\u000D" + "var" + "\r" + "x" + "\u000D" + "=" + "\r" + "1" + "\u000D");
|
||||||
if (x !== 1) {
|
if (x !== 1) {
|
||||||
$ERROR('#5: eval("\\u000D" + "var" + "\\r" + "x" + "\\u000D" + "=" + "\\r" + "1" + "\\u000D"); x === 1. Actual: ' + (x));
|
$ERROR('#5: eval("\\u000D" + "var" + "\\r" + "x" + "\\u000D" + "=" + "\\r" + "1" + "\\u000D"); x === 1. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* CARRIAGE RETURN (U+000D) may occur between any two tokens
|
info: CARRIAGE RETURN (U+000D) may occur between any two tokens
|
||||||
*
|
description: Insert real CARRIAGE RETURN between tokens of var x=1
|
||||||
* @path ch07/7.3/S7.3_A1.2_T2.js
|
---*/
|
||||||
* @description Insert real CARRIAGE RETURN between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
var
|
var
|
||||||
|
@ -16,4 +14,3 @@ x
|
||||||
if (x !== 1) {
|
if (x !== 1) {
|
||||||
$ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x));
|
$ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* LINE SEPARATOR (U+2028) may occur between any two tokens
|
info: LINE SEPARATOR (U+2028) may occur between any two tokens
|
||||||
*
|
description: Insert LINE SEPARATOR (\u2028) between tokens of var x=1
|
||||||
* @path ch07/7.3/S7.3_A1.3.js
|
---*/
|
||||||
* @description Insert LINE SEPARATOR (\u2028) between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("\u2028var\u2028x\u2028=\u20281\u2028");
|
eval("\u2028var\u2028x\u2028=\u20281\u2028");
|
||||||
|
@ -19,5 +17,3 @@ eval("\u2028" + "var" + "\u2028" + "x" + "\u2028" + "=" + "\u2028" + "1" + "\u20
|
||||||
if (x !== 1) {
|
if (x !== 1) {
|
||||||
$ERROR('#2: eval("\\u2028" + "var" + "\\u2028" + "x" + "\\u2028" + "=" + "\\u2028" + "1" + "\\u2028"); x === 1. Actual: ' + (x));
|
$ERROR('#2: eval("\\u2028" + "var" + "\\u2028" + "x" + "\\u2028" + "=" + "\\u2028" + "1" + "\\u2028"); x === 1. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* PARAGRAPH SEPARATOR (U+2029) may occur between any two tokens
|
info: PARAGRAPH SEPARATOR (U+2029) may occur between any two tokens
|
||||||
*
|
description: Insert PARAGRAPH SEPARATOR (\u2029) between tokens of var x=1
|
||||||
* @path ch07/7.3/S7.3_A1.4.js
|
---*/
|
||||||
* @description Insert PARAGRAPH SEPARATOR (\u2029) between tokens of var x=1
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
eval("\u2029var\u2029x\u2029=\u20291\u2029");
|
eval("\u2029var\u2029x\u2029=\u20291\u2029");
|
||||||
|
@ -19,7 +17,3 @@ eval("\u2029" + "var" + "\u2029" + "x" + "\u2029" + "=" + "\u2029" + "1" + "\u20
|
||||||
if (x !== 1) {
|
if (x !== 1) {
|
||||||
$ERROR('#2: eval("\\u2029" + "var" + "\\u2029" + "x" + "\\u2029" + "=" + "\\u2029" + "1" + "\\u2029"); x === 1. Actual: ' + (x));
|
$ERROR('#2: eval("\\u2029" + "var" + "\\u2029" + "x" + "\\u2029" + "=" + "\\u2029" + "1" + "\\u2029"); x === 1. Actual: ' + (x));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,13 @@
|
||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/**
|
/*---
|
||||||
* LINE FEED (U+000A) within strings is not allowed
|
info: LINE FEED (U+000A) within strings is not allowed
|
||||||
*
|
description: Insert LINE FEED (\u000A) into string
|
||||||
* @path ch07/7.3/S7.3_A2.1_T1.js
|
flags: [negative]
|
||||||
* @description Insert LINE FEED (\u000A) into string
|
---*/
|
||||||
* @negative
|
|
||||||
*/
|
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
if (eval("'\u000Astr\u000Aing\u000A'") === "\u000Astr\u000Aing\u000A") {
|
if (eval("'\u000Astr\u000Aing\u000A'") === "\u000Astr\u000Aing\u000A") {
|
||||||
$ERROR('#1: eval("\'\\u000Astr\\u000Aing\\u000A\'") === "\\u000Astr\\u000Aing\\u000A"');
|
$ERROR('#1: eval("\'\\u000Astr\\u000Aing\\u000A\'") === "\\u000Astr\\u000Aing\\u000A"');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue