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

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

Issue 335943003: merge to trunk all changes from 36817 until 37378 under the packages: polymer, (Closed) Base URL: http://dart.googlecode.com/svn/trunk/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
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <!-- 2 <!--
3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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 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. 5 BSD-style license that can be found in the LICENSE file.
6 --> 6 -->
7 <html> 7 <html>
8 <!--polymer-test: this comment is needed for test_suite.dart--> 8 <!--polymer-test: this comment is needed for test_suite.dart-->
9 <!-- Test ported from: 9 <!-- Test ported from:
10 https://github.com/Polymer/polymer/blob/b720085/test/html/event-handlers.html 10 https://github.com/Polymer/polymer/blob/b720085/test/html/event-handlers.html
11 --> 11 -->
12 <head> 12 <head>
13 <title>event handlers</title> 13 <title>event handlers</title>
14 <script src="packages/web_components/platform.js"></script>
15 <script src="packages/web_components/dart_support.js"></script>
14 <link rel="import" href="packages/polymer/polymer.html"> 16 <link rel="import" href="packages/polymer/polymer.html">
15 <script src="/root_dart/tools/testing/dart/test_controller.js"></script> 17 <script src="/root_dart/tools/testing/dart/test_controller.js"></script>
16 </head> 18 </head>
17 <body> 19 <body>
18 20
19 <x-test> 21 <x-test>
20 <div>...light...</div> 22 <div>...light...</div>
21 </x-test> 23 </x-test>
22 24
23 <polymer-element name="x-test" on-tap="{{hostTapAction}}"> 25 <polymer-element name="x-test" on-tap="{{hostTapAction}}">
24 <template> 26 <template>
25 <style> 27 <style>
26 @host { 28 :host {
27 * { 29 display: block;
28 display: block;
29 }
30 } 30 }
31 .gradient { 31 .gradient {
32 background: -webkit-gradient(linear, left top, left bottom, 32 background: -webkit-gradient(linear, left top, left bottom,
33 color-stop(0%,#b4e391), color-stop(50%,#61c419), 33 color-stop(0%,#b4e391), color-stop(50%,#61c419),
34 color-stop(100%,#b4e391)); 34 color-stop(100%,#b4e391));
35 } 35 }
36 </style> 36 </style>
37 37
38 <div id="div" on-tap="{{divTapAction}}">Tap me! 38 <div id="div" on-tap="{{divTapAction}}">Tap me!
39 <content></content> 39 <content></content>
40 </div> 40 </div>
41 <input id="input" on-focus="{{focusAction}}" 41 <input id="input" on-focus="{{focusAction}}"
42 on-blur="{{blurAction}}">focusy 42 on-blur="{{blurAction}}">focusy
43 <div id="list" 43 <div id="list"
44 style="height: 200px; overflow: auto; border: 1px solid black;" 44 style="height: 200px; overflow: auto; border: 1px solid black;"
45 on-scroll="{{scrollAction}}"> 45 on-scroll="{{scrollAction}}">
46 <div class="gradient"> 46 <div class="gradient">
47 <template repeat="{{list1}}"> 47 <template repeat="{{list1}}">
48 <div class="list1" on-tap="{{itemTapAction}}">a {{index}}</div> 48 <div class="list1" on-tap="{{itemTapAction}}">{{index}}</div>
49 </template> 49 </template>
50 <template repeat="{{item in list2}}"> 50 <template repeat="{{item in list2}}">
51 <div class="list2" 51 <div class="list2" on-tap="{{itemTapAction}}">{{item.index}}</div>
52 on-tap="{{@item.itemTapAction}}">b {{item.index}}</div>
53 </template> 52 </template>
54 </div> 53 </div>
55 </div> 54 </div>
56 </template> 55 </template>
57 <script type="application/dart" src="event_handlers_test.dart"></script> 56 <script type="application/dart" src="event_handlers_test.dart"></script>
58 </polymer-element> 57 </polymer-element>
59 </body> 58 </body>
60 </html> 59 </html>
OLDNEW
« no previous file with comments | « pkg/polymer/test/event_handlers_test.dart ('k') | pkg/polymer/test/event_path_declarative_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698