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

Unified Diff: sky/tests/modules/dart-imports-loader-interaction.sky

Issue 938623005: Allow multiple dart <script> tags in .sky files (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Update test results 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
Index: sky/tests/modules/dart-imports-loader-interaction.sky
diff --git a/sky/tests/modules/dart-imports-loader-interaction.sky b/sky/tests/modules/dart-imports-loader-interaction.sky
new file mode 100644
index 0000000000000000000000000000000000000000..cbcdcee3ed6bf30fe870be4f38a6c30181678ee6
--- /dev/null
+++ b/sky/tests/modules/dart-imports-loader-interaction.sky
@@ -0,0 +1,12 @@
+<import src='resources/with-dart-import.sky' as='test'></import>
+<script>
+import "dart:sky.internals" as internals;
+
+void main() {
+ // The HTMLImportsLoader used to think with-dart-import load completed
+ // and did not know about with-dart-import having dart import statements
+ // which had made the load/execution of the script asynchronous.
+ String result = test.didInit ? "PASS" : "FAIL";
+ internals.notifyTestComplete(result);
+}
+</script>
« no previous file with comments | « sky/engine/core/script/dart_loader.cc ('k') | sky/tests/modules/dart-imports-loader-interaction-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698