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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/webappapis/scripting/events/body-onload.html

Issue 1166693007: W3C Test: import web-platform-tests/html/webappapis (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>HTMLBodyElement.onload</title>
3 <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
4 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#handler-window-on load">
6 <script src="../../../../../../resources/testharness.js"></script>
7 <script src="../../../../../../resources/testharnessreport.js"></script>
8 <div id="log"></div>
9 <script>
10 var t = async_test("body.onload should set the window.onload handler")
11 window.onload = t.step_func(function() {
12 assert_unreached("This handler should be overwritten.")
13 })
14 var b = document.createElement("body")
15 b.onload = t.step_func(function(e) {
16 assert_equals(e.currentTarget, window,
17 "The event should be fired at the window.")
18 t.done()
19 })
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698