| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 library browser; | 4 library browser; |
| 5 | 5 |
| 6 import "dart:async"; | 6 import "dart:async"; |
| 7 import "dart:convert" show LineSplitter, UTF8, JSON; | 7 import "dart:convert" show LineSplitter, UTF8, JSON; |
| 8 import "dart:core"; | 8 import "dart:core"; |
| 9 import "dart:io"; | 9 import "dart:io"; |
| 10 | 10 |
| 11 import 'android.dart'; | 11 import 'android.dart'; |
| 12 import 'http_server.dart'; | 12 import 'http_server.dart'; |
| 13 import 'path.dart'; |
| 13 import 'utils.dart'; | 14 import 'utils.dart'; |
| 14 | 15 |
| 15 class BrowserOutput { | 16 class BrowserOutput { |
| 16 final StringBuffer stdout = new StringBuffer(); | 17 final StringBuffer stdout = new StringBuffer(); |
| 17 final StringBuffer stderr = new StringBuffer(); | 18 final StringBuffer stderr = new StringBuffer(); |
| 18 final StringBuffer eventLog = new StringBuffer(); | 19 final StringBuffer eventLog = new StringBuffer(); |
| 19 } | 20 } |
| 20 | 21 |
| 21 /** Class describing the interface for communicating with browsers. */ | 22 /** Class describing the interface for communicating with browsers. */ |
| 22 abstract class Browser { | 23 abstract class Browser { |
| (...skipping 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1784 </div> | 1785 </div> |
| 1785 <div id="embedded_iframe_div" class="test box"> | 1786 <div id="embedded_iframe_div" class="test box"> |
| 1786 <iframe style="width:100%;height:100%;" id="embedded_iframe"></iframe> | 1787 <iframe style="width:100%;height:100%;" id="embedded_iframe"></iframe> |
| 1787 </div> | 1788 </div> |
| 1788 </body> | 1789 </body> |
| 1789 </html> | 1790 </html> |
| 1790 """; | 1791 """; |
| 1791 return driverContent; | 1792 return driverContent; |
| 1792 } | 1793 } |
| 1793 } | 1794 } |
| OLD | NEW |