| Index: test/webkit/fast/js/kde/Error.js
|
| diff --git a/test/webkit/regexp-extended-characters-more.js b/test/webkit/fast/js/kde/Error.js
|
| similarity index 72%
|
| copy from test/webkit/regexp-extended-characters-more.js
|
| copy to test/webkit/fast/js/kde/Error.js
|
| index 9cdf6be40e5e624ad15bf762cf96ff0e5b19efdd..6ecd5c3c8ff7a7c0edae78adddbdf1eec0f93ea1 100644
|
| --- a/test/webkit/regexp-extended-characters-more.js
|
| +++ b/test/webkit/fast/js/kde/Error.js
|
| @@ -21,10 +21,15 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -description(
|
| -"This test checks a few cases of extended (> 127) characters in repeat regular expressions."
|
| -);
|
| +description("KDE JS Test");
|
| +// Error constructor called as a function
|
| +shouldBe("Error('msg').message", "'msg'");
|
|
|
| -shouldBe('"foo\\xa0\\xa0\\xa0".replace(/\\xa0*/, "")', '"foo\\xa0\\xa0\\xa0"');
|
| -shouldBe('"foo\\xa0\\xa0\\xa0".replace(/\\xa0+/, "")', '"foo"');
|
| -shouldBe('"foo\\xa0\\xa0\\xa0".replace(/\\xa0*$/, "")', '"foo"');
|
| +// Error Constructor called as part of a new expression
|
| +shouldBe("(new Error('msg')).message", "'msg'");
|
| +// moved to evil-n.js shouldBeUndefined("(new Error()).message");
|
| +shouldBe("(new Error('msg')).name", "'Error'");
|
| +
|
| +shouldBe("Object.prototype.toString.apply(Error())", "'[object Error]'");
|
| +shouldBe("Object.prototype.toString.apply(Error)", "'[object Function]'");
|
| +shouldBe("Object.prototype.toString.apply(EvalError)", "'[object Function]'");
|
|
|