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

Side by Side Diff: example/todomvc/test/expected/todomvc_mainpage_test.html.txt

Issue 20863002: Introduce boot.js: this finally makes it possible to load and run Todomvc (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 4 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
OLDNEW
1 Content-Type: text/plain 1 Content-Type: text/plain
2 <html lang="en"><head><style>template { display: none; }</style> 2 <html lang="en"><head><style>template { display: none; }</style>
3 <!-- 3 <!--
4 This test runs the TodoMVC app and evaluates that it renders correctly. 4 This test runs the TodoMVC app and evaluates that it renders correctly.
5 --> 5 -->
6 <meta charset="utf-8"> 6 <meta charset="utf-8">
7 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 7 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
8 8
9 <link rel="stylesheet" href="../web/base.css"> 9 <link rel="stylesheet" href="../../../web/base.css">
10 <script src="../../packages/polymer/testing/testing.js"></script> 10 <script src="../../packages/polymer/testing/testing.js"></script>
11 <title>Dart • TodoMVC</title> 11 <title>Dart • TodoMVC</title>
12 <link rel="stylesheet" type="text/css" href="todomvc_mainpage_test.html.css"><st yle>template, 12 <style>template,
13 thead[template], 13 thead[template],
14 tbody[template], 14 tbody[template],
15 tfoot[template], 15 tfoot[template],
16 th[template], 16 th[template],
17 tr[template], 17 tr[template],
18 td[template], 18 td[template],
19 caption[template], 19 caption[template],
20 colgroup[template], 20 colgroup[template],
21 col[template], 21 col[template],
22 option[template] { 22 option[template] {
23 display: none; 23 display: none;
24 }</style></head><body><polymer-element name="todo-row" extends="li" attributes=" todo"> 24 }</style></head><body><polymer-element name="todo-row" extends="li" attributes=" todo">
25 <template> 25 <template>
26 26
27 <div class="todo-row_todo-item"> 27 <style>
28 <input class="todo-row_toggle" type="checkbox" checked="{{todo.done}}"> 28 .todo-item {
29 position: relative;
30 font-size: 24px;
31 border-bottom: 1px dotted #ccc;
32 }
33 .todo-item.editing {
34 border-bottom: none;
35 padding: 0;
36 }
37 .todo-item.completed [is=editable-label] {
38 color: #a9a9a9;
39 text-decoration: line-through;
40 }
41 .todo-item .toggle {
42 text-align: center;
43 width: 40px;
44 height: auto;
45 position: absolute;
46 top: 0;
47 bottom: 0;
48 margin: auto 0;
49 border: none;
50 -webkit-appearance: none;
51 -ms-appearance: none;
52 -o-appearance: none;
53 appearance: none;
54 }
55 .todo-item .toggle:after {
56 content: "✔";
57 line-height: 43px;
58 font-size: 20px;
59 color: #d9d9d9;
60 text-shadow: 0 -1px 0 #bfbfbf;
61 }
62 .todo-item .toggle:checked:after {
63 color: #85ada7;
64 text-shadow: 0 1px 0 #669991;
65 bottom: 1px;
66 position: relative;
67 }
68 .todo-item .destroy {
69 display: none;
70 position: absolute;
71 top: 0;
72 right: 10px;
73 bottom: 0;
74 width: 40px;
75 height: 40px;
76 margin: auto 0;
77 font-size: 22px;
78 color: #a88a8a;
79 -webkit-transition: all 0.2s;
80 -moz-transition: all 0.2s;
81 -ms-transition: all 0.2s;
82 -o-transition: all 0.2s;
83 transition: all 0.2s;
84 }
85 .todo-item .destroy:hover {
86 text-shadow: 0 0 1px #000, 0 0 10px rgba(199, 107, 107, 0.8);
87 -webkit-transform: scale(1.3);
88 -moz-transform: scale(1.3);
89 -ms-transform: scale(1.3);
90 -o-transform: scale(1.3);
91 transform: scale(1.3);
92 }
93 .todo-item .destroy:after {
94 content: "✖";
95 }
96 .todo-item:hover .destroy {
97 display: block;
98 }
99 .todo-item.editing .destroy, .todo-item.editing .toggle {
100 display: none;
101 }
102 .todo-item.editing:last-child {
103 margin-bottom: -1px;
104 } @media screen AND (-webkit-min-device-pixel-ratio:0) {
105 .todo-item .toggle {
106 background: none;
107 }
108 #todo-item .toggle {
109 height: 40px;
110 }
111 }
112 </style><div class="todo-item">
113 <input class="toggle" type="checkbox" checked="{{todo.done}}">
29 <div is="editable-label" id="label" value="{{todo.task}}"></div> 114 <div is="editable-label" id="label" value="{{todo.task}}"></div>
30 <button class="todo-row_destroy" on-click="removeTodo"></button> 115 <button class="destroy" on-click="removeTodo"></button>
31 </div> 116 </div>
32 </template> 117 </template>
33 118
34 </polymer-element> 119 </polymer-element>
35 <polymer-element name="todo-app"> 120 <polymer-element name="todo-app">
36 <template> 121 <template>
37 <section id="todoapp"> 122 <section id="todoapp">
38 <header id="header"> 123 <header id="header">
39 <h1 class="title">todos</h1> 124 <h1 class="title">todos</h1>
40 <form on-submit="addTodo"> 125 <form on-submit="addTodo">
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 <a href="https://github.com/dart-lang/web-ui/tree/master/example/todomvc"> view the source</a>. 226 <a href="https://github.com/dart-lang/web-ui/tree/master/example/todomvc"> view the source</a>.
142 </p> 227 </p>
143 <p>Part of <a href="http://todomvc.com">TodoMVC</a>.</p> 228 <p>Part of <a href="http://todomvc.com">TodoMVC</a>.</p>
144 </footer> 229 </footer>
145 </shadow-root></span> 230 </shadow-root></span>
146 231
147 232
148 233
149 <script type="text/javascript" src="packages/shadow_dom/shadow_dom.debug.js"></s cript> 234 <script type="text/javascript" src="packages/shadow_dom/shadow_dom.debug.js"></s cript>
150 <script type="application/dart" src="todomvc_mainpage_test.html_bootstrap.dart"> </script></body></html> 235 <script type="application/dart" src="todomvc_mainpage_test.html_bootstrap.dart"> </script></body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698