aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.7_Properties_of_RegExp_Instances/15.10.7.2_global/S15.10.7.2_A8.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.7_Properties_of_RegExp_Instances/15.10.7.2_global/S15.10.7.2_A8.js')
-rw-r--r--test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.7_Properties_of_RegExp_Instances/15.10.7.2_global/S15.10.7.2_A8.js49
1 files changed, 0 insertions, 49 deletions
diff --git a/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.7_Properties_of_RegExp_Instances/15.10.7.2_global/S15.10.7.2_A8.js b/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.7_Properties_of_RegExp_Instances/15.10.7.2_global/S15.10.7.2_A8.js
deleted file mode 100644
index e74f544e3..000000000
--- a/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.7_Properties_of_RegExp_Instances/15.10.7.2_global/S15.10.7.2_A8.js
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/**
-* @name: S15.10.7.2_A8;
-* @section: 15.10.7.2;
-* @assertion: The RegExp instance global property has the attribute DontEnum;
-* @description: Checking if enumerating the global property of RegExp instance fails;
-*/
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S15.10.7.2_A8",
-
-path: "TestCases/15_Native/15.10_RegExp_Objects/15.10.7_Properties_of_RegExp_Instances/15.10.7.2_global/S15.10.7.2_A8.js",
-
-assertion: "The RegExp instance global property has the attribute DontEnum",
-
-description: "Checking if enumerating the global property of RegExp instance fails",
-
-test: function testcase() {
- __re = new RegExp("[o-o]","m");
-
-//CHECK#0
-if (__re.hasOwnProperty('global') !== true) {
- $FAIL('#0: __re = new RegExp("[o-o]","m"); __re.hasOwnProperty(\'global\') === true');
-}
-
- //CHECK#1
-if (__re.propertyIsEnumerable('global') !== false) {
- $ERROR('#1: __re = new RegExp("[o-o]","m"); __re.propertyIsEnumerable(\'global\') === false');
-}
-
- //CHECK#2
-count = 0
-for (p in __re){
- if (p==="global") count++
-}
-
-if (count !== 0) {
- $ERROR('#2: count = 0; __re = new RegExp("[o-o]","m"); for (p in __re){ if (p==="global") count++; } count === 0. Actual: ' + (count));
-}
-
-
- }
-});
-