aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A5_T4.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A5_T4.js')
-rw-r--r--test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A5_T4.js71
1 files changed, 0 insertions, 71 deletions
diff --git a/test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A5_T4.js b/test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A5_T4.js
deleted file mode 100644
index e259e8b44..000000000
--- a/test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A5_T4.js
+++ /dev/null
@@ -1,71 +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_A5_T4;
- * @section: 12.10;
- * @assertion: Deleting property using "eval" statement containing "with" statement;
- * @description: Deleting object property;
- * @strict_mode_negative
- */
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S12.10_A5_T4",
-
-path: "TestCases/12_Statement/12.10_The_with_Statement/S12.10_A5_T4.js",
-
-assertion: "Deleting property using \"eval\" statement containing \"with\" statement",
-
-description: "Deleting object property",
-
-test: function testcase() {
- this.p1 = 'a';
-var myObj = {
- p1: {a:"hello"},
- del:false
-}
-eval("with(myObj){del = delete p1}");
-
-//////////////////////////////////////////////////////////////////////////////
-//CHECK#1
-try{
-if(myObj.p1.a === "hello"){
- $ERROR('#1: myObj.p1.a !== "hello" ');
-}
-}catch(e){var x=1};
-if(x !== 1){
- $ERROR('#1: x === 1. Actual: x ==='+ x );
-}
-//
-//////////////////////////////////////////////////////////////////////////////
-
-//////////////////////////////////////////////////////////////////////////////
-//CHECK#2
-if(myObj.p1 !== undefined){
- $ERROR('#2: myObj.p1 === undefined . Actual: myObj.p1 ==='+ myObj.p1 );
-}
-//
-//////////////////////////////////////////////////////////////////////////////
-
-//////////////////////////////////////////////////////////////////////////////
-//CHECK#3
-if(myObj.del !== true){
- $ERROR('#3: myObj.del === true . Actual: myObj.del ==='+ myObj.del );
-}
-//
-//////////////////////////////////////////////////////////////////////////////
-
-//////////////////////////////////////////////////////////////////////////////
-//CHECK#4
-if(myObj.p1 === 'a'){
- $ERROR('#4: myObj.p1 !== \'a\'');
-}
-//
-//////////////////////////////////////////////////////////////////////////////
-
- }
-});
-