aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.3_Properties_of_the_String_Constructor/S15.5.3.1_A2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.3_Properties_of_the_String_Constructor/S15.5.3.1_A2.js')
-rw-r--r--test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.3_Properties_of_the_String_Constructor/S15.5.3.1_A2.js58
1 files changed, 0 insertions, 58 deletions
diff --git a/test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.3_Properties_of_the_String_Constructor/S15.5.3.1_A2.js b/test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.3_Properties_of_the_String_Constructor/S15.5.3.1_A2.js
deleted file mode 100644
index 41d0751d8..000000000
--- a/test/suite/sputnik_converted/15_Native/15.5_String_Objects/15.5.3_Properties_of_the_String_Constructor/S15.5.3.1_A2.js
+++ /dev/null
@@ -1,58 +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.5.3.1_A2;
-* @section: 15.5.3.1, 15.5.4;
-* @assertion: The String.prototype property has the attribute DontEnum;
-* @description: Checking if enumerating the String.prototype property fails;
-*/
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S15.5.3.1_A2",
-
-path: "TestCases/15_Native/15.5_String_Objects/15.5.3_Properties_of_the_String_Constructor/S15.5.3.1_A2.js",
-
-assertion: "The String.prototype property has the attribute DontEnum",
-
-description: "Checking if enumerating the String.prototype property fails",
-
-test: function testcase() {
- //////////////////////////////////////////////////////////////////////////////
-//CHECK#0
-if (!(String.hasOwnProperty('prototype'))) {
- $FAIL('#0: String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype'));
-}
-//
-//////////////////////////////////////////////////////////////////////////////
-
-
-//////////////////////////////////////////////////////////////////////////////
-// CHECK#1
-if (String.propertyIsEnumerable('prototype')) {
- $ERROR('#1: String.propertyIsEnumerable(\'prototype\') return false. Actual: '+String.propertyIsEnumerable('prototype'));
-}
-//
-//////////////////////////////////////////////////////////////////////////////
-
-
-//////////////////////////////////////////////////////////////////////////////
-// CHECK#2
-var count=0;
-
-for (p in String){
- if (p==="prototype") count++;
-}
-
-if (count !== 0) {
- $ERROR('#2: count=0; for (p in String){ if (p==="prototype") count++;}; count === 0. Actual: count ==='+count );
-}
-//
-//////////////////////////////////////////////////////////////////////////////
-
- }
-});
-