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

Unified Diff: sky/tests/framework/templates.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/framework/sky-element/sky-element.sky ('k') | sky/tests/framework/templates-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/framework/templates.sky
diff --git a/sky/tests/framework/templates.sky b/sky/tests/framework/templates.sky
index c0a9fa620891562c66072bf7201977e23436dc02..30e119fc41245eef95441152d2515a3c1a8106b2 100644
--- a/sky/tests/framework/templates.sky
+++ b/sky/tests/framework/templates.sky
@@ -49,6 +49,15 @@ describe("SkyElement templates", function() {
inside.dispatchEvent(event);
assert.equal(element.lastEvent, event);
});
+
+ it("should call shadowRootReady after creating the template instance", function() {
+ assert.equal(element.shadowRootReadyCount, 0);
+ sandbox.appendChild(element);
+ assert.equal(element.shadowRootReadyCount, 1);
+ element.remove();
+ sandbox.appendChild(element);
+ assert.equal(element.shadowRootReadyCount, 1);
+ });
});
</script>
</sky>
« no previous file with comments | « sky/framework/sky-element/sky-element.sky ('k') | sky/tests/framework/templates-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698