| <html> |
| <link rel="import" href="../resources/dump-as-text.html" /> |
| <link rel="import" href="../resources/chai.html" /> |
| <body> |
| This test ensures that the lifecycle callback of a parser-made element is visible in following script block. |
| <script> |
| var proto = Object.create(HTMLElement.prototype, { createdCallback: { value: function() { window.callbacksCalled = true; } } }); |
| document.registerElement("x-foo", { prototype: proto }); |
| </script> |
| <x-foo></x-foo> |
| <script> |
| assert.ok("window.callbacksCalled"); |
| </script> |
| </body> |
| </html> |