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

Unified Diff: LayoutTests/fast/dom/shadow/event-path-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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/shadow/event-path-load.html
diff --git a/LayoutTests/fast/dom/shadow/event-path-load.html b/LayoutTests/fast/dom/shadow/event-path-load.html
new file mode 100644
index 0000000000000000000000000000000000000000..e2e8c0767249d6a8b2df857e05ac9c68e1c1684f
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/event-path-load.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<img id="img" src="../../images/resources/test-load.jpg">
+<script>
+setup({ explicit_done: true });
+
+var img = document.getElementById("img");
+img.onload = function (e) {
+ var path = e.path;
+ test(function () {
+ assert_equals(path.length, 4, 'path.length');
+ assert_equals(path[0], img, 'path[0] should be img');
+ assert_equals(path[1], document.body, 'path[1] should be body');
+ assert_equals(path[2], document.documentElement, 'path[2] should be html');
+ assert_equals(path[3], document, 'path[3] should be document');
+ }, "event.path for img.onload");
+ done();
+};
+</script>

Powered by Google App Engine
This is Rietveld 408576698