From ca683057410ae5b46809ff2f27d8518822912044 Mon Sep 17 00:00:00 2001 From: "bclary@bclary.com" Date: Tue, 17 Apr 2007 05:55:18 -0700 Subject: [PATCH] JavaScript Tests - move tests 5,6 from 373082 to 376773 --- js/tests/e4x/Regress/regress-373082.js | 8 -------- js/tests/e4x/XML/regress-376773.js | 10 ++++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/js/tests/e4x/Regress/regress-373082.js b/js/tests/e4x/Regress/regress-373082.js index 8328fe33d96..c53dbcb867b 100755 --- a/js/tests/e4x/Regress/regress-373082.js +++ b/js/tests/e4x/Regress/regress-373082.js @@ -66,14 +66,6 @@ l = <>text; 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 diff --git a/js/tests/e4x/XML/regress-376773.js b/js/tests/e4x/XML/regress-376773.js index ec83ded3efd..78fae5e9a1c 100755 --- a/js/tests/e4x/XML/regress-376773.js +++ b/js/tests/e4x/XML/regress-376773.js @@ -569,4 +569,14 @@ TEST(++nTest, expectcall + ':' + expect, actualcall + ':' + actual); String.prototype.toLocaleUpperCase = String.prototype.orig_toLocaleUpperCase; delete String.prototype.orig_toLocaleUpperCase; +var l = <>text; +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();