aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik/Conformance/11_Expressions/11.1_Primary_Expressions')
-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
5 files changed, 17 insertions, 14 deletions
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()));
}