Index: tests/compiler/dart2js/type_promotion_test.dart |
diff --git a/tests/compiler/dart2js/type_promotion_test.dart b/tests/compiler/dart2js/type_promotion_test.dart |
index b7b7cf087f96eaebb0a61b299ea7729ba3bad0c6..f94b7c2fd648d0114e7a1fa754ec2d47dca3f35c 100644 |
--- a/tests/compiler/dart2js/type_promotion_test.dart |
+++ b/tests/compiler/dart2js/type_promotion_test.dart |
@@ -28,8 +28,8 @@ const List<String> TESTS = const [ |
]; |
void main() { |
- bool isWindows = (Platform.operatingSystem == 'windows'); |
- Uri script = currentDirectory.resolve(nativeToUriPath(Platform.script)); |
+ bool isWindows = Platform.isWindows; |
+ Uri script = currentDirectory.resolveUri(Platform.script); |
bool warningsMismatch = false; |
Future.forEach(TESTS, (String test) { |
Uri uri = script.resolve('../../$test'); |