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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/compile-error-in-setInterval.html

Issue 2711183003: Import wpt@a7e9c2abcf65b78fcf1c246fec6681c74e1bc352 (Closed)
Patch Set: Update test expectations and baselines. Created 3 years, 10 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 - compile error in setInterval</title> 4 <title>window.onerror - compile error in setInterval</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 t_col = async_test(document.title+' (column)'); 13 var t_col = async_test(document.title+' (column)');
14 var ran = false; 14 var ran = false;
15 var col_value; 15 var col_value;
16 var interval; 16 var interval;
17 window.onerror = t.step_func(function(a, b, c, d){ 17 window.onerror = t.step_func(function(a, b, c, d){
18 clearInterval(interval); 18 clearInterval(interval);
19 ran = true; 19 ran = true;
20 col_value = d; 20 col_value = d;
21 assert_equals(typeof a, 'string', 'first arg'); 21 assert_equals(typeof a, 'string', 'first arg');
22 assert_equals(b, location.href, 'second arg'); 22 assert_equals(b, location.href, 'second arg');
23 assert_equals(typeof c, 'number', 'third arg'); 23 assert_equals(typeof c, 'number', 'third arg');
24 }); 24 });
25 interval = setInterval("{", 10); 25 interval = setInterval("{", 10);
26 setTimeout(function(){ 26 step_timeout(function(){
27 t.step(function(){ 27 t.step(function(){
28 clearInterval(interval); 28 clearInterval(interval);
29 assert_true(ran, 'ran'); 29 assert_true(ran, 'ran');
30 t.done(); 30 t.done();
31 }); 31 });
32 t_col.step(function(){ 32 t_col.step(function(){
33 assert_equals(typeof col_value, 'number', 'fourth arg'); 33 assert_equals(typeof col_value, 'number', 'fourth arg');
34 t_col.done(); 34 t_col.done();
35 }); 35 });
36 }, 20); 36 }, 20);
37 </script> 37 </script>
38 </body> 38 </body>
39 </html> 39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698