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. git-svn-id: svn://10.0.0.236/trunk@55855 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
f63c611cd5
commit
d02bcc7362
@ -59,11 +59,6 @@
|
|||||||
"DOUBLE",
|
"DOUBLE",
|
||||||
TEST_CLASS.ambiguous( new Function() )+'' );
|
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(
|
testcases[testcases.length] = new TestCase(
|
||||||
"TEST_CLASS.ambiguous( this ) +''",
|
"TEST_CLASS.ambiguous( this ) +''",
|
||||||
"DOUBLE",
|
"DOUBLE",
|
||||||
|
|||||||
@ -65,11 +65,6 @@
|
|||||||
"BYTE",
|
"BYTE",
|
||||||
TEST_CLASS.ambiguous( new Date(99) )+'' );
|
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(
|
testcases[testcases.length] = new TestCase(
|
||||||
"TEST_CLASS.ambiguous( new MyObject(127) ) +''",
|
"TEST_CLASS.ambiguous( new MyObject(127) ) +''",
|
||||||
"BYTE",
|
"BYTE",
|
||||||
|
|||||||
@ -54,11 +54,6 @@
|
|||||||
"CHAR",
|
"CHAR",
|
||||||
TEST_CLASS.ambiguous( new Date(999) )+'' );
|
TEST_CLASS.ambiguous( new Date(999) )+'' );
|
||||||
|
|
||||||
testcases[testcases.length] = new TestCase(
|
|
||||||
"TEST_CLASS.ambiguous( new Array() ) +''",
|
|
||||||
"CHAR",
|
|
||||||
TEST_CLASS.ambiguous( new Array() )+'' );
|
|
||||||
|
|
||||||
test();
|
test();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -59,11 +59,6 @@
|
|||||||
"DOUBLE",
|
"DOUBLE",
|
||||||
TEST_CLASS.ambiguous( new Function() )+'' );
|
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(
|
testcases[testcases.length] = new TestCase(
|
||||||
"TEST_CLASS.ambiguous( this ) +''",
|
"TEST_CLASS.ambiguous( this ) +''",
|
||||||
"DOUBLE",
|
"DOUBLE",
|
||||||
|
|||||||
@ -59,11 +59,6 @@
|
|||||||
"FLOAT",
|
"FLOAT",
|
||||||
TEST_CLASS.ambiguous( new Function() )+'' );
|
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(
|
testcases[testcases.length] = new TestCase(
|
||||||
"TEST_CLASS.ambiguous( this ) +''",
|
"TEST_CLASS.ambiguous( this ) +''",
|
||||||
"FLOAT",
|
"FLOAT",
|
||||||
|
|||||||
@ -54,11 +54,6 @@
|
|||||||
"INT",
|
"INT",
|
||||||
TEST_CLASS.ambiguous( new Date(0) )+'' );
|
TEST_CLASS.ambiguous( new Date(0) )+'' );
|
||||||
|
|
||||||
testcases[testcases.length] = new TestCase(
|
|
||||||
"TEST_CLASS.ambiguous( new Array() ) +''",
|
|
||||||
"INT",
|
|
||||||
TEST_CLASS.ambiguous( new Array() )+'' );
|
|
||||||
|
|
||||||
test();
|
test();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -64,11 +64,6 @@
|
|||||||
"LONG",
|
"LONG",
|
||||||
TEST_CLASS.ambiguous( new Date(0) )+'' );
|
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(
|
testcases[testcases.length] = new TestCase(
|
||||||
"TEST_CLASS.ambiguous( new MyObject(999) ) +''",
|
"TEST_CLASS.ambiguous( new MyObject(999) ) +''",
|
||||||
"LONG",
|
"LONG",
|
||||||
|
|||||||
@ -54,11 +54,6 @@
|
|||||||
"SHORT",
|
"SHORT",
|
||||||
TEST_CLASS.ambiguous( new Date(999) )+'' );
|
TEST_CLASS.ambiguous( new Date(999) )+'' );
|
||||||
|
|
||||||
testcases[testcases.length] = new TestCase(
|
|
||||||
"TEST_CLASS.ambiguous( new Array() ) +''",
|
|
||||||
"SHORT",
|
|
||||||
TEST_CLASS.ambiguous( new Array() )+'' );
|
|
||||||
|
|
||||||
test();
|
test();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -190,16 +190,6 @@
|
|||||||
NaN,
|
NaN,
|
||||||
"number");
|
"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(
|
a[i++] = new TestObject(
|
||||||
"dt.setDouble( MyObject )",
|
"dt.setDouble( MyObject )",
|
||||||
"dt.PUB_DOUBLE",
|
"dt.PUB_DOUBLE",
|
||||||
|
|||||||
@ -191,16 +191,6 @@
|
|||||||
NaN,
|
NaN,
|
||||||
"number");
|
"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(
|
a[i++] = new TestObject(
|
||||||
"dt.setFloat( MyObject )",
|
"dt.setFloat( MyObject )",
|
||||||
"dt.PUB_FLOAT",
|
"dt.PUB_FLOAT",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user