| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <body> | 2 <body> |
| 3 | 3 |
| 4 <div id="child-div"></div> | 4 <div id="child-div"></div> |
| 5 | 5 |
| 6 <script type="application/dart"> | 6 <script type="application/dart"> |
| 7 import 'dart:html'; | 7 import 'dart:html'; |
| 8 import 'dart:js'; | 8 import 'dart:js'; |
| 9 | 9 |
| 10 var childWindow; | 10 var childWindow; |
| 11 var childDocument; | 11 var childDocument; |
| 12 var childHistory; | 12 var childHistory; |
| 13 var childLocation; | 13 var childLocation; |
| 14 | 14 |
| 15 var parentWindow; | 15 var parentWindow; |
| 16 var parentDocument; | 16 var parentDocument; |
| 17 var parentHistory; | 17 var parentHistory; |
| 18 var parentLocation; | 18 var parentLocation; |
| 19 | 19 |
| 20 void main() { | 20 void main() { |
| 21 print("Child"); | 21 print("Child"); |
| 22 | 22 |
| 23 childWindow = window; | 23 childWindow = window; |
| 24 childDocument = window.document; | 24 childDocument = window.document; |
| 25 childHistory = window.history; | 25 childHistory = window.history; |
| 26 childLocation = window.location; | 26 childLocation = window.location; |
| 27 | 27 |
| 28 parentWindow = context['parent']; | 28 parentWindow = context['parent']; |
| 29 parentDocument = context['parent']['document']; | 29 parentDocument = parentWindow.document; |
| 30 parentHistory = context['parent']['history']; | 30 parentHistory = parentWindow.history; |
| 31 parentLocation = context['parent']['location']; | 31 parentLocation = parentWindow.location; |
| 32 } | 32 } |
| 33 | 33 |
| 34 </script> | 34 </script> |
| 35 | 35 |
| 36 </body> | 36 </body> |
| 37 </html> | 37 </html> |
| OLD | NEW |