blob: 76f04d3ab80a92dae6349547651efcfde02d495f [file] [log] [blame]
<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>