From 4ef42618e3aea7625d375d8dd8031d03c5989872 Mon Sep 17 00:00:00 2001 From: "rogerl%netscape.com" Date: Fri, 10 Dec 1999 19:56:23 +0000 Subject: [PATCH] Updated tests to account for new LiveConnect behaviour for JS array type as input argumnet - it used to be handled as any other JS object, but there are now new rules for arrays, invalidating portions of these tests. --- js/tests/lc3/ConvertJSObject/ToBoolean-001.js | 5 ----- js/tests/lc3/ConvertJSObject/ToByte-001.js | 5 ----- js/tests/lc3/ConvertJSObject/ToChar-001.js | 5 ----- js/tests/lc3/ConvertJSObject/ToDouble-001.js | 5 ----- js/tests/lc3/ConvertJSObject/ToFloat-001.js | 5 ----- js/tests/lc3/ConvertJSObject/ToInt-001.js | 5 ----- js/tests/lc3/ConvertJSObject/ToLong-001.js | 5 ----- js/tests/lc3/ConvertJSObject/ToShort-001.js | 5 ----- js/tests/lc3/JSObject/ToDouble-001.js | 10 ---------- js/tests/lc3/JSObject/ToFloat-001.js | 10 ---------- js/tests/lc3/JavaObject/JavaObjectToDouble-001.js | 2 +- 11 files changed, 1 insertion(+), 61 deletions(-) diff --git a/js/tests/lc3/ConvertJSObject/ToBoolean-001.js b/js/tests/lc3/ConvertJSObject/ToBoolean-001.js index c94afafa4f6f..93d9f3dfb251 100644 --- a/js/tests/lc3/ConvertJSObject/ToBoolean-001.js +++ b/js/tests/lc3/ConvertJSObject/ToBoolean-001.js @@ -59,11 +59,6 @@ "DOUBLE", TEST_CLASS.ambiguous( new Function() )+'' ); - testcases[testcases.length] = new TestCase( - "TEST_CLASS.ambiguous( new Array() ) +''", - "DOUBLE", - TEST_CLASS.ambiguous( new Array() )+'' ); - testcases[testcases.length] = new TestCase( "TEST_CLASS.ambiguous( this ) +''", "DOUBLE", diff --git a/js/tests/lc3/ConvertJSObject/ToByte-001.js b/js/tests/lc3/ConvertJSObject/ToByte-001.js index c5a2e9757d75..248393b0543f 100644 --- a/js/tests/lc3/ConvertJSObject/ToByte-001.js +++ b/js/tests/lc3/ConvertJSObject/ToByte-001.js @@ -65,11 +65,6 @@ "BYTE", TEST_CLASS.ambiguous( new Date(99) )+'' ); - testcases[testcases.length] = new TestCase( - "TEST_CLASS.ambiguous( new Array() ) +''", - "BYTE", - TEST_CLASS.ambiguous( new Array() )+'' ); - testcases[testcases.length] = new TestCase( "TEST_CLASS.ambiguous( new MyObject(127) ) +''", "BYTE", diff --git a/js/tests/lc3/ConvertJSObject/ToChar-001.js b/js/tests/lc3/ConvertJSObject/ToChar-001.js index 4430652676c0..12a6d74b4269 100644 --- a/js/tests/lc3/ConvertJSObject/ToChar-001.js +++ b/js/tests/lc3/ConvertJSObject/ToChar-001.js @@ -54,11 +54,6 @@ "CHAR", TEST_CLASS.ambiguous( new Date(999) )+'' ); - testcases[testcases.length] = new TestCase( - "TEST_CLASS.ambiguous( new Array() ) +''", - "CHAR", - TEST_CLASS.ambiguous( new Array() )+'' ); - test(); diff --git a/js/tests/lc3/ConvertJSObject/ToDouble-001.js b/js/tests/lc3/ConvertJSObject/ToDouble-001.js index d7857457010c..f5e145e6d818 100644 --- a/js/tests/lc3/ConvertJSObject/ToDouble-001.js +++ b/js/tests/lc3/ConvertJSObject/ToDouble-001.js @@ -59,11 +59,6 @@ "DOUBLE", TEST_CLASS.ambiguous( new Function() )+'' ); - testcases[testcases.length] = new TestCase( - "TEST_CLASS.ambiguous( new Array() ) +''", - "DOUBLE", - TEST_CLASS.ambiguous( new Array() )+'' ); - testcases[testcases.length] = new TestCase( "TEST_CLASS.ambiguous( this ) +''", "DOUBLE", diff --git a/js/tests/lc3/ConvertJSObject/ToFloat-001.js b/js/tests/lc3/ConvertJSObject/ToFloat-001.js index 383ef0491d06..8b6a26abb1f4 100644 --- a/js/tests/lc3/ConvertJSObject/ToFloat-001.js +++ b/js/tests/lc3/ConvertJSObject/ToFloat-001.js @@ -59,11 +59,6 @@ "FLOAT", TEST_CLASS.ambiguous( new Function() )+'' ); - testcases[testcases.length] = new TestCase( - "TEST_CLASS.ambiguous( new Array() ) +''", - "FLOAT", - TEST_CLASS.ambiguous( new Array() )+'' ); - testcases[testcases.length] = new TestCase( "TEST_CLASS.ambiguous( this ) +''", "FLOAT", diff --git a/js/tests/lc3/ConvertJSObject/ToInt-001.js b/js/tests/lc3/ConvertJSObject/ToInt-001.js index 432cb247ea89..202e80a895f9 100644 --- a/js/tests/lc3/ConvertJSObject/ToInt-001.js +++ b/js/tests/lc3/ConvertJSObject/ToInt-001.js @@ -54,11 +54,6 @@ "INT", TEST_CLASS.ambiguous( new Date(0) )+'' ); - testcases[testcases.length] = new TestCase( - "TEST_CLASS.ambiguous( new Array() ) +''", - "INT", - TEST_CLASS.ambiguous( new Array() )+'' ); - test(); diff --git a/js/tests/lc3/ConvertJSObject/ToLong-001.js b/js/tests/lc3/ConvertJSObject/ToLong-001.js index 28cb00c3092d..2c9911c8456b 100644 --- a/js/tests/lc3/ConvertJSObject/ToLong-001.js +++ b/js/tests/lc3/ConvertJSObject/ToLong-001.js @@ -64,11 +64,6 @@ "LONG", TEST_CLASS.ambiguous( new Date(0) )+'' ); - testcases[testcases.length] = new TestCase( - "TEST_CLASS.ambiguous( new Array() ) +''", - "LONG", - TEST_CLASS.ambiguous( new Array() )+'' ); - testcases[testcases.length] = new TestCase( "TEST_CLASS.ambiguous( new MyObject(999) ) +''", "LONG", diff --git a/js/tests/lc3/ConvertJSObject/ToShort-001.js b/js/tests/lc3/ConvertJSObject/ToShort-001.js index 642e4da8c356..267d399f5fb4 100644 --- a/js/tests/lc3/ConvertJSObject/ToShort-001.js +++ b/js/tests/lc3/ConvertJSObject/ToShort-001.js @@ -54,11 +54,6 @@ "SHORT", TEST_CLASS.ambiguous( new Date(999) )+'' ); - testcases[testcases.length] = new TestCase( - "TEST_CLASS.ambiguous( new Array() ) +''", - "SHORT", - TEST_CLASS.ambiguous( new Array() )+'' ); - test(); diff --git a/js/tests/lc3/JSObject/ToDouble-001.js b/js/tests/lc3/JSObject/ToDouble-001.js index f70507d186d5..3e1f76b4866f 100644 --- a/js/tests/lc3/JSObject/ToDouble-001.js +++ b/js/tests/lc3/JSObject/ToDouble-001.js @@ -190,16 +190,6 @@ NaN, "number"); - var array = new Array(1,2,3) - - a[i++] = new TestObject( - "dt.setDouble(array)", - "dt.PUB_DOUBLE", - "dt.getDouble()", - "typeof dt.getDouble()", - NaN, - "number"); - a[i++] = new TestObject( "dt.setDouble( MyObject )", "dt.PUB_DOUBLE", diff --git a/js/tests/lc3/JSObject/ToFloat-001.js b/js/tests/lc3/JSObject/ToFloat-001.js index 0c7a2e801e0b..c6b3cf060adf 100644 --- a/js/tests/lc3/JSObject/ToFloat-001.js +++ b/js/tests/lc3/JSObject/ToFloat-001.js @@ -191,16 +191,6 @@ NaN, "number"); - var array = new Array(1,2,3) - - a[i++] = new TestObject( - "dt.setFloat(array)", - "dt.PUB_FLOAT", - "dt.getFloat()", - "typeof dt.getFloat()", - NaN, - "number"); - a[i++] = new TestObject( "dt.setFloat( MyObject )", "dt.PUB_FLOAT", diff --git a/js/tests/lc3/JavaObject/JavaObjectToDouble-001.js b/js/tests/lc3/JavaObject/JavaObjectToDouble-001.js index ea3bb19222cd..f3a7d6c6f172 100644 --- a/js/tests/lc3/JavaObject/JavaObjectToDouble-001.js +++ b/js/tests/lc3/JavaObject/JavaObjectToDouble-001.js @@ -114,7 +114,7 @@ function TestObject( description, javaField, javaMethod, javaType, jsValue, jsType ) { - eval (description ); + eval (description ); this.description = description; this.javaFieldName = javaField;