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

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

Issue 1177843010: Delete sky-element framework (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/sdk/lib/framework/elements/sky-toolbar.sky ('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
deleted file mode 100644
index 769f3b9e1888566ae437142181fe7c204f36cbbd..0000000000000000000000000000000000000000
--- a/sky/tests/resources/test-element.sky
+++ /dev/null
@@ -1,49 +0,0 @@
-<!--
-// 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/elements/sky-checkbox.sky" />
-<import src="/sky/framework/elements/sky-element/sky-element.sky" as="SkyElement" />
-
-<sky-element
- name="test-element"
- attributes="size:number, checked:boolean,name:string"
- on-host-event="handleEvent">
-<template>
- <div id="inside" on-test-event="handleEvent" lang="{{ value }}">{{ value }}</div>
- <sky-checkbox id="checkbox" checked="{{ checked }}" />
-</template>
-<script>
-module.exports = class extends SkyElement {
- created() {
- this.lastEvent = null;
- this.value = 10;
- this.shadowRootReadyCount = 0;
- this.changes = [];
- }
- handleEvent(event) {
- this.lastEvent = event;
- }
- shadowRootReady() {
- this.shadowRootReadyCount++;
- }
- sizeChanged(oldValue, newValue) {
- this.recordAttributeChange('size', oldValue, newValue);
- }
- checkedChanged(oldValue, newValue) {
- this.recordAttributeChange('checked', oldValue, newValue);
- }
- nameChanged(oldValue, newValue) {
- this.recordAttributeChange('name', oldValue, newValue);
- }
- recordAttributeChange(name, oldValue, newValue) {
- this.changes.push({
- name: name,
- newValue: newValue,
- oldValue: oldValue,
- });
- }
-}.register();
-</script>
-</sky-element>
« no previous file with comments | « sky/sdk/lib/framework/elements/sky-toolbar.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698