aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A3.12_T4.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A3.12_T4.js')
-rw-r--r--test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A3.12_T4.js60
1 files changed, 0 insertions, 60 deletions
diff --git a/test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A3.12_T4.js b/test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A3.12_T4.js
deleted file mode 100644
index f5deba51d..000000000
--- a/test/suite/sputnik_converted/12_Statement/12.10_The_with_Statement/S12.10_A3.12_T4.js
+++ /dev/null
@@ -1,60 +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.12_T4;
- * @section: 12.10;
- * @assertion: No matter how control leaves the embedded 'Statement',
- * the scope chain is always restored to its former state;
- * @description: Calling a function without "with" statement declared within the statement, leading to completion by exception;
- * @strict_mode_negative
- */
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S12.10_A3.12_T4",
-
-path: "TestCases/12_Statement/12.10_The_with_Statement/S12.10_A3.12_T4.js",
-
-assertion: "No matter how control leaves the embedded \'Statement\',",
-
-description: "Calling a function without \"with\" statement declared within the statement, leading to completion by exception",
-
-test: function testcase() {
- this.p1 = 1;
-var result = "result";
-var value = "value";
-var myObj = {p1: 'a',
- value: 'myObj_value',
- valueOf : function(){return 'obj_valueOf';}
-}
-
-try {
- with(myObj){
- var f = function(){
- p1 = 'x1';
- throw value;
- }
- }
- f();
-} catch(e){
- result = e;
-}
-
-if(!(p1 === 1)){
- $ERROR('#1: p1 === 1. Actual: p1 ==='+ p1 );
-}
-
-if(!(myObj.p1 === "x1")){
- $ERROR('#2: myObj.p1 === "x1". Actual: myObj.p1 ==='+ myObj.p1 );
-}
-
-if(!(result === "myObj_value")){
- $ERROR('#3: result === "myObj_value". Actual: result ==='+ result );
-}
-
-
- }
-});
-