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

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

Issue 11884029: Upload new Dart binaries and re-enable unit tests for test scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change Futures.wait to Future.wait in two test script files. Created 7 years, 11 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') | tools/version.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 0adb7cd196848399e474e311441e8b2b8404d2e4..c458e527f7fa317ef05ee3f80ba58900c7ae31f1 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -592,7 +592,7 @@ class StandardTestSuite extends TestSuite {
void enqueueFile(String filename, FutureGroup group) {
if (!isTestFile(filename)) return;
- Path filePath = new Path.fromNative(filename);
+ Path filePath = new Path(filename);
// Only run the tests that match the pattern.
RegExp pattern = configuration['selectors'][suiteName];
@@ -910,14 +910,14 @@ class StandardTestSuite extends TestSuite {
content = getHtmlLayoutContents(scriptType, pathLib.relative(scriptPath,
from: pathLib.dirname(htmlPath)));
} else {
- final htmlLocation = new Path.fromNative(htmlPath);
+ final htmlLocation = new Path(htmlPath);
content = getHtmlContents(
filename,
dartDir.append('pkg/unittest/test_controller.js')
.relativeTo(htmlLocation),
dartDir.append('pkg/browser/lib/dart.js').relativeTo(htmlLocation),
scriptType,
- new Path.fromNative(scriptPath).relativeTo(htmlLocation));
+ new Path(scriptPath).relativeTo(htmlLocation));
}
htmlTest.writeStringSync(content);
htmlTest.closeSync();
@@ -1108,7 +1108,7 @@ class StandardTestSuite extends TestSuite {
var minified = configuration['minified'] ? '-minified' : '';
var dirName = "${configuration['compiler']}-${configuration['runtime']}"
"$checked$minified";
- Path generatedTestPath = new Path.fromNative(dartDir.toNativePath())
+ Path generatedTestPath = new Path(dartDir.toNativePath())
.append(buildDir)
.append('generated_tests')
.append(dirName)
@@ -1449,7 +1449,7 @@ class DartcCompilationTestSuite extends StandardTestSuite {
List<String> expectations)
: super(configuration,
suiteName,
- new Path.fromNative(directoryPath),
+ new Path(directoryPath),
expectations);
List<String> additionalOptions(Path filePath) {
@@ -1618,7 +1618,7 @@ class TestUtils {
static String testScriptPath = new Options().script;
static LastModifiedCache lastModifiedCache = new LastModifiedCache();
static Path currentWorkingDirectory =
- new Path.fromNative(new Directory.current().path);
+ new Path(new Directory.current().path);
/**
* Creates a directory using a [relativePath] to an existing
* [base] directory if that [relativePath] does not already exist.
@@ -1697,7 +1697,7 @@ class TestUtils {
static Path dartDir() {
File scriptFile = new File(testScriptPath);
- Path scriptPath = new Path.fromNative(scriptFile.fullPathSync());
+ Path scriptPath = new Path(scriptFile.fullPathSync());
return scriptPath.directoryPath.directoryPath;
}
« no previous file with comments | « tools/testing/dart/test_runner.dart ('k') | tools/version.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698