blob: c7f7af58ad86cabbf934a9e6901b38ffd8d0f85b [file] [log] [blame]
<import src="../resources/dump-as-text.sky" />
<script>
import "dart:sky";
class FooElement extends Element {
final String tagName = "foo";
attachedCallback() {
print("PASS: FooElement attached.");
}
detachedCallback() {
}
attributeChangedCallbackCount(String name, String oldValue, String newValue) {
}
}
void main() {
document.registerElement("foo", FooElement);
}
</script>
<foo />
<script>
// This script element creates a microtask checkpoint and ensures that
// the <foo /> attached callback runs before the test ends.
</script>