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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/webappapis/scripting/processing-model-2/runtime-error-same-origin-with-hash.html

Issue 2547023002: Import wpt@3c8896ae408c8fd594979da7c99970029e7856a7 (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 4 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
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <title>window.onerror - runtime error in &lt;script src=...> with hash</title>
5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script>
7 </head>
8 <body>
9 <div id=log></div>
10 <script>
11 setup({allow_uncaught_exception:true});
12 var t = async_test();
13 var t_col = async_test(document.title+' (column)');
14 var ran = false;
15 var col_value;
16 window.onerror = t.step_func(function(a, b, c, d){
17 ran = true;
18 col_value = d;
19 assert_equals(typeof a, 'string', 'first arg');
20 assert_equals(b, document.querySelector('script[src="support/undefined-v ariable.js#"]').src, 'second arg');
21 assert_equals(typeof c, 'number', 'third arg');
22 });
23 </script>
24 <script src="support/undefined-variable.js#"></script>
25 <script>
26 t.step(function(){
27 assert_true(ran, 'ran');
28 t.done();
29 });
30 t_col.step(function(){
31 assert_equals(typeof col_value, 'number', 'fourth arg');
32 t_col.done();
33 });
34 </script>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698