OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library polymer.test.build.import_inliner_test; | 5 library polymer.test.build.import_inliner_test; |
6 | 6 |
7 import 'dart:convert' show JSON; | 7 import 'dart:convert' show JSON; |
8 import 'package:polymer/src/build/common.dart'; | 8 import 'package:polymer/src/build/common.dart'; |
9 import 'package:polymer/src/build/import_inliner.dart'; | 9 import 'package:polymer/src/build/import_inliner.dart'; |
10 import 'package:unittest/compact_vm_config.dart'; | 10 import 'package:unittest/compact_vm_config.dart'; |
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 '</script>', | 836 '</script>', |
837 'b|lib/bar/bar.js': | 837 'b|lib/bar/bar.js': |
838 'console.log("here");', | 838 'console.log("here");', |
839 }, { | 839 }, { |
840 'a|web/test/test.html': | 840 'a|web/test/test.html': |
841 '<!DOCTYPE html><html><head></head><body>' | 841 '<!DOCTYPE html><html><head></head><body>' |
842 '<script rel="import" href="../packages/b/bar/bar.js"></script>' | 842 '<script rel="import" href="../packages/b/bar/bar.js"></script>' |
843 '</body></html>', | 843 '</body></html>', |
844 }); | 844 }); |
845 | 845 |
| 846 testPhases('includes in entry points normalize correctly', phases, { |
| 847 'a|web/test/test.html': |
| 848 '<!DOCTYPE html><html><head>' |
| 849 '<script src="packages/a/foo/bar.js"></script>' |
| 850 '</head></html>', |
| 851 'a|lib/foo/bar.js': |
| 852 'console.log("here");', |
| 853 }, { |
| 854 'a|web/test/test.html': |
| 855 '<!DOCTYPE html><html><head></head><body>' |
| 856 '<script src="../packages/a/foo/bar.js"></script>' |
| 857 '</body></html>', |
| 858 }); |
| 859 |
846 testPhases('two level deep entry points normalize correctly', phases, { | 860 testPhases('two level deep entry points normalize correctly', phases, { |
847 'a|web/test/well/test.html': | 861 'a|web/test/well/test.html': |
848 '<!DOCTYPE html><html><head>' | 862 '<!DOCTYPE html><html><head>' |
849 '<link rel="import" href="../../../packages/a/foo/foo.html">' | 863 '<link rel="import" href="../../../packages/a/foo/foo.html">' |
850 '</head></html>', | 864 '</head></html>', |
851 'a|lib/foo/foo.html': | 865 'a|lib/foo/foo.html': |
852 '<script rel="import" href="../../../packages/b/bar/bar.js"></script>', | 866 '<script rel="import" href="../../../packages/b/bar/bar.js"></script>', |
853 'b|lib/bar/bar.js': | 867 'b|lib/bar/bar.js': |
854 'console.log("here");', | 868 'console.log("here");', |
855 }, { | 869 }, { |
856 'a|web/test/well/test.html': | 870 'a|web/test/well/test.html': |
857 '<!DOCTYPE html><html><head></head><body>' | 871 '<!DOCTYPE html><html><head></head><body>' |
858 '<script rel="import" href="../../packages/b/bar/bar.js"></script>' | 872 '<script rel="import" href="../../packages/b/bar/bar.js"></script>' |
859 '</body></html>', | 873 '</body></html>', |
860 }); | 874 }); |
861 } | 875 } |
OLD | NEW |