| Index: sky/tests/framework/templates.sky
|
| diff --git a/sky/tests/framework/templates.sky b/sky/tests/framework/templates.sky
|
| index f34657159ac810eae5fc92765dddcf9728a1b3f4..aca46d80f4473f5b34c26c98c3c63e6c823d71b1 100644
|
| --- a/sky/tests/framework/templates.sky
|
| +++ b/sky/tests/framework/templates.sky
|
| @@ -131,7 +131,7 @@ describe("SkyElement", function() {
|
| });
|
| });
|
|
|
| - it("should connect event handlers", function() {
|
| + it("should connect template event handlers", function() {
|
| sandbox.appendChild(element);
|
| var inside = element.shadowRoot.getElementById("inside");
|
| inside.dispatchEvent(new CustomEvent("wrong-event"));
|
| @@ -141,6 +141,15 @@ describe("SkyElement", function() {
|
| assert.equal(element.lastEvent, event);
|
| });
|
|
|
| + it("should connect host event handlers", function() {
|
| + sandbox.appendChild(element);
|
| + element.dispatchEvent(new CustomEvent("wrong-event"));
|
| + assert.isNull(element.lastEvent);
|
| + var event = new CustomEvent("host-event");
|
| + element.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);
|
|
|