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

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

Issue 11186009: Making unit test HTML files contain relative paths. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 fc10fb4681bd01c2fa39522df3bfc69449bc40da..0965801832982f6ec6eff969e2f8d615728acdb3 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -662,12 +662,14 @@ class StandardTestSuite implements TestSuite {
expectedOutput = txtPath;
content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath');
} else {
+ final htmlLocation = new Path.fromNative(htmlPath);
content = getHtmlContents(
filename,
- '$filePrefix${dartDir.append("pkg/unittest/test_controller.js")}',
- '$filePrefix${dartDir.append("client/dart.js")}',
+ dartDir.append('pkg/unittest/test_controller.js')
+ .relativeTo(htmlLocation),
+ dartDir.append('client/dart.js').relativeTo(htmlLocation),
scriptType,
- '$filePrefix$scriptPath');
+ new Path.fromNative(scriptPath).relativeTo(htmlLocation));
}
htmlTest.writeStringSync(content);
htmlTest.closeSync();
« 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