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

Updating Google's contribution to r95 of Sputnik tests.

parent bcc15fd5
No related branches found
No related tags found
No related merge requests found
Showing
with 119 additions and 48 deletions
......@@ -5,5 +5,6 @@
Google Inc.
outofhanwell
outofhanwell <outofhanwell@gmail.com>
Pedro Del Gallego <pedro.delgallego@gmail.com>
Copyright 2009, Google Inc. All rights reserved.
Copyright 2009, the Sputnik authors. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
......
......@@ -4,9 +4,8 @@
/**
* @name: S7.5.3_A1.1;
* @section: 7.5.3;
* @assertion: The "abstract" token can not be used as identifier;
* @description: Checking if execution of "abstract=1" fails;
* @negative
*/
* @assertion: The "abstract" token can be used as identifier;
* @description: Checking if execution of "abstract=1" succeeds;
*/
abstract = 1;
......@@ -4,9 +4,8 @@
/**
* @name: S7.5.3_A1.12;
* @section: 7.5.3;
* @assertion: The "final" token can not be used as identifier;
* @description: Checking if execution of "final=1" fails;
* @negative
*/
* @assertion: The "final" token can be used as identifier;
* @description: Checking if execution of "final=1" succeeds;
*/
final = 1;
......@@ -4,9 +4,8 @@
/**
* @name: S7.5.3_A1.13;
* @section: 7.5.3;
* @assertion: The "float" token can not be used as identifier;
* @description: Checking if execution of "float=1" fails;
* @negative
* @assertion: The "float" token can be used as identifier;
* @description: Checking if execution of "float=1" succeeds;
*/
float = 1;
......@@ -4,9 +4,8 @@
/**
* @name: S7.5.3_A1.14;
* @section: 7.5.3;
* @assertion: The "goto" token can not be used as identifier;
* @description: Checking if execution of "goto=1" fails;
* @negative
*/
* @assertion: The "goto" token can be used as identifier;
* @description: Checking if execution of "goto=1" succeeds;
*/
goto = 1;
......@@ -4,9 +4,12 @@
/**
* @name: S7.5.3_A1.15;
* @section: 7.5.3;
* @assertion: The "implements" token can not be used as identifier;
* @description: Checking if execution of "implements=1" fails;
* @assertion: The "implements" token can not be used as identifier in
* strict code;
* @description: Checking if execution of "implements=1" fails in
* strict code;
* @negative
*/
*/
implements = 1;
"use strict";
implements = 1;
\ No newline at end of file
// Copyright 2011 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.5.3_A1.15;
* @section: 7.5.3;
* @assertion: The "implements" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "implements=1" succeeds in
* non-strict code;
*/
new Function('implements = 1');
\ No newline at end of file
......@@ -4,9 +4,8 @@
/**
* @name: S7.5.3_A1.17;
* @section: 7.5.3;
* @assertion: The "int" token can not be used as identifier;
* @description: Checking if execution of "int=1" fails;
* @negative
* @assertion: The "int" token can be used as identifier;
* @description: Checking if execution of "int=1" succeeds;
*/
int = 1;
......@@ -4,9 +4,12 @@
/**
* @name: S7.5.3_A1.18;
* @section: 7.5.3;
* @assertion: The "interface" token can not be used as identifier;
* @description: Checking if execution of "interface = 1" fails;
* @assertion: The "interface" token can not be used as identifier in
* strict code;
* @description: Checking if execution of "interface = 1" fails in
* strict code;
* @negative
*/
*/
"use strict";
interface = 1;
// Copyright 2011 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.5.3_A1.18;
* @section: 7.5.3;
* @assertion: The "interface" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "interface = 1" succeeds in
* strict code;
*/
new Function('interface = 1');
......@@ -4,9 +4,8 @@
/**
* @name: S7.5.3_A1.19;
* @section: 7.5.3;
* @assertion: The "long" token can not be used as identifier;
* @description: Checking if execution of "long=1" fails;
* @negative
*/
* @assertion: The "long" token can be used as identifier;
* @description: Checking if execution of "long=1" succeeds;
*/
long = 1;
......@@ -4,9 +4,8 @@
/**
* @name: S7.5.3_A1.2;
* @section: 7.5.3;
* @assertion: The "boolean" token can not be used as identifier;
* @description: Checking if execution of "boolean=1" fails;
* @negative
*/
* @assertion: The "boolean" token can be used as identifier;
* @description: Checking if execution of "boolean=1" succeeds;
*/
boolean = 1;
......@@ -4,9 +4,8 @@
/**
* @name: S7.5.3_A1.20;
* @section: 7.5.3;
* @assertion: The "native" token can not be used as identifier;
* @description: Checking if execution of "native=1" fails;
* @negative
*/
* @assertion: The "native" token can be used as identifier;
* @description: Checking if execution of "native=1" succeeds;
*/
native = 1;
......@@ -4,9 +4,11 @@
/**
* @name: S7.5.3_A1.21;
* @section: 7.5.3;
* @assertion: The "package" token can not be used as identifier;
* @description: Checking if execution of "package=1" fails;
* @assertion: The "package" token can not be used as identifier in
* strict code;
* @description: Checking if execution of "package=1" fails in strict code;
* @negative
*/
*/
"use strict";
package = 1;
// Copyright 2011 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.5.3_A1.21;
* @section: 7.5.3;
* @assertion: The "package" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "package=1" succeeds in
* non-strict code;
*/
new Function('package = 1');
......@@ -4,9 +4,11 @@
/**
* @name: S7.5.3_A1.22;
* @section: 7.5.3;
* @assertion: The "private" token can not be used as identifier;
* @description: Checking if execution of "private=1" fails;
* @assertion: The "private" token can not be used as identifier in
* strict code;
* @description: Checking if execution of "private=1" fails in strict code;
* @negative
*/
*/
"use strict";
private = 1;
// Copyright 2011 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.5.3_A1.22;
* @section: 7.5.3;
* @assertion: The "private" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "private=1" succeeds in
* non-strict code;
*/
new Function('private = 1');
......@@ -4,9 +4,12 @@
/**
* @name: S7.5.3_A1.23;
* @section: 7.5.3;
* @assertion: The "protected" token can not be used as identifier;
* @description: Checking if execution of "protected=1" fails;
* @assertion: The "protected" token can not be used as identifier in
* strict code;
* @description: Checking if execution of "protected=1" fails in
* strict code;
* @negative
*/
*/
"use strict";
protected = 1;
// Copyright 2011 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.5.3_A1.23;
* @section: 7.5.3;
* @assertion: The "protected" token can be used as identifier in
* non-strict code;
* @description: Checking if execution of "protected=1" succeeds in
* non-strict code;
*/
new Function('protected = 1');
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