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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/script-onload-string.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (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>Script: setting onload to a string</title>
3 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
4 <script src="../../../../../../resources/testharness.js"></script>
5 <script src="../../../../../../resources/testharnessreport.js"></script>
6 <div id=log></div>
7 <script>
8 test(function() {
9 var s = document.createElement("script");
10 assert_equals(s.onload, null);
11 var dummy = function() {};
12 s.onload = dummy;
13 assert_equals(s.onload, dummy);
14 s.onload = "w('load DOM appended')";
15 assert_equals(s.onload, null);
16 }, "Setting onload to a string should convert to null.");
17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698