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

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

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 <html>
3 <head>
4 <title>Changes to the 'async' attribute are reflected in the async prope rty</title>
5 <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
6 <meta description="This test ensures changes to the 'async' attribute ar e reflected in the async property." />
7 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
8 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-scrip t-async"/>
9 <script src="../../../../../../resources/testharness.js"></script>
10 <script src="../../../../../../resources/testharnessreport.js"></script>
11 </head>
12 <body>
13 <div id=log></div>
14 <script type="text/javascript">
15 test(function() {
16 var s = document.createElement("script");
17 s.async = false;
18 s.setAttribute('async', ''); /*Should change s.async to true*/
19 assert_true(s.async)
20 }, "Test 'async' attribute are reflected in the async property with se tAttribute");
21
22 test(function() {
23 var s = document.createElement("script");
24 s.async = false;
25 s.setAttribute('async', ''); /*Should change s.async to true*/
26 s.removeAttribute('async'); /*Should change s.async to false*/
27 assert_false(s.async)
28 }, "Test 'async' attribute are reflected in the async property with re moveAttribute");
29 </script>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698