blob: 9b5beb6748a2853a1a903d11836b6ebac6eeeca1 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../js/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="../../js/resources/js-test-post.js"></script>
</body>
</html>