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

Side by Side Diff: example/todomvc/test/todomvc_mainpage2_test.html

Issue 22962005: Merge pull request #581 from kevmoo/polymer (Closed) Base URL: https://github.com/dart-lang/web-ui.git@polymer
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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 for details. All rights reserved. Use of this source code is governed by a 4 for details. All rights reserved. Use of this source code is governed by a
5 BSD-style license that can be found in the LICENSE file. 5 BSD-style license that can be found in the LICENSE file.
6 --> 6 -->
7 <html lang="en"> 7 <html lang="en">
8 <head> 8 <head>
9 <!-- 9 <!--
10 This test runs the TodoMVC app and evaluates that it renders correctly if a 10 This test runs the TodoMVC app and evaluates that it renders correctly if a
11 single item is present in the todo list. 11 single item is present in the todo list.
12 --> 12 -->
13 <meta charset="utf-8"> 13 <meta charset="utf-8">
14 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 14 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
15 <link rel="import" href="../web/app.html"> 15 <link rel="import" href="../web/app.html">
16 <link rel="stylesheet" href="../web/base.css"> 16 <link rel="stylesheet" href="../web/base.css">
17 <script src="packages/polymer/testing/testing.js"></script> 17 <script src="packages/polymer/testing/testing.js"></script>
18 <title>Dart • TodoMVC</title> 18 <title>Dart • TodoMVC</title>
19 </head><body> 19 </head><body>
20 <todo-app></todo-app> 20 <todo-app></todo-app>
21 <script type="application/dart"> 21 <script type="application/dart">
22 import 'dart:async';
23 import 'dart:html'; 22 import 'dart:html';
24 import 'package:mdv/mdv.dart' as mdv;
25 import 'package:observe/observe.dart';
26 import 'package:polymer/polymer.dart'; 23 import 'package:polymer/polymer.dart';
27 import '../web/model.dart'; 24 import '../web/model.dart';
28 25
29 main() { 26 main() {
30 mdv.initialize(); 27 appModel.todos.add(new Todo('hola'));
31 28 performMicrotaskCheckpoint();
32 Timer.run(() { 29 window.postMessage('done', '*');
33 appModel.todos.add(new Todo('hola'));
34 // TODO(sigmund): investigate why is not enough to do Timer.run
35 new Timer(new Duration(milliseconds: 200),
36 () => window.postMessage('done', '*'));
37 });
38 } 30 }
39 </script> 31 </script>
40 </body> 32 </body>
41 </html> 33 </html>
OLDNEW
« no previous file with comments | « example/todomvc/test/todomvc_listorder_test.html ('k') | example/todomvc/test/todomvc_mainpage_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698