summaryrefslogtreecommitdiffstats
path: root/Source/JavaScriptCore/tests
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-09-14 16:29:47 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-09-14 16:29:47 +0200
commitd0424a769059c84ae20beb3c217812792ea6726b (patch)
tree6f94a5c3db8c52c6694ee56498542a6c35417350 /Source/JavaScriptCore/tests
parent88a04ac016f57c2d78e714682445dff2e7db4ade (diff)
Imported WebKit commit 37c5e5041d39a14ea0d429a77ebd352e4bd26516 (http://svn.webkit.org/repository/webkit/trunk@128608)
New snapshot that enables WebKit2 build on Windows (still some bugs) and allows for WebKit to be built with qmake && make
Diffstat (limited to 'Source/JavaScriptCore/tests')
-rw-r--r--Source/JavaScriptCore/tests/mozilla/js1_6/Array/regress-304828.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/JavaScriptCore/tests/mozilla/js1_6/Array/regress-304828.js b/Source/JavaScriptCore/tests/mozilla/js1_6/Array/regress-304828.js
index fb751e555..4cc3a94a1 100644
--- a/Source/JavaScriptCore/tests/mozilla/js1_6/Array/regress-304828.js
+++ b/Source/JavaScriptCore/tests/mozilla/js1_6/Array/regress-304828.js
@@ -60,7 +60,7 @@ reportCompare(expect, actual, summary + ': join');
// reverse
value = '123';
-expect = '123';
+expect = 'TypeError: Attempted to assign to readonly property.';
try
{
actual = Array.prototype.reverse.call(value) + '';
@@ -73,7 +73,7 @@ reportCompare(expect, actual, summary + ': reverse');
// sort
value = 'cba';
-expect = 'cba';
+expect = 'TypeError: Attempted to assign to readonly property.';
try
{
actual = Array.prototype.sort.call(value) + '';
@@ -114,7 +114,7 @@ reportCompare('abc', value, summary + ': pop');
// unshift
value = 'def';
-expect = 6;
+expect = "TypeError: Attempted to assign to readonly property.";
try
{
actual = Array.prototype.unshift.call(value, 'a', 'b', 'c');
@@ -128,7 +128,7 @@ reportCompare('def', value, summary + ': unshift');
// shift
value = 'abc';
-expect = 'TypeError: Unable to delete property.';
+expect = 'TypeError: Attempted to assign to readonly property.';
try
{
actual = Array.prototype.shift.call(value);
@@ -142,7 +142,7 @@ reportCompare('abc', value, summary + ': shift');
// splice
value = 'abc';
-expect = 'TypeError: Unable to delete property.';
+expect = 'TypeError: Attempted to assign to readonly property.';
try
{
actual = Array.prototype.splice.call(value, 1, 1) + '';