aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/11_Expressions/11.4_Unary_Operators/11.4.4_Prefix_Increment_Operator/S11.4.4_A2.1_T1.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/11_Expressions/11.4_Unary_Operators/11.4.4_Prefix_Increment_Operator/S11.4.4_A2.1_T1.js')
-rw-r--r--test/suite/sputnik_converted/11_Expressions/11.4_Unary_Operators/11.4.4_Prefix_Increment_Operator/S11.4.4_A2.1_T1.js57
1 files changed, 0 insertions, 57 deletions
diff --git a/test/suite/sputnik_converted/11_Expressions/11.4_Unary_Operators/11.4.4_Prefix_Increment_Operator/S11.4.4_A2.1_T1.js b/test/suite/sputnik_converted/11_Expressions/11.4_Unary_Operators/11.4.4_Prefix_Increment_Operator/S11.4.4_A2.1_T1.js
deleted file mode 100644
index 4b79e975c..000000000
--- a/test/suite/sputnik_converted/11_Expressions/11.4_Unary_Operators/11.4.4_Prefix_Increment_Operator/S11.4.4_A2.1_T1.js
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/**
-* @name: S11.4.4_A2.1_T1;
-* @section: 11.4.4, 11.6.3;
-* @assertion: Operator ++x uses GetValue and PutValue;
-* @description: Type(x) is Reference and GetBase(x) is not null;
-*/
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S11.4.4_A2.1_T1",
-
-path: "TestCases/11_Expressions/11.4_Unary_Operators/11.4.4_Prefix_Increment_Operator/S11.4.4_A2.1_T1.js",
-
-assertion: "Operator ++x uses GetValue and PutValue",
-
-description: "Type(x) is Reference and GetBase(x) is not null",
-
-test: function testcase() {
- //CHECK#1
-var x = 1;
-if (++x !== 1 + 1) {
- $ERROR('#1: var x = 1; ++x === 1 + 1. Actual: ' + (++x));
-} else {
- if (x !== 1 + 1) {
- $ERROR('#1: var x = 1; ++x; x === 1 + 1. Actual: ' + (x));
- }
-}
-
-//CHECK#2
-this.x = 1;
-if (++this.x !== 1 + 1) {
- $ERROR('#2: this.x = 1; ++this.x === 1 + 1. Actual: ' + (++this.x));
-} else {
- if (this.x !== 1 + 1) {
- $ERROR('#2: this.x = 1; ++this.x; this.x === 1 + 1. Actual: ' + (this.x));
- }
-}
-
-//CHECK#3
-var object = new Object();
-object.prop = 1;
-if (++object.prop !== 1 + 1) {
- $ERROR('#3: var object = new Object(); object.prop = 1; ++object.prop === 1 + 1. Actual: ' + (++object.prop));
-} else {
- if (this.x !== 1 + 1) {
- $ERROR('#3: var object = new Object(); object.prop = 1; ++object.prop; object.prop === 1 + 1. Actual: ' + (object.prop));
- }
-}
-
- }
-});
-