aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A3.1_T1.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A3.1_T1.js')
-rw-r--r--test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A3.1_T1.js61
1 files changed, 0 insertions, 61 deletions
diff --git a/test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A3.1_T1.js b/test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A3.1_T1.js
deleted file mode 100644
index c3fb4dfd6..000000000
--- a/test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A3.1_T1.js
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/**
- * @name: S12.10_A3.1_T1;
- * @section: 12.10;
- * @assertion: No matter how control leaves the embedded 'Statement',
- * the scope chain is always restored to its former state;
- * @description: Using "with" statement within global context - normal completion;
- * @strict_mode_negative
- */
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S12.10_A3.1_T1",
-
-path: "TestCases/12_Statement/12.10_The_with_Statement/S12.10_A3.1_T1.js",
-
-assertion: "No matter how control leaves the embedded \'Statement\',",
-
-description: "Using \"with\" statement within global context - normal completion",
-
-test: function testcase() {
- this.p1 = 1;
-
-var result = "result";
-
-var myObj = {
- p1: 'a',
- value: 'myObj_value',
- valueOf : function(){return 'obj_valueOf';}
-}
-
-
-with(myObj){
- p1 = 'x1';
-}
-
-//////////////////////////////////////////////////////////////////////////////
-//CHECK#1
-if(p1 !== 1){
- $ERROR('#1: p1 === 1. Actual: p1 ==='+ p1 );
-}
-//
-//////////////////////////////////////////////////////////////////////////////
-
-//////////////////////////////////////////////////////////////////////////////
-//CHECK#2
-if(myObj.p1 !== "x1"){
- $ERROR('#2: myObj.p1 === "x1". Actual: myObj.p1 ==='+ myObj.p1 );
-}
-//
-//////////////////////////////////////////////////////////////////////////////
-
-
-
- }
-});
-