| Index: third_party/WebKit/LayoutTests/fast/events/before-unload-return-bad-value.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/events/before-unload-return-bad-value.html b/third_party/WebKit/LayoutTests/fast/events/before-unload-return-bad-value.html
|
| index 94cf8da53feacf17fcfe061f8da1ed635405728f..f97e9042e3292e51852c5bc94e555ae43048eaa9 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/events/before-unload-return-bad-value.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/events/before-unload-return-bad-value.html
|
| @@ -6,6 +6,7 @@
|
| description("Tests that an exception is thrown when the value returned in the beforeunload callback cannot be converted to a String");
|
| window.jsTestIsAsync = true;
|
|
|
| +var testMessage;
|
| var alreadyTested = false;
|
| function test(frame) {
|
| if (alreadyTested)
|
| @@ -16,18 +17,16 @@ function test(frame) {
|
| return {toString: function() { throw "Exception in toString()"; }};
|
| };
|
|
|
| + frame.contentWindow.onerror = function(msg) {
|
| + testMessage = msg;
|
| + testPassed("Exception was thrown");
|
| + shouldBeEqualToString("testMessage", "Uncaught Exception in toString()");
|
| + return true;
|
| + };
|
| +
|
| frame.contentWindow.location.href = "resources/does-not-exist.html";
|
| setTimeout(finishJSTest, 0);
|
| }
|
| -
|
| -var testMessage;
|
| -window.onerror = function(msg) {
|
| - testMessage = msg;
|
| - // FIXME: This test fails. See crbug.com/446147.
|
| - testPassed("Exception was thrown");
|
| - shouldBeEqualToString("testMessage", "Uncaught Exception in toString()");
|
| - return true;
|
| -};
|
| </script>
|
| </head>
|
| <body>
|
|
|