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> |