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/multiple-scripts.sky

Issue 938623005: Allow multiple dart <script> tags in .sky files (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: All works! 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/multiple-scripts.sky
diff --git a/sky/tests/modules/multiple-scripts.sky b/sky/tests/modules/multiple-scripts.sky
new file mode 100644
index 0000000000000000000000000000000000000000..ce74e6a245ce0fdb79a630a891dd7e4cc66484c3
--- /dev/null
+++ b/sky/tests/modules/multiple-scripts.sky
@@ -0,0 +1,19 @@
+<sky>
+<div id='test'>FAIL</div>
+<script>
+import "dart:sky" as sky;
+
+void main () {
+ sky.document.getElementById('test').textContent = 'PASS';
+}
+</script>
+<script>
+// Each script is a separate dart library.
+import "dart:sky" as sky;
+import "dart:sky.internals" as internals;
+
+void main () {
+ internals.notifyTestComplete(sky.document.getElementById('test').textContent);
+}
+</script>
+</sky>

Powered by Google App Engine
This is Rietveld 408576698