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

Unified Diff: sky/tests/resources/test-element.sky

Issue 817053002: Add shadowRootReady callback for SkyElement. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rename Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/tests/framework/templates-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/resources/test-element.sky
diff --git a/sky/tests/resources/test-element.sky b/sky/tests/resources/test-element.sky
index c852cd11f80ce5f16036333449a9bdcd3fb20c40..193b9e2067404c8b62c2c777e4e982c977693a01 100644
--- a/sky/tests/resources/test-element.sky
+++ b/sky/tests/resources/test-element.sky
@@ -14,10 +14,14 @@ module.exports = class extends SkyElement {
created() {
this.lastEvent = null;
this.value = 10;
+ this.shadowRootReadyCount = 0;
}
handleEvent(event) {
this.lastEvent = event;
}
+ shadowRootReady() {
+ this.shadowRootReadyCount++;
+ }
}.register();
</script>
</sky-element>
« no previous file with comments | « sky/tests/framework/templates-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698