| OLD | NEW |
| (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> | |
| OLD | NEW |