зеркало из https://github.com/mozilla/pjs.git
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.
This commit is contained in:
Родитель
88bac4ad87
Коммит
42554e50d0
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
function TestObject( description, javaField, javaMethod, javaType,
|
||||
jsValue, jsType )
|
||||
{
|
||||
eval (description );
|
||||
eval (description );
|
||||
|
||||
this.description = description;
|
||||
this.javaFieldName = javaField;
|
||||
|
|
Загрузка…
Ссылка в новой задаче