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

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

Issue 2981223002: Remove Dartium support from test.dart. (Closed)
Patch Set: Remove "dartium" from status files. Created 3 years, 5 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/browser_controller.dart ('k') | tools/testing/dart/co19_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/browser_test.dart
diff --git a/tools/testing/dart/browser_test.dart b/tools/testing/dart/browser_test.dart
index b58a1ba1faa1b4e1aa80155bab980d46d3c0d579..b1a244badebdc64f2d60ab4b5e37f9ed5e219cb3 100644
--- a/tools/testing/dart/browser_test.dart
+++ b/tools/testing/dart/browser_test.dart
@@ -4,7 +4,7 @@
import 'utils.dart';
-String getHtmlContents(String title, String scriptType, String scriptPath) {
+String dart2jsHtml(String title, String scriptPath) {
return """
<!DOCTYPE html>
<html>
@@ -24,7 +24,7 @@ String getHtmlContents(String title, String scriptType, String scriptPath) {
<script type="text/javascript"
src="/root_dart/tools/testing/dart/test_controller.js">
</script>
- <script type="$scriptType" src="$scriptPath"
+ <script type="text/javascript" src="$scriptPath"
onerror="scriptTagOnErrorCallback(null)"
defer>
</script>
@@ -101,15 +101,3 @@ requirejs(["$testName", "dart_sdk", "async_helper"],
</html>
""";
}
-
-String dartTestWrapper(String libraryPathComponent) {
- return """
-import '$libraryPathComponent' as test;
-
-main() {
- print("dart-calling-main");
- test.main();
- print("dart-main-done");
-}
-""";
-}
« no previous file with comments | « tools/testing/dart/browser_controller.dart ('k') | tools/testing/dart/co19_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698