mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This CL ports sky-scrollable to the new sky-element. R=esprehn@chromium.org Review URL: https://codereview.chromium.org/950603002
28 lines
560 B
Plaintext
28 lines
560 B
Plaintext
<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>
|