зеркало из https://github.com/mozilla/pjs.git
JavaScript Tests - move tests 5,6 from 373082 to 376773
This commit is contained in:
Родитель
6f4a79d0ef
Коммит
ca68305741
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче