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"); |
-} |
-"""; |
-} |