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

Side by Side Diff: test/src/common/behavior_test.html

Issue 1290643006: First cut at behaviors. This just implements the lifecycle methodsportion. We may get the rest for … (Closed) Base URL: git@github.com:dart-lang/polymer-dart.git@master
Patch Set: Created 5 years, 4 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="packages/web_components/webcomponents.min.js"></script>
5 <link rel="x-dart-test" href="behavior_test.dart">
6 <!--<script type="application/dart" src="behavior_test.dart"></script>-->
7 <script src="packages/test/dart.js"></script>
8 </head>
9 <body>
10 <script>
11 window.JsBehavior = {
12 created: function() {
13 this.jsInvocations['created'].push([this]);
14 },
15 attached: function() {
16 this.jsInvocations['attached'].push([this]);
17 },
18 detached: function() {
19 this.jsInvocations['detached'].push([this]);
20 },
21 attributeChanged: function(name, type, value) {
22 this.jsInvocations['attributeChanged'].push([this, name, type, value]);
23 },
24 jsInvocations: {
25 'created': [],
26 'attached': [],
27 'detached': [],
28 'attributeChanged': []
29 }
30 }
31 </script>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698