| <html> | |
| <import src="../resources/dump-as-text.sky" /> | |
| <import src="../resources/chai.sky" /> | |
| <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> |