aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/S15.2.4_A1_T2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/S15.2.4_A1_T2.js')
-rw-r--r--test/suite/sputnik_converted/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/S15.2.4_A1_T2.js44
1 files changed, 0 insertions, 44 deletions
diff --git a/test/suite/sputnik_converted/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/S15.2.4_A1_T2.js b/test/suite/sputnik_converted/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/S15.2.4_A1_T2.js
deleted file mode 100644
index cdc45a0e3..000000000
--- a/test/suite/sputnik_converted/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/S15.2.4_A1_T2.js
+++ /dev/null
@@ -1,44 +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.2.4_A1_T2;
- * @section: 15.2.4, 8.6.2;
- * @assertion: Object prototype object has not prototype;
- * @description: Since the Object prototype object has not prototype, deleted toString method can not be found in prototype chain;
-*/
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S15.2.4_A1_T2",
-
-path: "TestCases/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/S15.2.4_A1_T2.js",
-
-assertion: "Object prototype object has not prototype",
-
-description: "Since the Object prototype object has not prototype, deleted toString method can not be found in prototype chain",
-
-test: function testcase() {
- //CHECK#1
-if (Object.prototype.toString() == false) {
- $ERROR('#1: Object prototype object has not prototype');
-}
-
-delete Object.prototype.toString;
-
-// CHECK#2
-try {
- Object.prototype.toString();
- $ERROR('#2: Object prototype object has not prototype');
-} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.1: delete Object.prototype.toString; Object.prototype.toString() throw a TypeError. Actual: ' + (e));
- }
-}
-//
-
- }
-});
-