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

Side by Side Diff: LayoutTests/dart/script-onerror.html

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
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
« no previous file with comments | « LayoutTests/dart/resources/pong.html ('k') | LayoutTests/dart/script-onerror-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <body>
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
6 }
7
8 onerror = function() {
9 console.error('FAIL: window.onerror has been invoked');
10 if (window.testRunner)
11 testRunner.notifyDone();
12 }
13
14 var scriptElement = document.createElement('script');
15 scriptElement.src = 'ggg';
16 scriptElement.type = 'application/dart';
17 scriptElement.onerror = function() {
18 console.log('PASS: scriptElement.onerror has been invoked');
19 if (window.testRunner)
20 testRunner.notifyDone();
21 }
22
23 document.body.appendChild(scriptElement);
24 </script>
25 </body>
OLDNEW
« no previous file with comments | « LayoutTests/dart/resources/pong.html ('k') | LayoutTests/dart/script-onerror-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698