runtime-error-in-body-onerror.html (562B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>runtime error in <body onerror></title> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <script> 8 setup({allow_uncaught_exception:true}); 9 var t = async_test(); 10 var ran = 0; 11 </script> 12 </head> 13 <body onerror="ran++; undefined_variable_in_onerror;"> 14 <div id=log></div> 15 <script> 16 undefined_variable; 17 </script> 18 <script> 19 t.step(function(){ 20 assert_equals(ran, 1, 'ran'); 21 t.done(); 22 }); 23 </script> 24 </body> 25 </html>