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

Side by Side Diff: sky/tests/framework/binding.sky

Issue 999873002: Move sky-*.sky into framework/elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: One missing Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « sky/framework/sky-toolbar.sky ('k') | sky/tests/framework/observe.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <import src="/sky/framework/dom-serializer.sky" as="DomSerializer" /> 3 <import src="/sky/framework/dom-serializer.sky" as="DomSerializer" />
4 <import src="/sky/framework/sky-element/sky-binder.sky" as="binder" /> 4 <import src="/sky/framework/elements/sky-element/sky-binder.sky" as="binder" />
5 5
6 <div id="host"></div> 6 <div id="host"></div>
7 7
8 <template id="template"> 8 <template id="template">
9 <style> 9 <style>
10 .blue { border: 1px solid blue; } 10 .blue { border: 1px solid blue; }
11 .orange { border: 1px solid orange; } 11 .orange { border: 1px solid orange; }
12 .repeat { margin: 8px; } 12 .repeat { margin: 8px; }
13 </style> 13 </style>
14 <span style="color: {{ red }}">{{ value }}</span> 14 <span style="color: {{ red }}">{{ value }}</span>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 }; 57 };
58 var instance = binder.createInstance(template, window.model); 58 var instance = binder.createInstance(template, window.model);
59 host.ensureShadowRoot().appendChild(instance.fragment); 59 host.ensureShadowRoot().appendChild(instance.fragment);
60 var target = host.shadowRoot.getElementById("target"); 60 var target = host.shadowRoot.getElementById("target");
61 target.dispatchEvent(new CustomEvent("test-event", { 61 target.dispatchEvent(new CustomEvent("test-event", {
62 bubbles: true, 62 bubbles: true,
63 })); 63 }));
64 internals.notifyTestComplete(DomSerializer.serializeNode(host.shadowRoot)); 64 internals.notifyTestComplete(DomSerializer.serializeNode(host.shadowRoot));
65 }); 65 });
66 </script> 66 </script>
OLDNEW
« no previous file with comments | « sky/framework/sky-toolbar.sky ('k') | sky/tests/framework/observe.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698