| 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 12 matching lines...) Expand all Loading... |
| 23 window.setTimeout(() { | 23 window.setTimeout(() { |
| 24 expect(document.query('#test'), isNull); | 24 expect(document.query('#test'), isNull); |
| 25 var placeholder = document.body.query('div#__e-1'); | 25 var placeholder = document.body.query('div#__e-1'); |
| 26 expect(placeholder, isNotNull); | 26 expect(placeholder, isNotNull); |
| 27 expect(placeholder.style.display, equals('none')); | 27 expect(placeholder.style.display, equals('none')); |
| 28 x = 3; | 28 x = 3; |
| 29 dispatch(); | 29 dispatch(); |
| 30 window.setTimeout(() { | 30 window.setTimeout(() { |
| 31 var div = document.query('#test'); | 31 var div = document.query('#test'); |
| 32 expect(div, isNotNull); | 32 expect(div, isNotNull); |
| 33 expect(div.innerHTML, equals('3')); | 33 expect(div.innerHtml, equals('3')); |
| 34 expect(div.previousNode, same(placeholder)); | 34 expect(div.previousNode, same(placeholder)); |
| 35 window.setTimeout(() => window.postMessage('done', '*'), 0); | 35 window.setTimeout(() => window.postMessage('done', '*'), 0); |
| 36 }, 0); | 36 }, 0); |
| 37 }, 0); | 37 }, 0); |
| 38 } | 38 } |
| 39 </script> | 39 </script> |
| 40 </body> | 40 </body> |
| 41 </html> | 41 </html> |
| OLD | NEW |