blob: d0099c40afd778a44e924c9c956b600cc0f57f2c [file] [log] [blame]
<html>
<link rel="import" href="../resources/dump-as-text.sky" />
<link rel="import" href="../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>