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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/script-for-event-xhtml.xhtml

Issue 1515563002: Import web-platform-tests@5dbe45af3ad3a933c03187c72f1c12cbe2877703 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
1 <html xmlns="http://www.w3.org/1999/xhtml"> 1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head> 2 <head>
3 <title>Scripts with for and event attributes</title> 3 <title>Scripts with for and event attributes</title>
4 <script src="../../../../../../resources/testharness.js"></script> 4 <script src="../../../../../../resources/testharness.js"></script>
5 <script src="../../../../../../resources/testharnessreport.js"></script> 5 <script src="../../../../../../resources/testharnessreport.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <div id="log"></div> 8 <div id="log"></div>
9 <script> 9 <script>
10 var run = false; 10 var run = false;
11 </script> 11 </script>
12 <script for="window" event="bar"> 12 <script for="window" event="bar">
13 // This script should not run, but should not cause a parse error either. 13 // This script should not run, but should not cause a parse error either.
14 run = true; 14 run = true;
15 </script> 15 </script>
16 <script> 16 <script>
17 test(function() { 17 test(function() {
18 assert_false(run, "Script was unexpectedly run.") 18 assert_false(run, "Script was unexpectedly run.")
19 }, "Scripts with for and event attributes should not run.") 19 }, "Scripts with for and event attributes should not run.")
20 </script> 20 </script>
21 </body> 21 </body>
22 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698