OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
Jennifer Messerly
2014/03/19 19:27:57
not a big deal but could be 2014 :)
Emily Fortuna
2014/03/24 19:45:56
Done.
| |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 library todomvc.test.markdone_test; | |
Jennifer Messerly
2014/03/19 19:27:57
change library name?
Emily Fortuna
2014/03/24 19:45:56
Done.
| |
6 | |
7 import 'dart:async'; | |
8 import 'dart:html'; | |
9 import 'dart:js' as js; | |
10 import 'package:polymer/polymer.dart'; | |
11 import 'package:web_components/polyfill.dart'; | |
12 import 'elements/td_model.dart'; | |
13 | |
14 /** | |
15 * This test determines how fast the TodoMVC app has loaded. | |
16 */ | |
17 main() { | |
18 initPolymer(); | |
19 customElementsReady.then((_) { | |
20 var endInitTime = new DateTime.now(); | |
21 window.postMessage(endInitTime.millisecondsSinceEpoch, '*'); | |
22 }); | |
23 | |
24 // Failover case; sometimes in the Dartium version, customElementsReady has | |
25 // already fired before Dart starts to run. allows the test to complete for | |
26 // that state. | |
27 Polymer.onReady.then((_) { | |
Jennifer Messerly
2014/03/19 19:27:57
fyi -- I think this event is always more reliable
Emily Fortuna
2014/03/24 19:45:56
Done.
| |
28 var endInitTime = new DateTime.now(); | |
29 window.postMessage(endInitTime.millisecondsSinceEpoch, '*'); | |
30 }); | |
31 } | |
OLD | NEW |