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

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

Issue 24324005: Updating Shadow DOM and including some fixes to enable it to work with CustomElements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 <head> 8 <head>
9 <title>event path</title> 9 <title>event path</title>
10 <script src="packages/polymer/boot.js"></script> 10 <script src="packages/polymer/boot.js"></script>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 </template> 51 </template>
52 <script type="application/dart"> 52 <script type="application/dart">
53 import 'package:polymer/polymer.dart'; 53 import 'package:polymer/polymer.dart';
54 @CustomTag("x-menu") 54 @CustomTag("x-menu")
55 class XMenu extends PolymerElement {} 55 class XMenu extends PolymerElement {}
56 </script> 56 </script>
57 </polymer-element> 57 </polymer-element>
58 58
59 <polymer-element name="x-menu-button"> 59 <polymer-element name="x-menu-button">
60 <template> 60 <template>
61 <div> 61 <div>
62 <x-overlay id="overlay"> 62 <x-overlay id="overlay">
63 <div id="menuButtonDiv"> 63 <div id="menuButtonDiv">
64 <x-menu id="menu"> 64 <x-menu id="menu">
65 <content id="menuButtonContent"></content> 65 <content id="menuButtonContent"></content>
66 </x-menu> 66 </x-menu>
67 </div> 67 </div>
68 </x-overlay> 68 </x-overlay>
69 </div> 69 </div>
70 </template> 70 </template>
71 <script type="application/dart"> 71 <script type="application/dart">
72 import 'package:polymer/polymer.dart'; 72 import 'package:polymer/polymer.dart';
73 @CustomTag("x-menu-button") 73 @CustomTag("x-menu-button")
74 class XMenuButton extends PolymerElement {} 74 class XMenuButton extends PolymerElement {}
75 </script> 75 </script>
76 </polymer-element> 76 </polymer-element>
77 77
78 <x-menu-button id="menuButton"> 78 <x-menu-button id="menuButton">
79 <div id="item1"><div id="source"></div>Item1</div> 79 <div id="item1"><div id="source"></div>Item1</div>
80 <div id="item2">Item2</div> 80 <div id="item2">Item2</div>
81 </x-menu-button> 81 </x-menu-button>
82 82
83 83
84 <script type="application/dart" src="event_path_test.dart"></script> 84 <script type="application/dart" src="event_path_test.dart"></script>
85 </body> 85 </body>
86 </html> 86 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698