Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: tools/testing/dart/browser_controller.dart

Issue 210783004: Get the correct version of ie from the reg database (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698