Index: LayoutTests/dart/exception.html |
diff --git a/LayoutTests/dart/exception.html b/LayoutTests/dart/exception.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a1f393b9f6ced51081cba75121d184ba48e74031 |
--- /dev/null |
+++ b/LayoutTests/dart/exception.html |
@@ -0,0 +1,31 @@ |
+<html> |
+<body> |
+ |
+<script type="application/dart"> |
+import 'dart:html'; |
+ |
+BodyElement get body => document.body; |
+ |
+void log(String msg) { |
+ Element element = new Element.tag('div'); |
+ element.innerHtml = msg; |
+ body.nodes.add(element); |
+} |
+ |
+void main() { |
+ document.body.onClick.listen((evt) { |
+ throw 'Thrown from event listener'; |
+ }); |
+ document.body.dispatchEvent(new MouseEvent('click')); |
+ |
+ log("PASS"); |
+} |
+</script> |
+ |
+<script> |
+ if (window.testRunner) |
+ window.testRunner.dumpAsText(); |
+</script> |
+ |
+</body> |
+</html> |