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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/scripting/processing-model-2/addEventListener.html

Issue 2327923003: W3C auto test import CL. (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>window.onerror - addEventListener</title> 4 <title>window.onerror - addEventListener</title>
5 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script> 6 <script src="/resources/testharnessreport.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <div id=log></div> 9 <div id=log></div>
10 <script> 10 <script>
11 setup({allow_uncaught_exception:true}); 11 setup({allow_uncaught_exception:true});
12 var t = async_test(); 12 var t = async_test();
13 var ran = false; 13 var ran = false;
14 // spec doesn't say to fire an event so this should do nothing
15 window.addEventListener('error', t.step_func(function(e){ 14 window.addEventListener('error', t.step_func(function(e){
16 ran = true; 15 ran = true;
16 assert_true(e.isTrusted, 'isTrusted');
17 }), false); 17 }), false);
18 </script> 18 </script>
19 <script> 19 <script>
20 undefined_variable; 20 undefined_variable;
21 </script> 21 </script>
22 <script> 22 <script>
23 for (;) {} 23 for (;) {}
24 </script> 24 </script>
25 <script> 25 <script>
26 t.step(function(){ 26 t.step(function(){
27 assert_false(ran, 'ran'); 27 assert_true(ran, 'ran');
28 t.done(); 28 t.done();
29 }); 29 });
30 </script> 30 </script>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698