OLD | NEW |
(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> |
OLD | NEW |