OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 Copyright (c) 2012, 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 <meta charset="utf-8"> | 9 <meta charset="utf-8"> |
10 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | 10 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
(...skipping 25 matching lines...) Expand all Loading... |
36 <script type="application/dart"> | 36 <script type="application/dart"> |
37 import 'dart:html'; | 37 import 'dart:html'; |
38 import 'package:unittest/unittest.dart'; | 38 import 'package:unittest/unittest.dart'; |
39 import 'package:web_components/web_components.dart'; | 39 import 'package:web_components/web_components.dart'; |
40 | 40 |
41 var data = ['hello', 'world']; | 41 var data = ['hello', 'world']; |
42 main() { | 42 main() { |
43 window.setTimeout(() { | 43 window.setTimeout(() { |
44 var actual = query('#actual'); | 44 var actual = query('#actual'); |
45 var greet = query('#greet'); | 45 var greet = query('#greet'); |
46 expect(actual.innerHTML, 'hello world'); | 46 expect(actual.innerHtml, 'hello world'); |
47 greet.xtag.changeStuff(); | 47 greet.xtag.changeStuff(); |
48 dispatch(); | 48 dispatch(); |
49 expect(actual.innerHTML, contains('Yo dawg I heard')); | 49 expect(actual.innerHtml, contains('Yo dawg I heard')); |
50 window.postMessage('done', '*'); | 50 window.postMessage('done', '*'); |
51 }, 0); | 51 }, 0); |
52 } | 52 } |
53 </script> | 53 </script> |
54 </body> | 54 </body> |
55 </html> | 55 </html> |
OLD | NEW |