Skip to content
Snippets Groups Projects
Commit 4632b7bf authored by Mark Miller's avatar Mark Miller
Browse files

Removals that would have been propagated from my last conversion if

I'd used "hg addremove"
parent 19ec143b
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 199 deletions
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* NonEscapeSequence is not EscapeCharacter
*
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A4.3_T3.js
* @description EscapeCharacter :: DecimalDigits :: 8
* @negative
*/
//CHECK#1
"\8"
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* NonEscapeSequence is not EscapeCharacter
*
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A4.3_T4.js
* @description EscapeCharacter :: DecimalDigits :: 9
* @negative
*/
//CHECK#1
"\9"
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* NonEscapeSequence is not EscapeCharacter
*
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A4.3_T5.js
* @description EscapeCharacter :: u
* @negative
*/
//CHECK#1
"\u"
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* NonEscapeSequence is not EscapeCharacter
*
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A4.3_T6.js
* @description EscapeCharacter :: x
* @negative
*/
//CHECK#1
"\x"
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* HexEscapeSequence \X HexDigit HexDigit is incorrect
*
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A6.4_T1.js
* @description Checking if execution of "\X01" passes
* @negative
*/
//CHECK#1
"\X01"
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* HexEscapeSequence \X HexDigit HexDigit is incorrect
*
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A6.4_T2.js
* @description Checking if execution of "\X0A" passes
* @negative
*/
//CHECK#1
"\X0A"
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* UnicodeEscapeSequence \U HexDigit HexDigit HexDigit HexDigit is incorrect
*
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A7.4_T1.js
* @description Checking if execution of "\U0001" passes
* @negative
*/
//CHECK#1
"\U0001"
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* UnicodeEscapeSequence \U HexDigit HexDigit HexDigit HexDigit is incorrect
*
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A7.4_T2.js
* @description Checking if execution of "\U000A" passes
* @negative
*/
//CHECK#1
"\U000A"
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* Only FormalParameterList as arguments list is allowed
*
* @path 13_Function_Definition/S13_A5.js
* @description Trying to use [arg1, arg2, arg3], (arg1, arg2, arg3), etc. as a FormalParameterList
*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
try{
eval("function __func([arg1, arg2, arg3]){return arguments.length;}");
$ERROR('#1: eval("function __func([arg1, arg2, arg3]){return arguments.length;}") lead to throwing exception');
} catch(e){
if(!(e instanceof SyntaxError)){
$ERROR('#1.1: eval("function __func([arg1, arg2, arg3]){return arguments.length;}") lead to throwing exception of SyntaxError. Actual: exception is '+e);
}
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#2
try{
eval("function __func((arg1, arg2, arg3)){return arguments.length;}");
$ERROR('#2: eval("function __func((arg1, arg2, arg3)){return arguments.length;}") lead to throwing exception')
} catch(e){
if(!(e instanceof SyntaxError)){
$ERROR('#2.1: eval("function __func((arg1, arg2, arg3)){return arguments.length;}") lead to throwing exception of SyntaxError. Actual: exception is '+e);
}
}
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
try{
eval("function __func(arg1, arg2, arg3,){return arguments.length;}");
$ERROR('#3: eval("function __func(arg1, arg2, arg3,){return arguments.length;}") lead to throwing exception')
} catch(e){
if(!(e instanceof SyntaxError)){
$ERROR('#3.1: eval("function __func(arg1, arg2, arg3,){return arguments.length;}") lead to throwing exception of SyntaxError. Actual: exception is '+e);
}
}
//
//////////////////////////////////////////////////////////////////////////////
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* If F contains any character other than 'g', 'i', or 'm', or if it contains the same one more than once, then throw a SyntaxError exception
*
* @path 15_Native/15.10_RegExp_Objects/15.10.4_The_RegExp_Constructor/S15.10.4.1_A5_T5.js
* @description Checking if using "{toString:function(){return "x";}}" as F leads to throwing the correct exception
*/
//CHECK#1
try {
$ERROR('#1.1: new RegExp("a|b|[a-b]",{toString:function(){return "x" throw SyntaxError. Actual: ' + (new RegExp("a|b|[a-b]",{toString:function(){return "x"}})));
} catch (e) {
if ((e instanceof SyntaxError) !== true) {
$ERROR('#1.2: new RegExp("a|b|[a-b]",{toString:function(){return "x" throw SyntaxError. Actual: ' + (e));
}
}
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* The value of the internal [[Class]] property of the RegExp prototype object is "Object"
*
* @path 15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/S15.10.6_A2.js
* @description Checking performs with toString function
*/
RegExp.prototype.toString = Object.prototype.toString;
//CHECK#1
if (RegExp.prototype.toString() !== "[object " + "Object" + "]") {
$ERROR('#1: RegExp.prototype.toString = Object.prototype.toString; RegExp.prototype.toString() === "[object " + "Object" + "]". Actual: ' + RegExp.prototype.toString());
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment