| OLD | NEW |
| 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 <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 22 matching lines...) Expand all Loading... |
| 33 [ | 33 [ |
| 34 {{j}} | 34 {{j}} |
| 35 <template iterate="k in list3" indentation="preserve">( | 35 <template iterate="k in list3" indentation="preserve">( |
| 36 {{k}}) | 36 {{k}}) |
| 37 </template> | 37 </template> |
| 38 ] | 38 ] |
| 39 </template> | 39 </template> |
| 40 </template> | 40 </template> |
| 41 </div> | 41 </div> |
| 42 <script type="application/dart"> | 42 <script type="application/dart"> |
| 43 import 'dart:async'; |
| 43 import 'dart:html'; | 44 import 'dart:html'; |
| 44 import 'package:unittest/unittest.dart'; | 45 import 'package:unittest/unittest.dart'; |
| 45 var list1 = ['a', 'b', 'c']; | 46 var list1 = ['a', 'b', 'c']; |
| 46 var list2 = ['_', '_']; | 47 var list2 = ['_', '_']; |
| 47 var list3 = ['-', '-']; | 48 var list3 = ['-', '-']; |
| 48 | 49 |
| 49 main() { | 50 main() { |
| 50 window.setImmediate(() { | 51 Timer.run(() { |
| 51 var t1 = query('#t1').text; | 52 var t1 = query('#t1').text; |
| 52 var t2 = query('#t2').text; | 53 var t2 = query('#t2').text; |
| 53 var t3 = query('#t3').text; | 54 var t3 = query('#t3').text; |
| 54 expect(t1, equalsIgnoringWhitespace('a b c')); | 55 expect(t1, equalsIgnoringWhitespace('a b c')); |
| 55 expect(t2, equalsIgnoringWhitespace('abc')); | 56 expect(t2, equalsIgnoringWhitespace('abc')); |
| 56 expect(t3, equalsIgnoringWhitespace( | 57 expect(t3, equalsIgnoringWhitespace( |
| 57 'a [_( -) ( -) ][_( -) ( -) ] b [_( -) ( -) ][_( -) ( -) ] ' | 58 'a [_( -) ( -) ][_( -) ( -) ] b [_( -) ( -) ][_( -) ( -) ] ' |
| 58 'c [_( -) ( -) ][_( -) ( -) ]')); | 59 'c [_( -) ( -) ][_( -) ( -) ]')); |
| 59 window.postMessage('done', '*'); | 60 window.postMessage('done', '*'); |
| 60 }); | 61 }); |
| 61 } | 62 } |
| 62 </script> | 63 </script> |
| 63 </body> | 64 </body> |
| 64 </html> | 65 </html> |
| 65 | 66 |
| OLD | NEW |