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

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

Issue 24077003: fix polymer tests -- replace run.sh and run tests using bots (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
(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 <head>
9 <title>event path</title>
10 <script src="packages/polymer/boot.js"></script>
11 <script src="packages/unittest/test_controller.js"></script>
12 <!--
13 Test ported from:
14 https://github.com/Polymer/polymer/blob/7936ff8/test/html/event-path.html
15
16 This test actually doesn't test the polymer's event layer. It just ensures
17 that tests are propagated in the right order when using Shadow DOM.
18 -->
19 </head>
20 <body>
21
22 <polymer-element name="x-selector">
23 <template>
24 <div id="selectorDiv">
25 <content id="selectorContent"></content>
26 </div>
27 </template>
28 <script type="application/dart">
29 import 'package:polymer/polymer.dart';
30 @CustomTag("x-selector")
31 class XSelector extends PolymerElement {}
32 </script>
33 </polymer-element>
34
35 <polymer-element name="x-overlay">
36 <template>
37 <content id="overlayContent"></content>
38 </template>
39 <script type="application/dart">
40 import 'package:polymer/polymer.dart';
41 @CustomTag("x-overlay")
42 class XOverlay extends PolymerElement {}
43 </script>
44 </polymer-element>
45
46 <polymer-element name="x-menu" extends="x-selector">
47 <template>
48 <div id="menuDiv">
49 <shadow id="menuShadow"></shadow>
50 </div>
51 </template>
52 <script type="application/dart">
53 import 'package:polymer/polymer.dart';
54 @CustomTag("x-menu")
55 class XMenu extends PolymerElement {}
56 </script>
57 </polymer-element>
58
59 <polymer-element name="x-menu-button">
60 <template>
61 <div>
62 <x-overlay id="overlay">
63 <div id="menuButtonDiv">
64 <x-menu id="menu">
65 <content id="menuButtonContent"></content>
66 </x-menu>
67 </div>
68 </x-overlay>
69 </div>
70 </template>
71 <script type="application/dart">
72 import 'package:polymer/polymer.dart';
73 @CustomTag("x-menu-button")
74 class XMenuButton extends PolymerElement {}
75 </script>
76 </polymer-element>
77
78 <x-menu-button id="menuButton">
79 <div id="item1"><div id="source"></div>Item1</div>
80 <div id="item2">Item2</div>
81 </x-menu-button>
82
83
84 <script type="application/dart" src="event_path_test.dart"></script>
85 </body>
86 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698