mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
16 lines
526 B
Plaintext
16 lines
526 B
Plaintext
<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>
|