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.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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)
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||
built-ins (Global.escape)
|
||||
includes:
|
||||
- runTestCase.js
|
||||
- fnGlobalObject.js
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var global = fnGlobalObject();
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Check type of various properties
|
||||
*
|
||||
* @path annexB/B.2.1.propertyCheck.js
|
||||
* @description Checking properties of this object (escape)
|
||||
*/
|
||||
/*---
|
||||
info: Check type of various properties
|
||||
description: Checking properties of this object (escape)
|
||||
---*/
|
||||
|
||||
if (typeof this.escape === "undefined") $ERROR('#1: 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.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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)
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||
built-ins (Global.unescape)
|
||||
includes:
|
||||
- runTestCase.js
|
||||
- fnGlobalObject.js
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var global = fnGlobalObject();
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Check type of various properties
|
||||
*
|
||||
* @path annexB/B.2.2.propertyCheck.js
|
||||
* @description Checking properties of this object (unescape)
|
||||
*/
|
||||
/*---
|
||||
info: Check type of various properties
|
||||
description: Checking properties of this object (unescape)
|
||||
---*/
|
||||
|
||||
if (typeof this.unescape === "undefined") $ERROR('#1: 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.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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)
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||
built-ins (String.prototype.substr)
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var desc = Object.getOwnPropertyDescriptor(String.prototype, "substr");
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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)
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||
built-ins (Date.prototype.getYear)
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var desc = Object.getOwnPropertyDescriptor(Date.prototype, "getYear");
|
||||
|
|
|
@ -1,15 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Check type of various properties
|
||||
*
|
||||
* @path annexB/B.2.4.propertyCheck.js
|
||||
* @description Checking properties of the Date object (getYear)
|
||||
*/
|
||||
/*---
|
||||
info: Check type of various properties
|
||||
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('#2: typeof Date.prototype["getYear"] === "function". Actual: ' + (typeof Date.prototype["getYear"] ));
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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)
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||
built-ins (Date.prototype.setYear)
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var desc = Object.getOwnPropertyDescriptor(Date.prototype, "setYear");
|
||||
|
|
|
@ -1,15 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Check type of various properties
|
||||
*
|
||||
* @path annexB/B.2.5.propertyCheck.js
|
||||
* @description Checking properties of the Date object (setYear)
|
||||
*/
|
||||
/*---
|
||||
info: Check type of various properties
|
||||
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('#2: typeof Date.prototype["setYear"] === "function". Actual: ' + (typeof Date.prototype["setYear"] ));
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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)
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||
built-ins (Date.prototype.toGMTString)
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var desc = Object.getOwnPropertyDescriptor(Date.prototype, "toGMTString");
|
||||
|
|
|
@ -1,16 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Check type of various properties
|
||||
*
|
||||
* @path annexB/B.2.6.propertyCheck.js
|
||||
* @description Checking properties of the Date object (toGMTString)
|
||||
*/
|
||||
/*---
|
||||
info: Check type of various properties
|
||||
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('#2: typeof Date.prototype["toGMTString"] === "function". Actual: ' + (typeof Date.prototype["toGMTString"] ));
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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)
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
Object.getOwnPropertyDescriptor returns data desc for functions on
|
||||
built-ins (RegExp.prototype.compile)
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "compile");
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Function declaration within an "if" statement is not allowed
|
||||
*
|
||||
* @path bestPractice/Sbp_12.5_A9_T3.js
|
||||
* @description Declaring function within an "if" statement that is declared within the function declaration
|
||||
* @negative
|
||||
*/
|
||||
/*---
|
||||
info: Function declaration within an "if" statement is not allowed
|
||||
description: >
|
||||
Declaring function within an "if" statement that is declared
|
||||
within the function declaration
|
||||
flags: [negative]
|
||||
---*/
|
||||
|
||||
function(){
|
||||
|
||||
|
@ -18,4 +18,3 @@ if (true) {
|
|||
}
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* FunctionDeclaration within a "do-while" Block is not allowed
|
||||
*
|
||||
* @path bestPractice/Sbp_12.6.1_A13_T3.js
|
||||
* @description Declaring a function within a "do-while" loop that is within a function declaration itself
|
||||
* @negative
|
||||
*/
|
||||
/*---
|
||||
info: FunctionDeclaration within a "do-while" Block is not allowed
|
||||
description: >
|
||||
Declaring a function within a "do-while" loop that is within a
|
||||
function declaration itself
|
||||
flags: [negative]
|
||||
---*/
|
||||
|
||||
function(){
|
||||
|
||||
|
@ -16,4 +16,3 @@ do{
|
|||
}while(0);
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* FunctionDeclaration within a "while" Statement is not allowed
|
||||
*
|
||||
* @path bestPractice/Sbp_12.6.2_A13_T3.js
|
||||
* @description Checking if declaring a function within a "while" Statement that is in a function body leads to an exception
|
||||
* @negative
|
||||
*/
|
||||
/*---
|
||||
info: FunctionDeclaration within a "while" Statement is not allowed
|
||||
description: >
|
||||
Checking if declaring a function within a "while" Statement that
|
||||
is in a function body leads to an exception
|
||||
flags: [negative]
|
||||
---*/
|
||||
|
||||
function(){
|
||||
|
||||
|
@ -16,4 +16,3 @@ while(0){
|
|||
};
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* FunctionDeclaration within a "for-in" Statement is not allowed
|
||||
*
|
||||
* @path bestPractice/Sbp_12.6.4_A13_T3.js
|
||||
* @description Declaring function within a "for-in" Statement that is within function declaration
|
||||
* @negative
|
||||
*/
|
||||
/*---
|
||||
info: FunctionDeclaration within a "for-in" Statement is not allowed
|
||||
description: >
|
||||
Declaring function within a "for-in" Statement that is within
|
||||
function declaration
|
||||
flags: [negative]
|
||||
---*/
|
||||
|
||||
function(){
|
||||
|
||||
|
@ -16,4 +16,3 @@ for(x in this){
|
|||
};
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* EscapeSequence :: HexEscapeSequence :: x HexDigit HexDigit
|
||||
*
|
||||
* @path bestPractice/Sbp_7.8.4_A6.1_T4.js
|
||||
* @description HexEscapeSequence :: x0G is incorrect
|
||||
* @negative
|
||||
*/
|
||||
/*---
|
||||
info: "EscapeSequence :: HexEscapeSequence :: x HexDigit HexDigit"
|
||||
description: "HexEscapeSequence :: x0G is incorrect"
|
||||
flags: [negative]
|
||||
---*/
|
||||
|
||||
//CHECK#
|
||||
"\x0G"
|
||||
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* HexEscapeSequence :: x HexDigit is incorrect
|
||||
*
|
||||
* @path bestPractice/Sbp_7.8.4_A6.2_T1.js
|
||||
* @description HexDigit :: 1
|
||||
* @negative
|
||||
*/
|
||||
/*---
|
||||
info: "HexEscapeSequence :: x HexDigit is incorrect"
|
||||
description: "HexDigit :: 1"
|
||||
flags: [negative]
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
"\x1"
|
||||
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* HexEscapeSequence :: x HexDigit is incorrect
|
||||
*
|
||||
* @path bestPractice/Sbp_7.8.4_A6.2_T2.js
|
||||
* @description HexDigit :: A
|
||||
* @negative
|
||||
*/
|
||||
/*---
|
||||
info: "HexEscapeSequence :: x HexDigit is incorrect"
|
||||
description: "HexDigit :: A"
|
||||
flags: [negative]
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
"\xA"
|
||||
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Check Do-While Statement for automatic semicolon insertion
|
||||
*
|
||||
* @path bestPractice/Sbp_7.9_A9_T3.js
|
||||
* @description Execute do { \n ; \n }while(false) true
|
||||
*/
|
||||
/*---
|
||||
info: Check Do-While Statement for automatic semicolon insertion
|
||||
description: Execute do { \n ; \n }while(false) true
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
do {
|
||||
;
|
||||
} while (false) true
|
||||
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Check Do-While Statement for automatic semicolon insertion
|
||||
*
|
||||
* @path bestPractice/Sbp_7.9_A9_T4.js
|
||||
* @description Execute do ; while \n (false) true
|
||||
*/
|
||||
/*---
|
||||
info: Check Do-While Statement for automatic semicolon insertion
|
||||
description: Execute do ; while \n (false) true
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
do ; while
|
||||
(false) true
|
||||
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
// Copyright 2011 Google Inc. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @path bestPractice/Sbp_A10_T1.js
|
||||
* @description Built-in functions should not have a non-deletable,
|
||||
* non-poisoned "caller" property.
|
||||
* @bestPractice
|
||||
* http://wiki.ecmascript.org/doku.php?id=conventions:make_non-standard_properties_configurable
|
||||
*/
|
||||
/*---
|
||||
description: >
|
||||
Built-in functions should not have a non-deletable, non-poisoned
|
||||
"caller" property.
|
||||
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:make_non-standard_properties_configurable"
|
||||
---*/
|
||||
|
||||
(function() {
|
||||
var map = Array.prototype.map;
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
// Copyright 2011 Google Inc. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* @path bestPractice/Sbp_A10_T2.js
|
||||
* @description Built-in functions should not have a non-deletable,
|
||||
* non-poisoned "arguments" property.
|
||||
* @bestPractice
|
||||
* http://wiki.ecmascript.org/doku.php?id=conventions:make_non-standard_properties_configurable
|
||||
*/
|
||||
/*---
|
||||
description: >
|
||||
Built-in functions should not have a non-deletable, non-poisoned
|
||||
"arguments" property.
|
||||
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:make_non-standard_properties_configurable"
|
||||
---*/
|
||||
|
||||
(function() {
|
||||
var map = Array.prototype.map;
|
||||
|
|
|
@ -1,19 +1,17 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @onlyStrict
|
||||
* @negative SyntaxError
|
||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
||||
*/
|
||||
/*---
|
||||
info: >
|
||||
The production Block { } in strict code can't contain function
|
||||
declaration;
|
||||
description: Trying to declare function at the Block statement
|
||||
negative: SyntaxError
|
||||
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
{
|
||||
function __func(){}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// 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
|
||||
*
|
||||
* @path bestPractice/Sbp_A2_T1.js
|
||||
* @description Declaring function within a strict "if" statement
|
||||
* @onlyStrict
|
||||
* @negative SyntaxError
|
||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
||||
*/
|
||||
/*---
|
||||
info: >
|
||||
Function declaration within an "if" statement in strict code is not
|
||||
allowed
|
||||
description: Declaring function within a strict "if" statement
|
||||
negative: SyntaxError
|
||||
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
if (true) {
|
||||
|
@ -18,4 +17,3 @@ if (true) {
|
|||
} else {
|
||||
function __func(){};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// 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;
|
||||
*
|
||||
* @path bestPractice/Sbp_A2_T2.js
|
||||
* @description Declaring function within an "if" that is declared
|
||||
* within the strict function
|
||||
* @onlyStrict
|
||||
* @negative SyntaxError
|
||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
||||
*/
|
||||
/*---
|
||||
info: >
|
||||
Function declaration within an "if" statement in strict code is not
|
||||
allowed;
|
||||
description: >
|
||||
Declaring function within an "if" that is declared within the
|
||||
strict function
|
||||
negative: SyntaxError
|
||||
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
(function(){
|
||||
|
@ -20,4 +21,3 @@
|
|||
function __func(){};
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1,19 +1,17 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// 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
|
||||
*
|
||||
* @path bestPractice/Sbp_A3_T1.js
|
||||
* @description Declaring function within a "do-while" loop
|
||||
* @onlyStrict
|
||||
* @negative SyntaxError
|
||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
||||
*/
|
||||
/*---
|
||||
info: >
|
||||
FunctionDeclaration within a "do-while" Block in strict code is not
|
||||
allowed
|
||||
description: Declaring function within a "do-while" loop
|
||||
negative: SyntaxError
|
||||
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
do {
|
||||
function __func(){};
|
||||
} while(0);
|
||||
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// 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
|
||||
*
|
||||
* @path bestPractice/Sbp_A3_T2.js
|
||||
* @description Declaring a function within a "do-while" loop that is
|
||||
* within a strict function
|
||||
* @onlyStrict
|
||||
* @negative SyntaxError
|
||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
||||
*/
|
||||
/*---
|
||||
info: >
|
||||
FunctionDeclaration within a "do-while" Block in strict code is not
|
||||
allowed
|
||||
description: >
|
||||
Declaring a function within a "do-while" loop that is within a
|
||||
strict function
|
||||
negative: SyntaxError
|
||||
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
(function(){
|
||||
|
@ -18,4 +19,3 @@
|
|||
function __func(){};
|
||||
} while(0);
|
||||
});
|
||||
|
||||
|
|
|
@ -1,19 +1,17 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* FunctionDeclaration within a "while" Statement is not allowed
|
||||
*
|
||||
* @path bestPractice/Sbp_A4_T1.js
|
||||
* @description Checking if declaring a function within a "while"
|
||||
* Statement leads to an exception
|
||||
* @onlyStrict
|
||||
* @negative SyntaxError
|
||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
||||
*/
|
||||
/*---
|
||||
info: FunctionDeclaration within a "while" Statement is not allowed
|
||||
description: >
|
||||
Checking if declaring a function within a "while" Statement leads
|
||||
to an exception
|
||||
negative: SyntaxError
|
||||
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
while (0) {
|
||||
function __func(){};
|
||||
};
|
||||
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* FunctionDeclaration within a "while" Statement is not allowed
|
||||
*
|
||||
* @path bestPractice/Sbp_A4_T2.js
|
||||
* @description Checking if declaring a function within a "while"
|
||||
* Statement that is in a function call leads to an exception
|
||||
* @onlyStrict
|
||||
* @negative SyntaxError
|
||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
||||
*/
|
||||
/*---
|
||||
info: FunctionDeclaration within a "while" Statement is not allowed
|
||||
description: >
|
||||
Checking if declaring a function within a "while" Statement that
|
||||
is in a function call leads to an exception
|
||||
negative: SyntaxError
|
||||
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
(function(){
|
||||
|
@ -18,4 +17,3 @@
|
|||
function __func(){};
|
||||
};
|
||||
})();
|
||||
|
||||
|
|
|
@ -1,18 +1,15 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* FunctionDeclaration within a "for-in" Statement is not allowed
|
||||
*
|
||||
* @path bestPractice/Sbp_A5_T1.js
|
||||
* @description Declaring function within a "for-in" Statement
|
||||
* @onlyStrict
|
||||
* @negative SyntaxError
|
||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
||||
*/
|
||||
/*---
|
||||
info: FunctionDeclaration within a "for-in" Statement is not allowed
|
||||
description: Declaring function within a "for-in" Statement
|
||||
negative: SyntaxError
|
||||
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
for (x in this) {
|
||||
function __func(){};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* FunctionDeclaration within a "for-in" Statement is not allowed
|
||||
*
|
||||
* @path bestPractice/Sbp_A5_T2.js
|
||||
* @description Declaring function within a "for-in" Statement that is
|
||||
* within a function call
|
||||
* @onlyStrict
|
||||
* @negative SyntaxError
|
||||
* @bestPractice http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
|
||||
*/
|
||||
/*---
|
||||
info: FunctionDeclaration within a "for-in" Statement is not allowed
|
||||
description: >
|
||||
Declaring function within a "for-in" Statement that is within a
|
||||
function call
|
||||
negative: SyntaxError
|
||||
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
(function(){
|
||||
|
@ -18,4 +17,3 @@
|
|||
function __func(){};
|
||||
}
|
||||
})();
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// 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}
|
||||
if(chars.length !== 2) {
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* HORIZONTAL TAB (U+0009) between any two tokens is allowed
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A1.1_T1.js
|
||||
* @description Insert HORIZONTAL TAB(\u0009 and \t) between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: HORIZONTAL TAB (U+0009) between any two tokens is allowed
|
||||
description: Insert HORIZONTAL TAB(\u0009 and \t) between tokens of var x=1
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("\u0009var\u0009x\u0009=\u00091\u0009");
|
||||
|
@ -37,4 +35,3 @@ eval("\u0009" + "var" + "\t" + "x" + "\u0009" + "=" + "\t" + "1" + "\u0009");
|
|||
if (x !== 1) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* HORIZONTAL TAB (U+0009) between any two tokens is allowed
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A1.1_T2.js
|
||||
* @description Insert real HORIZONTAL TAB between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: HORIZONTAL TAB (U+0009) between any two tokens is allowed
|
||||
description: Insert real HORIZONTAL TAB between tokens of var x=1
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var x = 1 ;
|
||||
|
@ -19,4 +17,3 @@ eval(" var\tx =\t2 ");
|
|||
if (x !== 2) {
|
||||
$ERROR('#2: var\\tx =\\t1 ; x === 2. Actual: ' + (x));
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* VERTICAL TAB (U+000B) between any two tokens is allowed
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A1.2_T1.js
|
||||
* @description Insert VERTICAL TAB(\u000B and \v) between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: VERTICAL TAB (U+000B) between any two tokens is allowed
|
||||
description: Insert VERTICAL TAB(\u000B and \v) between tokens of var x=1
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("\u000Bvar\u000Bx\u000B=\u000B1\u000B");
|
||||
|
@ -37,4 +35,3 @@ eval("\u000B" + "var" + "\v" + "x" + "\u000B" + "=" + "\v" + "1" + "\u000B");
|
|||
if (x !== 1) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* VERTICAL TAB (U+000B) between any two tokens is allowed
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A1.2_T2.js
|
||||
* @description Insert real VERTICAL TAB between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: VERTICAL TAB (U+000B) between any two tokens is allowed
|
||||
description: Insert real VERTICAL TAB between tokens of var x=1
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
varx=1;
|
||||
|
@ -19,5 +17,3 @@ eval("var\vx=\v1");
|
|||
if (x !== 1) {
|
||||
$ERROR('#2: var\\vx=\\v1; x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* FORM FEED (U+000C) between any two tokens is allowed
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A1.3_T1.js
|
||||
* @description Insert FORM FEED(\u000C and \f) between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: FORM FEED (U+000C) between any two tokens is allowed
|
||||
description: Insert FORM FEED(\u000C and \f) between tokens of var x=1
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("\u000Cvar\u000Cx\u000C=\u000C1\u000C");
|
||||
|
@ -37,4 +35,3 @@ eval("\u000C" + "var" + "\f" + "x" + "\u000C" + "=" + "\f" + "1" + "\u000C");
|
|||
if (x !== 1) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* FORM FEED (U+000C) between any two tokens is allowed
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A1.3_T2.js
|
||||
* @description Insert real FORM FEED between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: FORM FEED (U+000C) between any two tokens is allowed
|
||||
description: Insert real FORM FEED between tokens of var x=1
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
varx=1;
|
||||
|
@ -19,5 +17,3 @@ eval("var\fx=\f1");
|
|||
if (x !== 1) {
|
||||
$ERROR('#2: var\\fx=\\f1; x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* SPACE (U+0020) between any two tokens is allowed
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A1.4_T1.js
|
||||
* @description Insert SPACE(\u0020) between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: SPACE (U+0020) between any two tokens is allowed
|
||||
description: Insert SPACE(\u0020) between tokens of var x=1
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("\u0020var\u0020x\u0020=\u00201\u0020");
|
||||
|
@ -19,4 +17,3 @@ eval("\u0020" + "var" + "\u0020" + "x" + "\u0020" + "=" + "\u0020" + "1" + "\u00
|
|||
if (x !== 1) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* SPACE (U+0020) between any two tokens is allowed
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A1.4_T2.js
|
||||
* @description Insert real SPACE between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: SPACE (U+0020) between any two tokens is allowed
|
||||
description: Insert real SPACE between tokens of var x=1
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
eval("\u0020var x\u0020= 1\u0020");
|
||||
|
@ -19,5 +17,3 @@ if (x !== 1) {
|
|||
if (x !== 1) {
|
||||
$ERROR('#2: var x = 1 ; x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* NO-BREAK SPACE (U+00A0) between any two tokens is allowed
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A1.5_T1.js
|
||||
* @description Insert NO-BREAK SPACE(\u00A0) between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: NO-BREAK SPACE (U+00A0) between any two tokens is allowed
|
||||
description: Insert NO-BREAK SPACE(\u00A0) between tokens of var x=1
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("\u00A0var\u00A0x\u00A0=\u00A01\u00A0");
|
||||
|
@ -19,4 +17,3 @@ eval("\u00A0" + "var" + "\u00A0" + "x" + "\u00A0" + "=" + "\u00A0" + "1" + "\u00
|
|||
if (x !== 1) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* NO-BREAK SPACE (U+00A0) between any two tokens is allowed
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A1.5_T2.js
|
||||
* @description Insert real NO-BREAK SPACE between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: NO-BREAK SPACE (U+00A0) between any two tokens is allowed
|
||||
description: Insert real NO-BREAK SPACE between tokens of var x=1
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
eval("\u00A0var x\u00A0= 1\u00A0");
|
||||
|
@ -19,5 +17,3 @@ if (x !== 1) {
|
|||
if (x !== 1) {
|
||||
$ERROR('#2: var x = 1 ; x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* HORIZONTAL TAB (U+0009) may occur within strings
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A2.1_T1.js
|
||||
* @description Use HORIZONTAL TAB(\u0009 and \t)
|
||||
*/
|
||||
/*---
|
||||
info: HORIZONTAL TAB (U+0009) may occur within strings
|
||||
description: Use HORIZONTAL TAB(\u0009 and \t)
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
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") {
|
||||
$ERROR('#2: eval("\'\\tstr\\ting\\t\'") === "\\tstr\\ting\\t"');
|
||||
}
|
||||
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* HORIZONTAL TAB (U+0009) may occur within strings
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A2.1_T2.js
|
||||
* @description Use real HORIZONTAL TAB
|
||||
*/
|
||||
/*---
|
||||
info: HORIZONTAL TAB (U+0009) may occur within strings
|
||||
description: Use real HORIZONTAL TAB
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
if (" str ing " !== "\u0009str\u0009ing\u0009") {
|
||||
$ERROR('#1: " str ing " === "\\u0009str\\u0009ing\\u0009"');
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* VERTICAL TAB (U+000B) may occur within strings
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A2.2_T1.js
|
||||
* @description Use VERTICAL TAB(\u000B and \v)
|
||||
*/
|
||||
/*---
|
||||
info: VERTICAL TAB (U+000B) may occur within strings
|
||||
description: Use VERTICAL TAB(\u000B and \v)
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
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") {
|
||||
$ERROR('#2: eval("\'\\vstr\\ving\\v\'") === "\\vstr\\ving\\v"');
|
||||
}
|
||||
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* VERTICAL TAB (U+000B) may occur within strings
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A2.2_T2.js
|
||||
* @description Use real VERTICAL TAB
|
||||
*/
|
||||
/*---
|
||||
info: VERTICAL TAB (U+000B) may occur within strings
|
||||
description: Use real VERTICAL TAB
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
if ("string" !== "\u000Bstr\u000Bing\u000B") {
|
||||
$ERROR('#1: "string" === "\\u000Bstr\\u000Bing\\u000B"');
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* FORM FEED (U+000C) may occur within strings
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A2.3_T1.js
|
||||
* @description Use FORM FEED(\u000C and \f)
|
||||
*/
|
||||
/*---
|
||||
info: FORM FEED (U+000C) may occur within strings
|
||||
description: Use FORM FEED(\u000C and \f)
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
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") {
|
||||
$ERROR('#2: eval("\'\\fstr\\fing\\f\'") === "\\fstr\\fing\\f"');
|
||||
}
|
||||
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* FORM FEED (U+000C) may occur within strings
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A2.3_T2.js
|
||||
* @description Use real FORM FEED
|
||||
*/
|
||||
/*---
|
||||
info: FORM FEED (U+000C) may occur within strings
|
||||
description: Use real FORM FEED
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
if ("string" !== "\u000Cstr\u000Cing\u000C") {
|
||||
$ERROR('#1: "string" === "\\u000Cstr\\u000Cing\\u000C"');
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* SPACE (U+0020) may occur within strings
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A2.4_T1.js
|
||||
* @description Use SPACE(\u0020)
|
||||
*/
|
||||
/*---
|
||||
info: SPACE (U+0020) may occur within strings
|
||||
description: Use SPACE(\u0020)
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
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 ") {
|
||||
$ERROR('#2: eval("\' str ing \'") === " str ing "');
|
||||
}
|
||||
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* SPACE (U+0020) may occur within strings
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A2.4_T2.js
|
||||
* @description Use real SPACE
|
||||
*/
|
||||
/*---
|
||||
info: SPACE (U+0020) may occur within strings
|
||||
description: Use real SPACE
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
if (" str ing " !== "\u0020str\u0020ing\u0020") {
|
||||
$ERROR('#1: " str ing " === "\\u0020str\\u0020ing\\u0020"');
|
||||
}
|
||||
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* NO-BREAK SPACE (U+00A0) may occur within strings
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A2.5_T1.js
|
||||
* @description Use NO-BREAK SPACE(\u00A0)
|
||||
*/
|
||||
/*---
|
||||
info: NO-BREAK SPACE (U+00A0) may occur within strings
|
||||
description: Use NO-BREAK SPACE(\u00A0)
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
if (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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* NO-BREAK SPACE (U+00A0) may occur within strings
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A2.5_T2.js
|
||||
* @description Use real NO-BREAK SPACE
|
||||
*/
|
||||
/*---
|
||||
info: NO-BREAK SPACE (U+00A0) may occur within strings
|
||||
description: Use real NO-BREAK SPACE
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
if (" str ing " !== "\u00A0str\u00A0ing\u00A0") {
|
||||
$ERROR('#1: " str ing " === "\\u00A0str\\u00A0ing\\u00A0"');
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Single line comment can contain HORIZONTAL TAB (U+0009)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A3.1_T1.js
|
||||
* @description Use HORIZONTAL TAB(\u0009)
|
||||
*/
|
||||
/*---
|
||||
info: Single line comment can contain HORIZONTAL TAB (U+0009)
|
||||
description: Use HORIZONTAL TAB(\u0009)
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("//\u0009 single line \u0009 comment \u0009");
|
||||
|
@ -17,4 +15,3 @@ eval("//\u0009 single line \u0009 comment \u0009 x = 1;");
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Single line comment can contain HORIZONTAL TAB (U+0009)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A3.1_T2.js
|
||||
* @description Use real HORIZONTAL TAB
|
||||
*/
|
||||
/*---
|
||||
info: Single line comment can contain HORIZONTAL TAB (U+0009)
|
||||
description: Use real HORIZONTAL TAB
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var x = 0;
|
||||
|
@ -14,4 +12,3 @@ var x = 0;
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Single line comment can contain VERTICAL TAB (U+000B)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A3.2_T1.js
|
||||
* @description Use VERTICAL TAB(\u000B)
|
||||
*/
|
||||
/*---
|
||||
info: Single line comment can contain VERTICAL TAB (U+000B)
|
||||
description: Use VERTICAL TAB(\u000B)
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("//\u000B single line \u000B comment \u000B");
|
||||
|
@ -17,4 +15,3 @@ eval("//\u000B single line \u000B comment \u000B x = 1;");
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Single line comment can contain VERTICAL TAB (U+000B)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A3.2_T2.js
|
||||
* @description Use real VERTICAL TAB
|
||||
*/
|
||||
/*---
|
||||
info: Single line comment can contain VERTICAL TAB (U+000B)
|
||||
description: Use real VERTICAL TAB
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var x = 0;
|
||||
|
@ -14,4 +12,3 @@ var x = 0;
|
|||
if (x !== 0) {
|
||||
$ERROR('#1: var x = 0; //singlelinecommentx = 1; x === 0. Actual: ' + (x));
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Single line comment can contain FORM FEED (U+000C)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A3.3_T1.js
|
||||
* @description Use FORM FEED(\u000C)
|
||||
*/
|
||||
/*---
|
||||
info: Single line comment can contain FORM FEED (U+000C)
|
||||
description: Use FORM FEED(\u000C)
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("//\u000C single line \u000C comment \u000C");
|
||||
|
@ -17,4 +15,3 @@ eval("//\u000C single line \u000C comment \u000C x = 1;");
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Single line comment can contain FORM FEED (U+000C)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A3.3_T2.js
|
||||
* @description Use real FORM FEED
|
||||
*/
|
||||
/*---
|
||||
info: Single line comment can contain FORM FEED (U+000C)
|
||||
description: Use real FORM FEED
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var x = 0;
|
||||
|
@ -14,4 +12,3 @@ var x = 0;
|
|||
if (x !== 0) {
|
||||
$ERROR('#1: var x = 0; //singlelinecommentx = 1; x === 0. Actual: ' + (x));
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Single line comment can contain SPACE (U+0020)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A3.4_T1.js
|
||||
* @description Use SPACE(\u0020)
|
||||
*/
|
||||
/*---
|
||||
info: Single line comment can contain SPACE (U+0020)
|
||||
description: Use SPACE(\u0020)
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("//\u0020 single line \u0020 comment \u0020");
|
||||
|
@ -17,4 +15,3 @@ eval("//\u0020 single line \u0020 comment \u0020 x = 1;");
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Single line comment can contain SPACE (U+0020)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A3.4_T2.js
|
||||
* @description Use real SPACE
|
||||
*/
|
||||
/*---
|
||||
info: Single line comment can contain SPACE (U+0020)
|
||||
description: Use real SPACE
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var x = 0;
|
||||
|
@ -14,4 +12,3 @@ var x = 0;
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Single line comment can contain NO-BREAK SPACE (U+00A0)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A3.5_T1.js
|
||||
* @description Use NO-BREAK SPACE(\u00A0)
|
||||
*/
|
||||
/*---
|
||||
info: Single line comment can contain NO-BREAK SPACE (U+00A0)
|
||||
description: Use NO-BREAK SPACE(\u00A0)
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("//\u00A0 single line \u00A0 comment \u00A0");
|
||||
|
@ -17,4 +15,3 @@ eval("//\u00A0 single line \u00A0 comment \u00A0 x = 1;");
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Single line comment can contain NO-BREAK SPACE (U+00A0)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A3.5_T2.js
|
||||
* @description Use real NO-BREAK SPACE
|
||||
*/
|
||||
/*---
|
||||
info: Single line comment can contain NO-BREAK SPACE (U+00A0)
|
||||
description: Use real NO-BREAK SPACE
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var x = 0;
|
||||
|
@ -14,4 +12,3 @@ var x = 0;
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Multi line comment can contain HORIZONTAL TAB (U+0009)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A4.1_T1.js
|
||||
* @description Use HORIZONTAL TAB(\u0009)
|
||||
*/
|
||||
/*---
|
||||
info: Multi line comment can contain HORIZONTAL TAB (U+0009)
|
||||
description: Use HORIZONTAL TAB(\u0009)
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("/*\u0009 multi line \u0009 comment \u0009*/");
|
||||
|
@ -17,4 +15,3 @@ eval("/*\u0009 multi line \u0009 comment \u0009 x = 1;*/");
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Multi line comment can contain HORIZONTAL TAB (U+0009)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A4.1_T2.js
|
||||
* @description Use real HORIZONTAL TAB
|
||||
*/
|
||||
/*---
|
||||
info: Multi line comment can contain HORIZONTAL TAB (U+0009)
|
||||
description: Use real HORIZONTAL TAB
|
||||
---*/
|
||||
|
||||
/*CHECK#1*/
|
||||
var x = 0;
|
||||
|
@ -14,4 +12,3 @@ var x = 0;
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Multi line comment can contain VERTICAL TAB (U+000B)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A4.2_T1.js
|
||||
* @description Use VERTICAL TAB(\u000B)
|
||||
*/
|
||||
/*---
|
||||
info: Multi line comment can contain VERTICAL TAB (U+000B)
|
||||
description: Use VERTICAL TAB(\u000B)
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("/*\u000B multi line \u000B comment \u000B*/");
|
||||
|
@ -17,4 +15,3 @@ eval("/*\u000B multi line \u000B comment \u000B x = 1;*/");
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Multi line comment can contain VERTICAL TAB (U+000B)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A4.2_T2.js
|
||||
* @description Use real VERTICAL TAB
|
||||
*/
|
||||
/*---
|
||||
info: Multi line comment can contain VERTICAL TAB (U+000B)
|
||||
description: Use real VERTICAL TAB
|
||||
---*/
|
||||
|
||||
/*CHECK#1*/
|
||||
var x = 0;
|
||||
|
@ -14,4 +12,3 @@ var x = 0;
|
|||
if (x !== 0) {
|
||||
$ERROR('#1: var x = 0; /*multilinecommentx = 1;*/ x === 0. Actual: ' + (x));
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Multi line comment can contain FORM FEED (U+000C)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A4.3_T1.js
|
||||
* @description Use FORM FEED(\u000C)
|
||||
*/
|
||||
/*---
|
||||
info: Multi line comment can contain FORM FEED (U+000C)
|
||||
description: Use FORM FEED(\u000C)
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("/*\u000C multi line \u000C comment \u000C*/");
|
||||
|
@ -17,4 +15,3 @@ eval("/*\u000C multi line \u000C comment \u000C x = 1;*/");
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Multi line comment can contain FORM FEED (U+000C)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A4.3_T2.js
|
||||
* @description Use real FORM FEED
|
||||
*/
|
||||
/*---
|
||||
info: Multi line comment can contain FORM FEED (U+000C)
|
||||
description: Use real FORM FEED
|
||||
---*/
|
||||
|
||||
/*CHECK#1*/
|
||||
var x = 0;
|
||||
|
@ -14,4 +12,3 @@ var x = 0;
|
|||
if (x !== 0) {
|
||||
$ERROR('#1: var x = 0; /*multilinecommentx = 1;*/ x === 0. Actual: ' + (x));
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Multi line comment can contain SPACE (U+0020)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A4.4_T1.js
|
||||
* @description Use SPACE(\u0020)
|
||||
*/
|
||||
/*---
|
||||
info: Multi line comment can contain SPACE (U+0020)
|
||||
description: Use SPACE(\u0020)
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("/*\u0020 multi line \u0020 comment \u0020*/");
|
||||
|
@ -17,4 +15,3 @@ eval("/*\u0020 multi line \u0020 comment \u0020 x = 1;*/");
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Multi line comment can contain SPACE (U+0020)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A4.4_T2.js
|
||||
* @description Use real SPACE
|
||||
*/
|
||||
/*---
|
||||
info: Multi line comment can contain SPACE (U+0020)
|
||||
description: Use real SPACE
|
||||
---*/
|
||||
|
||||
/*CHECK#1*/
|
||||
var x = 0;
|
||||
|
@ -14,4 +12,3 @@ var x = 0;
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Multi line comment can contain NO-BREAK SPACE (U+00A0)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A4.5_T1.js
|
||||
* @description Use NO-BREAK SPACE(\u00A0)
|
||||
*/
|
||||
/*---
|
||||
info: Multi line comment can contain NO-BREAK SPACE (U+00A0)
|
||||
description: Use NO-BREAK SPACE(\u00A0)
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("/*\u00A0 multi line \u00A0 comment \u00A0*/");
|
||||
|
@ -17,4 +15,3 @@ eval("/*\u00A0 multi line \u00A0 comment \u00A0 x = 1;*/");
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* Multi line comment can contain NO-BREAK SPACE (U+00A0)
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A4.5_T2.js
|
||||
* @description Use real NO-BREAK SPACE
|
||||
*/
|
||||
/*---
|
||||
info: Multi line comment can contain NO-BREAK SPACE (U+00A0)
|
||||
description: Use real NO-BREAK SPACE
|
||||
---*/
|
||||
|
||||
/*CHECK#1*/
|
||||
var x = 0;
|
||||
|
@ -14,4 +12,3 @@ var x = 0;
|
|||
if (x !== 0) {
|
||||
$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.
|
||||
// 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
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A5_T1.js
|
||||
* @description Use TAB (U+0009)
|
||||
* @negative
|
||||
*/
|
||||
/*---
|
||||
info: >
|
||||
White space cannot be expressed as a Unicode escape sequence consisting
|
||||
of six characters, namely \u plus four hexadecimal digits
|
||||
description: Use TAB (U+0009)
|
||||
flags: [negative]
|
||||
---*/
|
||||
|
||||
var\u0009x;
|
||||
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// 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
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A5_T2.js
|
||||
* @description Use VERTICAL TAB (U+000B)
|
||||
* @negative
|
||||
*/
|
||||
/*---
|
||||
info: >
|
||||
White space cannot be expressed as a Unicode escape sequence consisting
|
||||
of six characters, namely \u plus four hexadecimal digits
|
||||
description: Use VERTICAL TAB (U+000B)
|
||||
flags: [negative]
|
||||
---*/
|
||||
|
||||
var\u000Bx;
|
||||
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// 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
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A5_T3.js
|
||||
* @description Use FORM FEED (U+000C)
|
||||
* @negative
|
||||
*/
|
||||
/*---
|
||||
info: >
|
||||
White space cannot be expressed as a Unicode escape sequence consisting
|
||||
of six characters, namely \u plus four hexadecimal digits
|
||||
description: Use FORM FEED (U+000C)
|
||||
flags: [negative]
|
||||
---*/
|
||||
|
||||
var\u000Cx;
|
||||
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// 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
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A5_T4.js
|
||||
* @description Use SPACE (U+0020)
|
||||
* @negative
|
||||
*/
|
||||
/*---
|
||||
info: >
|
||||
White space cannot be expressed as a Unicode escape sequence consisting
|
||||
of six characters, namely \u plus four hexadecimal digits
|
||||
description: Use SPACE (U+0020)
|
||||
flags: [negative]
|
||||
---*/
|
||||
|
||||
var\u0020x;
|
||||
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// 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
|
||||
*
|
||||
* @path ch07/7.2/S7.2_A5_T5.js
|
||||
* @description Use NO-BREAK SPACE (U+00A0)
|
||||
* @negative
|
||||
*/
|
||||
/*---
|
||||
info: >
|
||||
White space cannot be expressed as a Unicode escape sequence consisting
|
||||
of six characters, namely \u plus four hexadecimal digits
|
||||
description: Use NO-BREAK SPACE (U+00A0)
|
||||
flags: [negative]
|
||||
---*/
|
||||
|
||||
var\u00A0x;
|
||||
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
7.3 - ES5 recognizes the character <LS> (\u2028) as line
|
||||
terminators when parsing statements
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
eval("var test7_3_1\u2028prop = 66;");
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
7.3 - ES5 recognizes the character <PS> (\u2029) as a
|
||||
NonEscapeCharacter
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
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() {
|
||||
/*MultiLine
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
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() {
|
||||
/*MultiLine
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
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() {
|
||||
/*MultiLine
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
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() {
|
||||
/*MultiLine
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: 7.3 - ES5 recognize <BOM> (\uFFFF) as a whitespace character
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var prop = "a\uFFFFa";
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
7.3 - ES5 recognizes the character <PS> (\u2029) as line
|
||||
terminators when parsing statements
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
eval("var test7_3_2\u2029prop = 66;");
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
7.3 - ES5 recognizes the character <LS> (\u2028) as terminating
|
||||
SingleLineComments
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
7.3 - ES5 recognizes the character <PS> (\u2029) as terminating
|
||||
SingleLineComments
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
7.3 - ES5 recognizes the character <LS> (\u2028) as terminating
|
||||
string literal
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var prop = "66\u2028123";
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
7.3 - ES5 recognizes the character <PS> (\u2029) as terminating
|
||||
string literal
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
var prop = "66\u2029123";
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
7.3 - ES5 recognizes the character <LS> (\u2028) as terminating
|
||||
regular expression literals
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
7.3 - ES5 recognizes the character <PS> (\u2029) as terminating
|
||||
regular expression literals
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
/// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
/// 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
|
||||
/// "Use Terms"). Any redistribution of this code must retain the above
|
||||
/// 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
|
||||
*/
|
||||
// Copyright (c) 2012 Ecma International. All rights reserved.
|
||||
// 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
|
||||
// "Use Terms"). Any redistribution of this code must retain the above
|
||||
// copyright and this notice and otherwise comply with the Use Terms.
|
||||
|
||||
/*---
|
||||
description: >
|
||||
7.3 - ES5 recognizes the character <LS> (\u2028) as a
|
||||
NonEscapeCharacter
|
||||
includes: [runTestCase.js]
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* LINE FEED (U+000A) may occur between any two tokens
|
||||
*
|
||||
* @path ch07/7.3/S7.3_A1.1_T1.js
|
||||
* @description Insert LINE FEED (\u000A and \n) between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: LINE FEED (U+000A) may occur between any two tokens
|
||||
description: Insert LINE FEED (\u000A and \n) between tokens of var x=1
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("\u000Avar\u000Ax\u000A=\u000A1\u000A");
|
||||
|
@ -37,4 +35,3 @@ eval("\u000A" + "var" + "\n" + "x" + "\u000A" + "=" + "\n" + "1" + "\u000A");
|
|||
if (x !== 1) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* LINE FEED (U+000A) may occur between any two tokens
|
||||
*
|
||||
* @path ch07/7.3/S7.3_A1.1_T2.js
|
||||
* @description Insert real LINE FEED between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: LINE FEED (U+000A) may occur between any two tokens
|
||||
description: Insert real LINE FEED between tokens of var x=1
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var
|
||||
|
@ -16,4 +14,3 @@ x
|
|||
if (x !== 1) {
|
||||
$ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* CARRIAGE RETURN (U+000D) may occur between any two tokens
|
||||
*
|
||||
* @path ch07/7.3/S7.3_A1.2_T1.js
|
||||
* @description Insert CARRIAGE RETURN (\u000D and \r) between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: CARRIAGE RETURN (U+000D) may occur between any two tokens
|
||||
description: Insert CARRIAGE RETURN (\u000D and \r) between tokens of var x=1
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("\u000Dvar\u000Dx\u000D=\u000D1\u000D");
|
||||
|
@ -37,4 +35,3 @@ eval("\u000D" + "var" + "\r" + "x" + "\u000D" + "=" + "\r" + "1" + "\u000D");
|
|||
if (x !== 1) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* CARRIAGE RETURN (U+000D) may occur between any two tokens
|
||||
*
|
||||
* @path ch07/7.3/S7.3_A1.2_T2.js
|
||||
* @description Insert real CARRIAGE RETURN between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: CARRIAGE RETURN (U+000D) may occur between any two tokens
|
||||
description: Insert real CARRIAGE RETURN between tokens of var x=1
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var
|
||||
|
@ -16,4 +14,3 @@ x
|
|||
if (x !== 1) {
|
||||
$ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x));
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* LINE SEPARATOR (U+2028) may occur between any two tokens
|
||||
*
|
||||
* @path ch07/7.3/S7.3_A1.3.js
|
||||
* @description Insert LINE SEPARATOR (\u2028) between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: LINE SEPARATOR (U+2028) may occur between any two tokens
|
||||
description: Insert LINE SEPARATOR (\u2028) between tokens of var x=1
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("\u2028var\u2028x\u2028=\u20281\u2028");
|
||||
|
@ -19,5 +17,3 @@ eval("\u2028" + "var" + "\u2028" + "x" + "\u2028" + "=" + "\u2028" + "1" + "\u20
|
|||
if (x !== 1) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* PARAGRAPH SEPARATOR (U+2029) may occur between any two tokens
|
||||
*
|
||||
* @path ch07/7.3/S7.3_A1.4.js
|
||||
* @description Insert PARAGRAPH SEPARATOR (\u2029) between tokens of var x=1
|
||||
*/
|
||||
/*---
|
||||
info: PARAGRAPH SEPARATOR (U+2029) may occur between any two tokens
|
||||
description: Insert PARAGRAPH SEPARATOR (\u2029) between tokens of var x=1
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
eval("\u2029var\u2029x\u2029=\u20291\u2029");
|
||||
|
@ -19,7 +17,3 @@ eval("\u2029" + "var" + "\u2029" + "x" + "\u2029" + "=" + "\u2029" + "1" + "\u20
|
|||
if (x !== 1) {
|
||||
$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.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/**
|
||||
* LINE FEED (U+000A) within strings is not allowed
|
||||
*
|
||||
* @path ch07/7.3/S7.3_A2.1_T1.js
|
||||
* @description Insert LINE FEED (\u000A) into string
|
||||
* @negative
|
||||
*/
|
||||
/*---
|
||||
info: LINE FEED (U+000A) within strings is not allowed
|
||||
description: Insert LINE FEED (\u000A) into string
|
||||
flags: [negative]
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
if (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