| 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; | 7 import "dart:convert" show LineSplitter, UTF8; |
| 8 import "dart:core"; | 8 import "dart:core"; |
| 9 import "dart:io"; | 9 import "dart:io"; |
| 10 | 10 |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 } | 457 } |
| 458 | 458 |
| 459 String toString() => "Dartium"; | 459 String toString() => "Dartium"; |
| 460 } | 460 } |
| 461 | 461 |
| 462 class IE extends Browser { | 462 class IE extends Browser { |
| 463 Future<String> getVersion() { | 463 Future<String> getVersion() { |
| 464 var args = ["query", | 464 var args = ["query", |
| 465 "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Internet Explorer", | 465 "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Internet Explorer", |
| 466 "/v", | 466 "/v", |
| 467 "version"]; | 467 "svcVersion"]; |
| 468 return Process.run("reg", args).then((result) { | 468 return Process.run("reg", args).then((result) { |
| 469 if (result.exitCode == 0) { | 469 if (result.exitCode == 0) { |
| 470 // The string we get back looks like this: | 470 // The string we get back looks like this: |
| 471 // HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer | 471 // HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer |
| 472 // version REG_SZ 9.0.8112.16421 | 472 // version REG_SZ 9.0.8112.16421 |
| 473 var findString = "REG_SZ"; | 473 var findString = "REG_SZ"; |
| 474 var index = result.stdout.indexOf(findString); | 474 var index = result.stdout.indexOf(findString); |
| 475 if (index > 0) { | 475 if (index > 0) { |
| 476 return result.stdout.substring(index + findString.length).trim(); | 476 return result.stdout.substring(index + findString.length).trim(); |
| 477 } | 477 } |
| (...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1453 Dart test driver, number of tests: <div id="number"></div><br> | 1453 Dart test driver, number of tests: <div id="number"></div><br> |
| 1454 Currently executing: <div id="currently_executing"></div><br> | 1454 Currently executing: <div id="currently_executing"></div><br> |
| 1455 Unhandled error: <div id="unhandled_error"></div> | 1455 Unhandled error: <div id="unhandled_error"></div> |
| 1456 <iframe id="embedded_iframe"></iframe> | 1456 <iframe id="embedded_iframe"></iframe> |
| 1457 </body> | 1457 </body> |
| 1458 </html> | 1458 </html> |
| 1459 """; | 1459 """; |
| 1460 return driverContent; | 1460 return driverContent; |
| 1461 } | 1461 } |
| 1462 } | 1462 } |
| OLD | NEW |