aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik/Conformance/11_Expressions
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik/Conformance/11_Expressions')
-rw-r--r--test/suite/sputnik/Conformance/11_Expressions/11.10_Binary_Bitwise_Operators/11.10.1_AND_Operator/S11.10.1_A2.4_T3.js5
-rw-r--r--test/suite/sputnik/Conformance/11_Expressions/11.10_Binary_Bitwise_Operators/11.10.2_XOR_Operator/S11.10.2_A2.4_T3.js5
-rw-r--r--test/suite/sputnik/Conformance/11_Expressions/11.10_Binary_Bitwise_Operators/11.10.3_OR_Operator/S11.10.3_A2.4_T3.js5
-rw-r--r--test/suite/sputnik/Conformance/11_Expressions/11.11_Binary_Logical_Operators/11.11.1_Logical_AND_Operator/S11.11.1_A2.4_T3.js5
-rw-r--r--test/suite/sputnik/Conformance/11_Expressions/11.11_Binary_Logical_Operators/11.11.2_Logical_OR_Operator/S11.11.2_A2.4_T3.js5
-rw-r--r--test/suite/sputnik/Conformance/11_Expressions/11.13_Assignment_Operators/11.13.1_Simple_Assignment/S11.13.1_A1.js5
-rw-r--r--test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A2.js7
-rw-r--r--test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A3.1.js5
-rw-r--r--test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A3.2.js5
-rw-r--r--test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A4.1.js6
-rw-r--r--test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A4.2.js8
11 files changed, 35 insertions, 26 deletions
diff --git a/test/suite/sputnik/Conformance/11_Expressions/11.10_Binary_Bitwise_Operators/11.10.1_AND_Operator/S11.10.1_A2.4_T3.js b/test/suite/sputnik/Conformance/11_Expressions/11.10_Binary_Bitwise_Operators/11.10.1_AND_Operator/S11.10.1_A2.4_T3.js
index 6bcedce62..ed4263979 100644
--- a/test/suite/sputnik/Conformance/11_Expressions/11.10_Binary_Bitwise_Operators/11.10.1_AND_Operator/S11.10.1_A2.4_T3.js
+++ b/test/suite/sputnik/Conformance/11_Expressions/11.10_Binary_Bitwise_Operators/11.10.1_AND_Operator/S11.10.1_A2.4_T3.js
@@ -6,16 +6,17 @@
* @section: 11.10.1;
* @assertion: First expression is evaluated first, and then second expression;
* @description: Checking with undeclarated variables;
+ * @non_strict_only
*/
//CHECK#1
try {
x & (x = 1);
- $ERROR('#1.1: x & (x = 1) throw ReferenceError. Actual: ' + (x & (x = 1)));
+ $ERROR('#1.1: x & (x = 1) throw ReferenceError. Actual: ' + (x & (x = 1)));
}
catch (e) {
if ((e instanceof ReferenceError) !== true) {
- $ERROR('#1.2: x & (x = 1) throw ReferenceError. Actual: ' + (e));
+ $ERROR('#1.2: x & (x = 1) throw ReferenceError. Actual: ' + (e));
}
}
diff --git a/test/suite/sputnik/Conformance/11_Expressions/11.10_Binary_Bitwise_Operators/11.10.2_XOR_Operator/S11.10.2_A2.4_T3.js b/test/suite/sputnik/Conformance/11_Expressions/11.10_Binary_Bitwise_Operators/11.10.2_XOR_Operator/S11.10.2_A2.4_T3.js
index 1cdd0cf68..c3c531210 100644
--- a/test/suite/sputnik/Conformance/11_Expressions/11.10_Binary_Bitwise_Operators/11.10.2_XOR_Operator/S11.10.2_A2.4_T3.js
+++ b/test/suite/sputnik/Conformance/11_Expressions/11.10_Binary_Bitwise_Operators/11.10.2_XOR_Operator/S11.10.2_A2.4_T3.js
@@ -6,16 +6,17 @@
* @section: 11.10.2;
* @assertion: First expression is evaluated first, and then second expression;
* @description: Checking with undeclarated variables;
+ * @non_strict_only
*/
//CHECK#1
try {
x ^ (x = 1);
- $ERROR('#1.1: x ^ (x = 1) throw ReferenceError. Actual: ' + (x ^ (x = 1)));
+ $ERROR('#1.1: x ^ (x = 1) throw ReferenceError. Actual: ' + (x ^ (x = 1)));
}
catch (e) {
if ((e instanceof ReferenceError) !== true) {
- $ERROR('#1.2: x ^ (x = 1) throw ReferenceError. Actual: ' + (e));
+ $ERROR('#1.2: x ^ (x = 1) throw ReferenceError. Actual: ' + (e));
}
}
diff --git a/test/suite/sputnik/Conformance/11_Expressions/11.10_Binary_Bitwise_Operators/11.10.3_OR_Operator/S11.10.3_A2.4_T3.js b/test/suite/sputnik/Conformance/11_Expressions/11.10_Binary_Bitwise_Operators/11.10.3_OR_Operator/S11.10.3_A2.4_T3.js
index b820b1d22..73cd2e03f 100644
--- a/test/suite/sputnik/Conformance/11_Expressions/11.10_Binary_Bitwise_Operators/11.10.3_OR_Operator/S11.10.3_A2.4_T3.js
+++ b/test/suite/sputnik/Conformance/11_Expressions/11.10_Binary_Bitwise_Operators/11.10.3_OR_Operator/S11.10.3_A2.4_T3.js
@@ -6,16 +6,17 @@
* @section: 11.10.3;
* @assertion: First expression is evaluated first, and then second expression;
* @description: Checking with undeclarated variables;
+ * @non_strict_only
*/
//CHECK#1
try {
x | (x = 1);
- $ERROR('#1.1: x | (x = 1) throw ReferenceError. Actual: ' + (x | (x = 1)));
+ $ERROR('#1.1: x | (x = 1) throw ReferenceError. Actual: ' + (x | (x = 1)));
}
catch (e) {
if ((e instanceof ReferenceError) !== true) {
- $ERROR('#1.2: x | (x = 1) throw ReferenceError. Actual: ' + (e));
+ $ERROR('#1.2: x | (x = 1) throw ReferenceError. Actual: ' + (e));
}
}
diff --git a/test/suite/sputnik/Conformance/11_Expressions/11.11_Binary_Logical_Operators/11.11.1_Logical_AND_Operator/S11.11.1_A2.4_T3.js b/test/suite/sputnik/Conformance/11_Expressions/11.11_Binary_Logical_Operators/11.11.1_Logical_AND_Operator/S11.11.1_A2.4_T3.js
index 971481242..1dc1ded9b 100644
--- a/test/suite/sputnik/Conformance/11_Expressions/11.11_Binary_Logical_Operators/11.11.1_Logical_AND_Operator/S11.11.1_A2.4_T3.js
+++ b/test/suite/sputnik/Conformance/11_Expressions/11.11_Binary_Logical_Operators/11.11.1_Logical_AND_Operator/S11.11.1_A2.4_T3.js
@@ -6,16 +6,17 @@
* @section: 11.11.1;
* @assertion: First expression is evaluated first, and then second expression;
* @description: Checking with undeclarated variables;
+ * @non_strict_only
*/
//CHECK#1
try {
x && (x = true);
- $ERROR('#1.1: x && (x = true) throw ReferenceError. Actual: ' + (x && (x = true)));
+ $ERROR('#1.1: x && (x = true) throw ReferenceError. Actual: ' + (x && (x = true)));
}
catch (e) {
if ((e instanceof ReferenceError) !== true) {
- $ERROR('#1.2: x && (x = true) throw ReferenceError. Actual: ' + (e));
+ $ERROR('#1.2: x && (x = true) throw ReferenceError. Actual: ' + (e));
}
}
diff --git a/test/suite/sputnik/Conformance/11_Expressions/11.11_Binary_Logical_Operators/11.11.2_Logical_OR_Operator/S11.11.2_A2.4_T3.js b/test/suite/sputnik/Conformance/11_Expressions/11.11_Binary_Logical_Operators/11.11.2_Logical_OR_Operator/S11.11.2_A2.4_T3.js
index 8fe84c018..91906298f 100644
--- a/test/suite/sputnik/Conformance/11_Expressions/11.11_Binary_Logical_Operators/11.11.2_Logical_OR_Operator/S11.11.2_A2.4_T3.js
+++ b/test/suite/sputnik/Conformance/11_Expressions/11.11_Binary_Logical_Operators/11.11.2_Logical_OR_Operator/S11.11.2_A2.4_T3.js
@@ -6,16 +6,17 @@
* @section: 11.11.2;
* @assertion: First expression is evaluated first, and then second expression;
* @description: Checking with undeclarated variables;
+ * @non_strict_only
*/
//CHECK#1
try {
x || (x = true);
- $ERROR('#1.1: x || (x = true) throw ReferenceError. Actual: ' + (x || (x = true)));
+ $ERROR('#1.1: x || (x = true) throw ReferenceError. Actual: ' + (x || (x = true)));
}
catch (e) {
if ((e instanceof ReferenceError) !== true) {
- $ERROR('#1.2: x || (x = true) throw ReferenceError. Actual: ' + (e));
+ $ERROR('#1.2: x || (x = true) throw ReferenceError. Actual: ' + (e));
}
}
diff --git a/test/suite/sputnik/Conformance/11_Expressions/11.13_Assignment_Operators/11.13.1_Simple_Assignment/S11.13.1_A1.js b/test/suite/sputnik/Conformance/11_Expressions/11.13_Assignment_Operators/11.13.1_Simple_Assignment/S11.13.1_A1.js
index 01dab2594..3165ce368 100644
--- a/test/suite/sputnik/Conformance/11_Expressions/11.13_Assignment_Operators/11.13.1_Simple_Assignment/S11.13.1_A1.js
+++ b/test/suite/sputnik/Conformance/11_Expressions/11.13_Assignment_Operators/11.13.1_Simple_Assignment/S11.13.1_A1.js
@@ -6,6 +6,7 @@
* @section: 11.13.1;
* @assertion: White Space and Line Terminator between LeftHandSideExpression and "=" or between "=" and AssignmentExpression are allowed;
* @description: Checking by using eval;
+* @non_strict_only
*/
//CHECK#1
@@ -15,7 +16,7 @@ if ((eval("x\u0009=\u0009true")) !== true) {
//CHECK#2
if ((eval("x\u000B=\u000Btrue")) !== true) {
- $ERROR('#2: (x\\u000B=\\u000Btrue) === true');
+ $ERROR('#2: (x\\u000B=\\u000Btrue) === true');
}
//CHECK#3
@@ -35,7 +36,7 @@ if ((eval("x\u00A0=\u00A0true")) !== true) {
//CHECK#6
if ((eval("x\u000A=\u000Atrue")) !== true) {
- $ERROR('#6: (x\\u000A=\\u000Atrue) === true');
+ $ERROR('#6: (x\\u000A=\\u000Atrue) === true');
}
//CHECK#7
diff --git a/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A2.js b/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A2.js
index 983f15947..3b836b5ad 100644
--- a/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A2.js
+++ b/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A2.js
@@ -5,15 +5,16 @@
* @name: S11.1.1_A2;
* @section: 11.1.1;
* @assertion: Being in global code, "this" and "eval("this")" return the global object;
- * @description: Checking if execution of "this" and eval("this"), which are in global code, return the global object by using toString function;
+ * @description: Checking if execution of "this" and eval("this"), which are in global code, return the global object by using toString function;
+ * @non_strict_only
*/
//CHECK#1
if (this.toString() !== toString()) {
- $ERROR('#1: this.toString() === toString(). Actual: ' + (this.toString()));
+ $ERROR('#1: this.toString() === toString(). Actual: ' + (this.toString()));
}
//CHECK#2
if (eval("this").toString() !== toString()) {
- $ERROR('#2: eval("this").toString() === toString(). Actual: ' + (this.toString()));
+ $ERROR('#2: eval("this").toString() === toString(). Actual: ' + (this.toString()));
}
diff --git a/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A3.1.js b/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A3.1.js
index 8c168a87e..a45f547f7 100644
--- a/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A3.1.js
+++ b/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A3.1.js
@@ -6,18 +6,19 @@
* @section: 11.1.1;
* @assertion: Being in function code, "this" and eval("this"), called as a functions, return the global object;
* @description: Creating function which returns "this" or eval("this");
+ * @non_strict_only
*/
//CHECK#1
function MyFunction() {return this}
if (MyFunction() !== this) {
- $ERROR('#1: function MyFunction() {return this} MyFunction() === this. Actual: ' + (MyFunction()));
+ $ERROR('#1: function MyFunction() {return this} MyFunction() === this. Actual: ' + (MyFunction()));
}
//CHECK#2
function MyFunction() {return eval("this")}
if (MyFunction() !== this) {
- $ERROR('#2: function MyFunction() {return eval("this")} MyFunction() === this. Actual: ' + (MyFunction()));
+ $ERROR('#2: function MyFunction() {return eval("this")} MyFunction() === this. Actual: ' + (MyFunction()));
}
diff --git a/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A3.2.js b/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A3.2.js
index 96361b6da..6c591b0c6 100644
--- a/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A3.2.js
+++ b/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A3.2.js
@@ -6,17 +6,18 @@
* @section: 11.1.1;
* @assertion: Being in function code, "this" and eval("this"), called as a constructors, return the object;
* @description: Create function. It have property, that returned "this";
+ * @non_strict_only
*/
//CHECK#1
function MyFunction() {this.THIS = this}
if ((new MyFunction()).THIS.toString() !== "[object Object]") {
- $ERROR('#1: function MyFunction() {this.THIS = this} (new MyFunction()).THIS.toString() !== "[object Object]". Actual: ' + ((new MyFunction()).THIS.toString()));
+ $ERROR('#1: function MyFunction() {this.THIS = this} (new MyFunction()).THIS.toString() !== "[object Object]". Actual: ' + ((new MyFunction()).THIS.toString()));
}
//CHECK#2
function MyFunction() {this.THIS = eval("this")}
if ((new MyFunction()).THIS.toString() !== "[object Object]") {
- $ERROR('#2: function MyFunction() {this.THIS = eval("this")} (new MyFunction()).THIS.toString() !== "[object Object]". Actual: ' + ((new MyFunction()).THIS.toString()));
+ $ERROR('#2: function MyFunction() {this.THIS = eval("this")} (new MyFunction()).THIS.toString() !== "[object Object]". Actual: ' + ((new MyFunction()).THIS.toString()));
}
diff --git a/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A4.1.js b/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A4.1.js
index 5b7c1c87a..8acf412c5 100644
--- a/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A4.1.js
+++ b/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A4.1.js
@@ -11,13 +11,13 @@
//CHECK#1
var MyFunction = new Function("return this");
if (MyFunction() !== this) {
- $ERROR('#1: var MyFunction = new Function("return this"); MyFunction() === this. Actual: ' + (MyFunction()));
+ $ERROR('#1: var MyFunction = new Function("return this"); MyFunction() === this. Actual: ' + (MyFunction()));
}
//CHECK#2
-var MyFunction = new Function("return eval(\'this\')");
+MyFunction = new Function("return eval(\'this\')");
if (MyFunction() !== this) {
- $ERROR('#2: var MyFunction = new Function("return eval(\'this\')"); MyFunction() === this. Actual: ' + (MyFunction()));
+ $ERROR('#2: var MyFunction = new Function("return eval(\'this\')"); MyFunction() === this. Actual: ' + (MyFunction()));
}
diff --git a/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A4.2.js b/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A4.2.js
index 279d81775..877ab1b5f 100644
--- a/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A4.2.js
+++ b/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions/11.1.1_The_this_Keyword/S11.1.1_A4.2.js
@@ -12,13 +12,13 @@
var MyFunction = new Function("this.THIS = this");
var MyObject = new MyFunction();
if (MyObject.THIS.toString() !== "[object Object]") {
- $ERROR('#1: var MyFunction = new Function("this.THIS = this"); var MyObject = new MyFunction(); MyObject.THIS.toString() === "[object Object]". Actual: ' + (MyObject.THIS.toString()));
+ $ERROR('#1: var MyFunction = new Function("this.THIS = this"); var MyObject = new MyFunction(); MyObject.THIS.toString() === "[object Object]". Actual: ' + (MyObject.THIS.toString()));
}
//CHECK#2
-var MyFunction = new Function("this.THIS = eval(\'this\')");
-var MyObject = new MyFunction();
+MyFunction = new Function("this.THIS = eval(\'this\')");
+MyObject = new MyFunction();
if (MyObject.THIS.toString() !== "[object Object]") {
- $ERROR('#2: var MyFunction = new Function("this.THIS = eval(\'this\')"); var MyObject = new MyFunction(); MyObject.THIS.toString() === "[object Object]". Actual: ' + (MyObject.THIS.toString()));
+ $ERROR('#2: var MyFunction = new Function("this.THIS = eval(\'this\')"); var MyObject = new MyFunction(); MyObject.THIS.toString() === "[object Object]". Actual: ' + (MyObject.THIS.toString()));
}