| <script src="../../../resources/js-test-pre.js"></script> |
| description("This test ensures that the lifecycle callback of a parser-made element is visible in following script block.") |
| document.register = document.register || document.webkitRegister; |
| proto = Object.create(HTMLElement.prototype, { readyCallback: { value: function() { window.callbacksCalled = true; } } }); |
| document.register("x-foo", { prototype: proto }); |
| shouldBeTrue("window.callbacksCalled"); |
| <script src="../../../resources/js-test-post.js"></script> |