| Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html
|
| similarity index 81%
|
| copy from third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html
|
| copy to third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html
|
| index e3c26c9c8001944e7822affd956960f9b6f23f5c..f91f3fd56b947e1ec95e008f18e1052645c2e463 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html
|
| +++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html
|
| @@ -1,8 +1,8 @@
|
| <!doctype html>
|
| <meta charset=utf-8>
|
| <title>
|
| - When a listener from window A is added to an event target in window A via the
|
| - addEventListener function from window A, errors in that listener should be
|
| + When a listener from window A is added to an event target in window B via the
|
| + addEventListener function from window B, errors in that listener should be
|
| reported to window A.
|
| </title>
|
| <script src=../../../../../../resources/testharness.js></script>
|
| @@ -11,7 +11,7 @@
|
| <iframe></iframe>
|
| <script>
|
| test(function() {
|
| - var f = new frames[1].Function("thereIsNoSuchCallable()");
|
| + var f = new frames[0].Function("thereIsNoSuchCallable()");
|
| frames[1].document.addEventListener("myevent", f);
|
| var frame0ErrorFired = false;
|
| var frame1ErrorFired = false;
|
| @@ -26,8 +26,8 @@ test(function() {
|
| ourErrorFired = true;
|
| });
|
| frames[1].document.dispatchEvent(new Event("myevent"));
|
| - assert_false(frame0ErrorFired);
|
| - assert_true(frame1ErrorFired);
|
| + assert_true(frame0ErrorFired);
|
| + assert_false(frame1ErrorFired);
|
| assert_false(ourErrorFired);
|
| }, "The error event from an event listener should fire on that listener's global");
|
| </script>
|
|
|