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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <body>
3
4 <script type="application/dart">
5 import 'dart:html';
6
7 BodyElement get body => document.body;
8
9 void log(String msg) {
10 Element element = new Element.tag('div');
11 element.innerHtml = msg;
12 body.nodes.add(element);
13 }
14
15 void main() {
16 document.body.onClick.listen((evt) {
17 throw 'Thrown from event listener';
18 });
19 document.body.dispatchEvent(new MouseEvent('click'));
20
21 log("PASS");
22 }
23 </script>
24
25 <script>
26 if (window.testRunner)
27 window.testRunner.dumpAsText();
28 </script>
29
30 </body>
31 </html>
OLDNEW
« 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