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"> |
11 <script type='application/javascript' src="testing.js"></script> | 11 <script type='application/javascript' src="testing.js"></script> |
12 <style> .blue { color: #0000FF; } .red { color: #FF0000; } </style> | 12 <style> .blue { color: #0000FF; } .red { color: #FF0000; } </style> |
13 </head> | 13 </head> |
14 <body> | 14 <body> |
15 <!-- regression test for issue #174. --> | 15 <!-- regression test for issue #174. --> |
16 expect list with 2 bullets, one blue (with blue color style), one red (with | 16 expect list with 2 bullets, one blue (with blue color style), one red (with |
17 red color style): | 17 red color style): |
18 <ul> | 18 <ul> |
19 <template iterate="item in list"> | 19 <template iterate="item in list"> |
20 <li><span class={{item}}>{{item}}</span></li> | 20 <li><span class={{item}}>{{item}}</span></li> |
21 </template> | 21 </template> |
22 </ul> | 22 </ul> |
23 <script type="application/dart"> | 23 <script type="application/dart"> |
24 import 'dart:html'; | 24 import 'dart:html'; |
25 import 'package:web_components/watcher.dart'; | 25 import 'package:web_ui/watcher.dart'; |
26 import 'common.dart'; | 26 import 'common.dart'; |
27 var list = ["blue", "red"]; | 27 var list = ["blue", "red"]; |
28 main() { | 28 main() { |
29 window.setTimeout(() => window.postMessage('done', '*'), 0); | 29 window.setTimeout(() => window.postMessage('done', '*'), 0); |
30 } | 30 } |
31 </script> | 31 </script> |
32 </body> | 32 </body> |
33 </html> | 33 </html> |
OLD | NEW |