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

Unified Diff: sky/tests/modules/multiple-scripts-import.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/multiple-scripts-import.sky
diff --git a/sky/tests/modules/multiple-scripts-import.sky b/sky/tests/modules/multiple-scripts-import.sky
new file mode 100644
index 0000000000000000000000000000000000000000..da450d7adf750086d396fe2b3054820829956598
--- /dev/null
+++ b/sky/tests/modules/multiple-scripts-import.sky
@@ -0,0 +1,28 @@
+<sky>
+<import src='resources/multiple-scripts-child.sky' as='child'></import>
+<script>
+import "../resources/third_party/unittest/unittest.dart";
+import "../resources/unit.dart";
+
+import "dart:sky";
+import "dart:sky.internals";
+
+void main () {
+ initUnit();
+
+ test('multiple libraries should combine using "as"', () {
+ expect(child.one, 'one');
+ expect(child.two, 'two');
+ });
+
+ test('multiple libraries should each init', () {
+ expect(child.oneInit, true);
+ expect(child.twoInit, true);
+ });
+
+ test('conflicting names should be ignored', () {
+ expect(() => child.conflict, throwsNoSuchMethodError);
+ });
+}
+</script>
+</sky>
« no previous file with comments | « sky/tests/modules/multiple-scripts-expected.txt ('k') | sky/tests/modules/multiple-scripts-import-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698