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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/dart/script-onerror.html
diff --git a/LayoutTests/dart/script-onerror.html b/LayoutTests/dart/script-onerror.html
new file mode 100644
index 0000000000000000000000000000000000000000..7a206d9df9dba5fa06b1b3cddba78e25379f05da
--- /dev/null
+++ b/LayoutTests/dart/script-onerror.html
@@ -0,0 +1,25 @@
+<body>
+<script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ onerror = function() {
+ console.error('FAIL: window.onerror has been invoked');
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }
+
+ var scriptElement = document.createElement('script');
+ scriptElement.src = 'ggg';
+ scriptElement.type = 'application/dart';
+ scriptElement.onerror = function() {
+ console.log('PASS: scriptElement.onerror has been invoked');
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }
+
+ document.body.appendChild(scriptElement);
+</script>
+</body>
« 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