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

Unified Diff: tools/testing/dart/test_suite.dart

Issue 10351011: Change Platform members to getters instead of methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding new test binaries Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/testing/dart/test_runner.dart ('k') | utils/compiler/build_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_suite.dart
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart
index b1b726af804abff2dffcaa3380f6cc13b0d88d26..2cb83231b5a3dd090af8ae79baace8001ed390bf 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -595,7 +595,7 @@ class StandardTestSuite implements TestSuite {
// Create the HTML file for the test.
RandomAccessFile htmlTest = new File(htmlPath).openSync(FileMode.WRITE);
String filePrefix = '';
- if (Platform.operatingSystem() == 'windows') {
+ if (Platform.operatingSystem == 'windows') {
// Firefox on Windows does not like absolute file path names that start
// with 'C:' adding 'file:///' solves the problem.
filePrefix = 'file:///';
@@ -816,7 +816,7 @@ class StandardTestSuite implements TestSuite {
if (configuration['drt'] != '') {
return configuration['drt'];
}
- if (Platform.operatingSystem() == 'macos') {
+ if (Platform.operatingSystem == 'macos') {
return '$dartDir/client/tests/drt/DumpRenderTree.app/Contents/'
'MacOS/DumpRenderTree';
}
@@ -827,7 +827,7 @@ class StandardTestSuite implements TestSuite {
if (configuration['dartium'] != '') {
return configuration['dartium'];
}
- if (Platform.operatingSystem() == 'macos') {
+ if (Platform.operatingSystem == 'macos') {
return '$dartDir/client/tests/dartium/Chromium.app/Contents/'
'MacOS/Chromium';
}
@@ -1220,7 +1220,7 @@ class TestUtils {
}
static String executableSuffix(String executable) {
- if (Platform.operatingSystem() == 'windows') {
+ if (Platform.operatingSystem == 'windows') {
if (executable == 'd8' || executable == 'vm' || executable == 'none') {
return '.exe';
} else {
« no previous file with comments | « tools/testing/dart/test_runner.dart ('k') | utils/compiler/build_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698