Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: sky/tests/custom-elements/registration.sky

Issue 943013002: Implement Custom Elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: attributeChanged***d***Callback Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <import src="../resources/dump-as-text.sky" />
2 <script>
3 import "dart:sky";
4
5 class FooElement extends Element {
6 FooElement() : super("foo");
7
8 attachedCallback() {
9 print("PASS: FooElement attached.");
10 }
11
12 detachedCallback() {
13 }
14
15 attributeChangedCallbackCount(String name, String oldValue, String newValue) {
16 }
17 }
18
19 void main() {
20 document.registerElement("foo", FooElement);
21 }
22 </script>
23 <foo />
24 <script>
25 // This script element creates a microtask checkpoint and ensures that
26 // the <foo /> attached callback runs before the test ends.
27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698