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

Unified Diff: tests/standalone/io/skipping_dart2js_compilations_test.dart

Issue 2915843003: Simplify test_suite.dart. (Closed)
Patch Set: Fix path in test. Created 3 years, 6 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 | « no previous file | tests/standalone/io/test_runner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/skipping_dart2js_compilations_test.dart
diff --git a/tests/standalone/io/skipping_dart2js_compilations_test.dart b/tests/standalone/io/skipping_dart2js_compilations_test.dart
index 992f4280f7aeb982a7bfe86a9eb46b9efa0ed2e5..3f22a8461d3fffe0c6be61cf0cd4c1b9b52922e5 100644
--- a/tests/standalone/io/skipping_dart2js_compilations_test.dart
+++ b/tests/standalone/io/skipping_dart2js_compilations_test.dart
@@ -22,7 +22,6 @@ import 'dart:async';
import 'dart:io';
import '../../../tools/testing/dart/options.dart' as options;
import '../../../tools/testing/dart/path.dart';
-import '../../../tools/testing/dart/test_suite.dart' as suite;
import '../../../tools/testing/dart/test_runner.dart' as runner;
import '../../../tools/testing/dart/utils.dart';
@@ -58,9 +57,8 @@ class FileUtils {
}
if (createJsDeps) {
testJsDeps = _createFile(testJsDepsFilePath);
- var path = suite.TestUtils
- .absolutePath(new Path(tempDir.path))
- .append("test.dart");
+ var path =
+ TestUtils.absolutePath(new Path(tempDir.path)).append("test.dart");
_writeToFile(testJsDeps, "file://$path");
}
}
@@ -81,27 +79,25 @@ class FileUtils {
}
Path get scriptOutputPath {
- return suite.TestUtils.absolutePath(
+ return TestUtils.absolutePath(
new Path(tempDir.path).append('created_if_command_did_run.txt'));
}
Path get testDartFilePath {
- return suite.TestUtils
- .absolutePath(new Path(tempDir.path).append('test.dart'));
+ return TestUtils.absolutePath(new Path(tempDir.path).append('test.dart'));
}
Path get testJsFilePath {
- return suite.TestUtils
- .absolutePath(new Path(tempDir.path).append('test.js'));
+ return TestUtils.absolutePath(new Path(tempDir.path).append('test.js'));
}
Path get testJsDepsFilePath {
- return suite.TestUtils
+ return TestUtils
.absolutePath(new Path(tempDir.path).append('test.js.deps'));
}
Path get testSnapshotFilePath {
- return suite.TestUtils
+ return TestUtils
.absolutePath(new Path(tempDir.path).append('test_dart2js.snapshot'));
}
@@ -169,7 +165,7 @@ runner.Command makeCompilationCommand(String testName, FileUtils fileUtils) {
void main() {
// This script is in [sdk]/tests/standalone/io.
- suite.TestUtils.setDartDirUri(Platform.script.resolve('../../..'));
+ TestUtils.setDartDirUri(Platform.script.resolve('../../..'));
var fs_noTestJs = new FileUtils(
createJs: false,
« no previous file with comments | « no previous file | tests/standalone/io/test_runner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698