Index: sky/tests/resources/test-element.sky |
diff --git a/sky/tests/resources/test-element.sky b/sky/tests/resources/test-element.sky |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c852cd11f80ce5f16036333449a9bdcd3fb20c40 |
--- /dev/null |
+++ b/sky/tests/resources/test-element.sky |
@@ -0,0 +1,23 @@ |
+<!-- |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+--> |
+<import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement" /> |
+ |
+<sky-element name="test-element"> |
+<template> |
+ <div id="inside" on-test-event="handleEvent" attr="{{ value }}">{{ value }}</div> |
+</template> |
+<script> |
+module.exports = class extends SkyElement { |
+ created() { |
+ this.lastEvent = null; |
+ this.value = 10; |
+ } |
+ handleEvent(event) { |
+ this.lastEvent = event; |
+ } |
+}.register(); |
+</script> |
+</sky-element> |