blob: f215da93f87bd30c41a66693bfd39e772c12e62d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
<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 });
</script>
</head>
<body>
<x-foo></x-foo>
<script>
shouldBeTrue("window.callbacksCalled");
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>