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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <sky>
2 <import src='resources/multiple-scripts-child.sky' as='child'></import>
3 <script>
4 import "../resources/third_party/unittest/unittest.dart";
5 import "../resources/unit.dart";
6
7 import "dart:sky";
8 import "dart:sky.internals";
9
10 void main () {
11 initUnit();
12
13 test('multiple libraries should combine using "as"', () {
14 expect(child.one, 'one');
15 expect(child.two, 'two');
16 });
17
18 test('multiple libraries should each init', () {
19 expect(child.oneInit, true);
20 expect(child.twoInit, true);
21 });
22
23 test('conflicting names should be ignored', () {
24 expect(() => child.conflict, throwsNoSuchMethodError);
25 });
26 }
27 </script>
28 </sky>
OLDNEW
« 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