mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This CL is just a search-and-replace. R=esprehn@chromium.org Review URL: https://codereview.chromium.org/694423002
16 lines
502 B
Plaintext
16 lines
502 B
Plaintext
<html>
|
|
<import src="../resources/dump-as-text.sky" />
|
|
<import src="../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>
|