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

Unified Diff: test/codegen/sunflower/sunflower.html

Issue 2249233002: fix #626, add AMD module format and make it default (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merged Created 4 years, 4 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 | « test/codegen/language/async_await_test.dart ('k') | test/codegen_expected/BenchmarkBase.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/sunflower/sunflower.html
diff --git a/test/codegen/sunflower/sunflower.html b/test/codegen/sunflower/sunflower.html
index bb284a1fbb67641c3dfa559b7dc9da0c429abfd2..921d999c477720ad0124369702709b1461b12dd3 100644
--- a/test/codegen/sunflower/sunflower.html
+++ b/test/codegen/sunflower/sunflower.html
@@ -31,10 +31,18 @@
<!--
<script type="application/dart" src="sunflower.dart"></script>
-->
- <script src="../../../lib/runtime/dart_library.js"></script>
- <script src="../../../lib/runtime/dart_sdk.js"></script>
- <script src="../expect/js/js.js"></script>
- <script src="../expect/sunflower/sunflower.js"></script>
- <script>dart_library.start('sunflower')</script>
+ <script src="../../../node_modules/requirejs/require.js"></script>
+ <script>
+ require.config({
+ paths: {
+ dart_sdk: "../../../lib/js/amd/dart_sdk",
+ js: "../../../gen/codegen_output/pkg/js",
+ }
+ });
+ require(["../../../gen/codegen_output/sunflower/sunflower"],
+ (sunflower) => {
+ sunflower.sunflower.main();
+ });
+ </script>
</body>
</html>
« no previous file with comments | « test/codegen/language/async_await_test.dart ('k') | test/codegen_expected/BenchmarkBase.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698