aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/15.4.4.8_Array_prototype_reverse/S15.4.4.8_A1_T1.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/15.4.4.8_Array_prototype_reverse/S15.4.4.8_A1_T1.js')
-rw-r--r--test/suite/sputnik_converted/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/15.4.4.8_Array_prototype_reverse/S15.4.4.8_A1_T1.js64
1 files changed, 0 insertions, 64 deletions
diff --git a/test/suite/sputnik_converted/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/15.4.4.8_Array_prototype_reverse/S15.4.4.8_A1_T1.js b/test/suite/sputnik_converted/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/15.4.4.8_Array_prototype_reverse/S15.4.4.8_A1_T1.js
deleted file mode 100644
index 42a8fd2d5..000000000
--- a/test/suite/sputnik_converted/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/15.4.4.8_Array_prototype_reverse/S15.4.4.8_A1_T1.js
+++ /dev/null
@@ -1,64 +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.4.4.8_A1_T1;
- * @section: 15.4.4.8;
- * @assertion: The elements of the array are rearranged so as to reverse their order.
- * The object is returned as the result of the call;
- * @description: Checking case when reverse is given no arguments or one argument;
-*/
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S15.4.4.8_A1_T1",
-
-path: "TestCases/15_Native/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/15.4.4.8_Array_prototype_reverse/S15.4.4.8_A1_T1.js",
-
-assertion: "The elements of the array are rearranged so as to reverse their order.",
-
-description: "Checking case when reverse is given no arguments or one argument",
-
-test: function testcase() {
- //CHECK#1
-var x = [];
-var reverse = x.reverse();
-if (reverse !== x) {
- $ERROR('#1: x = []; x.reverse() === x. Actual: ' + (reverse));
-}
-
-//CHECK#2
-x = [];
-x[0] = 1;
-var reverse = x.reverse();
-if (reverse !== x) {
- $ERROR('#2: x = []; x[0] = 1; x.reverse() === x. Actual: ' + (reverse));
-}
-
-//CHECK#3
-x = new Array(1,2);
-var reverse = x.reverse();
-if (reverse !== x) {
- $ERROR('#3: x = new Array(1,2); x.reverse() === x. Actual: ' + (reverse));
-}
-
-//CHECK#4
-if (x[0] !== 2) {
- $ERROR('#4: x = new Array(1,2); x.reverse(); x[0] === 2. Actual: ' + (x[0]));
-}
-
-//CHECK#5
-if (x[1] !== 1) {
- $ERROR('#5: x = new Array(1,2); x.reverse(); x[1] === 1. Actual: ' + (x[1]));
-}
-
-//CHECK#6
-if (x.length !== 2) {
- $ERROR('#6: x = new Array(1,2); x.reverse(); x.length === 2. Actual: ' + (x.length));
-}
-
- }
-});
-