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

Side by Side Diff: pkg/polymer/test/js_custom_event_test.html

Issue 317013007: Detect and wrap JS-CustomEvents if applicable. Include created_watcher and (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « pkg/polymer/test/js_custom_event_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <!--
3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 for details. All rights reserved. Use of this source code is governed by a
5 BSD-style license that can be found in the LICENSE file.
6 -->
7 <html>
8 <!--polymer-test: this comment is needed for test_suite.dart-->
9 <head>
10 <title>event path</title>
11 <link rel="import" href="packages/polymer/polymer.html">
12 <script src="/root_dart/tools/testing/dart/test_controller.js"></script>
13 </head>
14 <body>
15
16 <polymer-element name="x-test">
17 <template>
18 <div id="a" on-my-event={{myEventHandler}}></div>
19 </template>
20 </polymer-element>
21 <x-test></x-test>
22 <script>
23 function fireEvent() {
24 var x = document.querySelector('x-test');
25 var a = x.shadowRoot.querySelector('#a');
26 var e = new CustomEvent('my-event', {
27 bubbles: true,
28 cancelable: true,
29 // `a` included as a regression for issue 19315.
30 detail: {value: 42, item: a}
31 });
32 a.dispatchEvent(e);
33 }
34 </script>
35 <script type="application/dart" src="js_custom_event_test.dart"></script>
36 </body>
37 </html>
OLDNEW
« no previous file with comments | « pkg/polymer/test/js_custom_event_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698