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:
bclary%bclary.com 2007-04-17 12:55:18 +00:00
parent 046dbbe443
commit c7c7064d4c
2 changed files with 10 additions and 8 deletions

View File

@ -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

View File

@ -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();