Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: LayoutTests/fast/dom/shadow/event-path-window-load.html

Issue 849783002: Event.path should include Window (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: test expected update for http/tests/dom/crash-on-querying-event-path.html Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <script>
5 setup({ explicit_done: true });
6
7 var img = document.getElementById("img");
8 window.onload = function (e) {
9 var path = e.path;
10 test(function () {
11 assert_equals(path.length, 1, 'path.length');
12 assert_equals(path[0], window, 'path[0] should be window');
13 }, "event.path for window.onload");
14 done();
15 };
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698