JavaScript Tests - move tests 5,6 from 373082 to 376773
git-svn-id: svn://10.0.0.236/trunk@224625 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
046dbbe443
commit
c7c7064d4c
@ -66,14 +66,6 @@ l = <><a>text</a></>;
|
||||
actual = l.charAt(0);
|
||||
TEST(4, expect, actual);
|
||||
|
||||
expect = 't';
|
||||
actual = l.function::charAt.call(l, 0);
|
||||
TEST(5, expect, actual);
|
||||
|
||||
expect = 't';
|
||||
with (l) actual = function::charAt(0);
|
||||
TEST(6, expect, actual);
|
||||
|
||||
expect = 'TypeError: String.prototype.toString called on incompatible XML';
|
||||
|
||||
try
|
||||
|
||||
@ -569,4 +569,14 @@ TEST(++nTest, expectcall + ':' + expect, actualcall + ':' + actual);
|
||||
String.prototype.toLocaleUpperCase = String.prototype.orig_toLocaleUpperCase;
|
||||
delete String.prototype.orig_toLocaleUpperCase;
|
||||
|
||||
var l = <><a>text</a></>;
|
||||
expect = 't';
|
||||
actual = l.function::charAt.call(l, 0);
|
||||
TEST(++nTest, expect, actual);
|
||||
|
||||
expect = 't';
|
||||
with (l) actual = function::charAt(0);
|
||||
TEST(++nTest, expect, actual);
|
||||
|
||||
|
||||
END();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user