OLD | NEW |
| (Empty) |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | |
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_performance; | |
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 Polymer.onReady.then((_) { | |
20 var endInitTime = new DateTime.now(); | |
21 window.postMessage(endInitTime.millisecondsSinceEpoch, '*'); | |
22 }); | |
23 } | |
OLD | NEW |