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

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

Issue 977383002: Fix new HTML test type when using dart2dart compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | no next file » | 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 0689ad78a3273a0888222e1e5b20156b15ceb731..ae57aee054d9dbf55021ff14d7d8b4dad141240f 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -1416,9 +1416,13 @@ class StandardTestSuite extends TestSuite {
new File.fromUri(copiedScript).writeAsStringSync(
new File.fromUri(script).readAsStringSync());
} else {
+ var destination = copiedScript.toFilePath();
+ if (compileToJS) {
+ destination = destination.replaceFirst(dartExtension, '.js');
+ }
commands.add(_compileCommand(
script.toFilePath(),
- copiedScript.toFilePath().replaceFirst(dartExtension, '.js'),
+ destination,
compiler,
tempDir,
info.optionsFromFile));
« 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