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

Side by Side Diff: pkg/polymer/test/build/import_inliner_test.dart

Issue 196723017: Fix polymer tests and a couple bugs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « pkg/polymer/test/build/all_phases_test.dart ('k') | pkg/polymer/test/build/linter_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 testPhases('deep, inlines css', phases, { 610 testPhases('deep, inlines css', phases, {
611 'a|web/test.html': 611 'a|web/test.html':
612 '<!DOCTYPE html><html><head>' 612 '<!DOCTYPE html><html><head>'
613 '<link rel="import" href="test2.html">' 613 '<link rel="import" href="test2.html">'
614 '</head></html>', 614 '</head></html>',
615 'a|web/test2.html': 615 'a|web/test2.html':
616 '<polymer-element>2' 616 '<polymer-element>2'
617 '<link rel="stylesheet" href="assets/b/test3.css">' 617 '<link rel="stylesheet" href="assets/b/test3.css">'
618 '</polymer-element>', 618 '</polymer-element>',
619 'b|asset/test3.css': 619 'b|asset/test3.css':
620 'body {\n background: #eaeaea url("assets/b/test4.png");\n}\n' 620 'body {\n background: #eaeaea url("../../assets/b/test4.png");\n}\n'
621 '.foo {\n background: url("../../packages/c/test5.png");\n}', 621 '.foo {\n background: url("../../packages/c/test5.png");\n}',
622 'b|asset/test4.png': 'PNG', 622 'b|asset/test4.png': 'PNG',
623 'c|lib/test5.png': 'PNG', 623 'c|lib/test5.png': 'PNG',
624 }, { 624 }, {
625 'a|web/test.html': 625 'a|web/test.html':
626 '<!DOCTYPE html><html><head></head><body>' 626 '<!DOCTYPE html><html><head></head><body>'
627 '<polymer-element>2' 627 '<polymer-element>2'
628 '<style>' 628 '<style>'
629 'body {\n background: #eaeaea url(assets/b/test4.png);\n}\n' 629 'body {\n background: #eaeaea url(assets/b/test4.png);\n}\n'
630 '.foo {\n background: url(packages/c/test5.png);\n}' 630 '.foo {\n background: url(packages/c/test5.png);\n}'
631 '</style>' 631 '</style>'
632 '</polymer-element>' 632 '</polymer-element>'
633 '</body></html>', 633 '</body></html>',
634 'a|web/test2.html': 634 'a|web/test2.html':
635 '<html><head></head><body>' 635 '<html><head></head><body>'
636 '<polymer-element>2' 636 '<polymer-element>2'
637 '<style>' 637 '<style>'
638 'body {\n background: #eaeaea url(assets/b/test4.png);\n}\n' 638 'body {\n background: #eaeaea url(assets/b/test4.png);\n}\n'
639 '.foo {\n background: url(packages/c/test5.png);\n}' 639 '.foo {\n background: url(packages/c/test5.png);\n}'
640 '</style>' 640 '</style>'
641 '</polymer-element>' 641 '</polymer-element>'
642 '</body></html>', 642 '</body></html>',
643 'b|asset/test3.css': 643 'b|asset/test3.css':
644 'body {\n background: #eaeaea url("assets/b/test4.png");\n}\n' 644 'body {\n background: #eaeaea url("../../assets/b/test4.png");\n}\n'
645 '.foo {\n background: url("../../packages/c/test5.png");\n}', 645 '.foo {\n background: url("../../packages/c/test5.png");\n}',
646 'b|asset/test4.png': 'PNG', 646 'b|asset/test4.png': 'PNG',
647 'c|lib/test5.png': 'PNG', 647 'c|lib/test5.png': 'PNG',
648 }); 648 });
649 649
650 testPhases('deep, inlines css, multiple nesting', phases, { 650 testPhases('deep, inlines css, multiple nesting', phases, {
651 'a|web/test.html': 651 'a|web/test.html':
652 '<!DOCTYPE html><html><head>' 652 '<!DOCTYPE html><html><head>'
653 '<link rel="import" href="foo/test2.html">' 653 '<link rel="import" href="foo/test2.html">'
654 '</head></html>', 654 '</head></html>',
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 '<style>h1 { font-size: 70px; }</style>' 702 '<style>h1 { font-size: 70px; }</style>'
703 '<style>.second { color: black }</style>' 703 '<style>.second { color: black }</style>'
704 '</body></html>', 704 '</body></html>',
705 'a|web/test.html.scriptUrls': '[]', 705 'a|web/test.html.scriptUrls': '[]',
706 'a|web/test2.css': 706 'a|web/test2.css':
707 'h1 { font-size: 70px; }', 707 'h1 { font-size: 70px; }',
708 }); 708 });
709 709
710 } 710 }
711 711
OLDNEW
« no previous file with comments | « pkg/polymer/test/build/all_phases_test.dart ('k') | pkg/polymer/test/build/linter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698