| Index: test/src/common/behavior_test.html
|
| diff --git a/test/src/common/behavior_test.html b/test/src/common/behavior_test.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..532396534c2258ac6c5f340c2e9aeb413c762668
|
| --- /dev/null
|
| +++ b/test/src/common/behavior_test.html
|
| @@ -0,0 +1,33 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| + <script src="packages/web_components/webcomponents.min.js"></script>
|
| + <link rel="x-dart-test" href="behavior_test.dart">
|
| + <!--<script type="application/dart" src="behavior_test.dart"></script>-->
|
| + <script src="packages/test/dart.js"></script>
|
| +</head>
|
| +<body>
|
| +<script>
|
| + window.JsBehavior = {
|
| + created: function() {
|
| + this.jsInvocations['created'].push([this]);
|
| + },
|
| + attached: function() {
|
| + this.jsInvocations['attached'].push([this]);
|
| + },
|
| + detached: function() {
|
| + this.jsInvocations['detached'].push([this]);
|
| + },
|
| + attributeChanged: function(name, type, value) {
|
| + this.jsInvocations['attributeChanged'].push([this, name, type, value]);
|
| + },
|
| + jsInvocations: {
|
| + 'created': [],
|
| + 'attached': [],
|
| + 'detached': [],
|
| + 'attributeChanged': []
|
| + }
|
| + }
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|