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

Unified Diff: LayoutTests/dart/exception.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/dom/resources/pong.js ('k') | LayoutTests/dart/exception-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « LayoutTests/dart/dom/resources/pong.js ('k') | LayoutTests/dart/exception-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698