| 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 'a|web/test_1.html': | 429 'a|web/test_1.html': |
| 430 '<!DOCTYPE html><html><head>' | 430 '<!DOCTYPE html><html><head>' |
| 431 '<link rel="import" href="test_2.html">' | 431 '<link rel="import" href="test_2.html">' |
| 432 '</head><body><polymer-element>1</polymer-element>' | 432 '</head><body><polymer-element>1</polymer-element>' |
| 433 '<script type="application/dart" src="s1.dart"></script></html>', | 433 '<script type="application/dart" src="s1.dart"></script></html>', |
| 434 'a|web/test_2.html': | 434 'a|web/test_2.html': |
| 435 '<!DOCTYPE html><html><head>' | 435 '<!DOCTYPE html><html><head>' |
| 436 '<link rel="import" href="test_1.html">' | 436 '<link rel="import" href="test_1.html">' |
| 437 '</head><body><polymer-element>2</polymer-element>' | 437 '</head><body><polymer-element>2</polymer-element>' |
| 438 '<script type="application/dart" src="s2.dart"></script></html>', | 438 '<script type="application/dart" src="s2.dart"></script></html>', |
| 439 'a|web/s1.dart': '', |
| 440 'a|web/s2.dart': '', |
| 439 }, { | 441 }, { |
| 440 'a|web/test.html': | 442 'a|web/test.html': |
| 441 '<!DOCTYPE html><html><head>' | 443 '<!DOCTYPE html><html><head>' |
| 442 '</head><body>' | 444 '</head><body>' |
| 443 '<polymer-element>2</polymer-element>' | 445 '<polymer-element>2</polymer-element>' |
| 444 '<script type="application/dart" src="s2.dart"></script>' | 446 '<script type="application/dart" src="s2.dart"></script>' |
| 445 '<polymer-element>1</polymer-element>' | 447 '<polymer-element>1</polymer-element>' |
| 446 '<script type="application/dart" src="s1.dart"></script>' | 448 '<script type="application/dart" src="s1.dart"></script>' |
| 447 '</body></html>', | 449 '</body></html>', |
| 448 'a|web/test.html.scriptUrls': '[]', | 450 'a|web/test.html.scriptUrls': '[]', |
| (...skipping 28 matching lines...) Expand all Loading... |
| 477 '</head><body><polymer-element>1</polymer-element>' | 479 '</head><body><polymer-element>1</polymer-element>' |
| 478 '<script type="application/dart;component=1" src="s1.dart">' | 480 '<script type="application/dart;component=1" src="s1.dart">' |
| 479 '</script></html>', | 481 '</script></html>', |
| 480 'a|web/test_2.html': | 482 'a|web/test_2.html': |
| 481 '<!DOCTYPE html><html><head>' | 483 '<!DOCTYPE html><html><head>' |
| 482 '<link rel="import" href="test_1.html">' | 484 '<link rel="import" href="test_1.html">' |
| 483 '</head><body><polymer-element>2' | 485 '</head><body><polymer-element>2' |
| 484 '<script type="application/dart;component=1" src="s2.dart"></script>' | 486 '<script type="application/dart;component=1" src="s2.dart"></script>' |
| 485 '</polymer-element>' | 487 '</polymer-element>' |
| 486 '</html>', | 488 '</html>', |
| 489 'a|web/s1.dart': '', |
| 490 'a|web/s2.dart': '', |
| 487 }, { | 491 }, { |
| 488 'a|web/test.html': | 492 'a|web/test.html': |
| 489 '<!DOCTYPE html><html><head>' | 493 '<!DOCTYPE html><html><head>' |
| 490 '</head><body>' | 494 '</head><body>' |
| 491 '<polymer-element>2</polymer-element>' | 495 '<polymer-element>2</polymer-element>' |
| 492 '<polymer-element>1</polymer-element>' | 496 '<polymer-element>1</polymer-element>' |
| 493 '</body></html>', | 497 '</body></html>', |
| 494 'a|web/test.html.scriptUrls': '[["a","web/s2.dart"],["a","web/s1.dart"]]', | 498 'a|web/test.html.scriptUrls': '[["a","web/s2.dart"],["a","web/s1.dart"]]', |
| 495 'a|web/test_1.html': | 499 'a|web/test_1.html': |
| 496 '<!DOCTYPE html><html><head>' | 500 '<!DOCTYPE html><html><head>' |
| (...skipping 21 matching lines...) Expand all Loading... |
| 518 'a|web/test_1.html': | 522 'a|web/test_1.html': |
| 519 '<!DOCTYPE html><html><head>' | 523 '<!DOCTYPE html><html><head>' |
| 520 '<link rel="import" href="test_1.html">' | 524 '<link rel="import" href="test_1.html">' |
| 521 '</head><body>' | 525 '</head><body>' |
| 522 '<foo>42</foo><bar-baz></bar-baz>' | 526 '<foo>42</foo><bar-baz></bar-baz>' |
| 523 '<polymer-element>1' | 527 '<polymer-element>1' |
| 524 '<script src="s1.js"></script>' | 528 '<script src="s1.js"></script>' |
| 525 '<script type="application/dart;component=1" src="s1.dart"></script>' | 529 '<script type="application/dart;component=1" src="s1.dart"></script>' |
| 526 '</polymer-element>' | 530 '</polymer-element>' |
| 527 'FOO</body></html>', | 531 'FOO</body></html>', |
| 532 'a|web/s1.dart': '', |
| 528 }, { | 533 }, { |
| 529 'a|web/test.html': | 534 'a|web/test.html': |
| 530 '<!DOCTYPE html><html><head>' | 535 '<!DOCTYPE html><html><head>' |
| 531 '</head><body>' | 536 '</head><body>' |
| 532 '<foo>42</foo><bar-baz></bar-baz>' | 537 '<foo>42</foo><bar-baz></bar-baz>' |
| 533 '<polymer-element>1' | 538 '<polymer-element>1' |
| 534 '<script src="s1.js"></script>' | 539 '<script src="s1.js"></script>' |
| 535 '</polymer-element>' | 540 '</polymer-element>' |
| 536 'FOO</body></html>', | 541 'FOO</body></html>', |
| 537 'a|web/test.html.scriptUrls': '[["a","web/s1.dart"]]', | 542 'a|web/test.html.scriptUrls': '[["a","web/s1.dart"]]', |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 'a|web/test.html': | 811 'a|web/test.html': |
| 807 '<!DOCTYPE html><html><head></head><body>' | 812 '<!DOCTYPE html><html><head></head><body>' |
| 808 '<style>.first { color: black }</style>' | 813 '<style>.first { color: black }</style>' |
| 809 '<style>h1 { font-size: 70px; }</style>' | 814 '<style>h1 { font-size: 70px; }</style>' |
| 810 '<style>.second { color: black }</style>' | 815 '<style>.second { color: black }</style>' |
| 811 '</body></html>', | 816 '</body></html>', |
| 812 'a|web/test.html.scriptUrls': '[]', | 817 'a|web/test.html.scriptUrls': '[]', |
| 813 'a|web/test2.css': | 818 'a|web/test2.css': |
| 814 'h1 { font-size: 70px; }', | 819 'h1 { font-size: 70px; }', |
| 815 }); | 820 }); |
| 816 | |
| 817 } | 821 } |
| 818 | |
| OLD | NEW |