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

Unified Diff: pkg/polymer/test/css_test.dart

Issue 23445009: Prune the old deploy code. This CL does a few changes: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/test/compiler_test.dart ('k') | pkg/polymer/test/paths_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/css_test.dart
diff --git a/pkg/polymer/test/css_test.dart b/pkg/polymer/test/css_test.dart
index 9a53ef451df76206d6920f75651bd5b2f4ca9134..9f4c73419b832d300d0dbd125214a68a76971011 100644
--- a/pkg/polymer/test/css_test.dart
+++ b/pkg/polymer/test/css_test.dart
@@ -50,14 +50,6 @@ test_simple_var() {
expect(htmlInfo.styleSheets.length, 2);
expect(prettyPrintCss(htmlInfo.styleSheets[0]), '');
expect(prettyPrintCss(htmlInfo.styleSheets[1]), '.test { color: red; }');
-
- var outputs = compiler.output.map((o) => o.path);
- expect(outputs, equals([
- 'out/index.html.dart',
- 'out/index.html.dart.map',
- 'out/index.html_bootstrap.dart',
- 'out/index.html',
- ]));
}));
}
@@ -150,13 +142,6 @@ test_var() {
'.test-19 { border: 2px 2px 2px 3px dashed red; } '
'.test-20 { border: 3px 2px 2px 2px dashed green; } '
'.test-21 { border: bold 1px 10px blue; }');
- var outputs = compiler.output.map((o) => o.path);
- expect(outputs, equals([
- 'out/index.html.dart',
- 'out/index.html.dart.map',
- 'out/index.html_bootstrap.dart',
- 'out/index.html',
- ]));
}));
}
@@ -202,15 +187,6 @@ test_simple_import() {
expect(htmlInfo.styleSheets.length, 1);
expect(prettyPrintCss(htmlInfo.styleSheets[0]),
'@import url(foo.css); .test { color: red; }');
-
- var outputs = compiler.output.map((o) => o.path);
- expect(outputs, equals([
- 'out/index.html.dart',
- 'out/index.html.dart.map',
- 'out/index.html_bootstrap.dart',
- 'out/foo.css',
- 'out/index.html',
- ]));
}));
}
@@ -293,18 +269,6 @@ test_imports() {
'@import url(second.css); '
'.test-1 { color: red; } '
'.test-2 { width: 100px; }');
-
- var outputs = compiler.output.map((o) => o.path);
- expect(outputs, equals([
- 'out/index.html.dart',
- 'out/index.html.dart.map',
- 'out/index.html_bootstrap.dart',
- 'out/first.css',
- 'out/second.css',
- 'out/third.css',
- 'out/fourth.css',
- 'out/index.html',
- ]));
}));
}
@@ -378,39 +342,26 @@ test_component_var() {
expect(htmlInfo.declaredComponents.length, 1);
expect(htmlInfo.declaredComponents[0].styleSheets.length, 1);
- var outputs = compiler.output.map((o) => o.path);
- expect(outputs, equals([
- 'out/foo.html.dart',
- 'out/foo.html.dart.map',
- 'out/index.html.dart',
- 'out/index.html.dart.map',
- 'out/index.html_bootstrap.dart',
- 'out/foo.css',
- 'out/index.html.css',
- 'out/index.html',
- ]));
-
- for (var file in compiler.output) {
- if (file.path == 'out/index.html.css') {
- expect(file.contents,
- '/* Auto-generated from components style tags. */\n'
- '/* DO NOT EDIT. */\n\n'
- '/* ==================================================== \n'
- ' Component x-foo stylesheet \n'
- ' ==================================================== */\n'
- '@import "foo.css";\n'
- '[is="x-foo"] .main {\n'
- ' color: #f00;\n'
- '}\n'
- '[is="x-foo"] .test-background {\n'
- ' background: url("http://www.foo.com/bar.png");\n'
- '}\n\n');
- } else if (file.path == 'out/foo.css') {
- expect(file.contents,
- '/* Auto-generated from style sheet href = foo.css */\n'
- '/* DO NOT EDIT. */\n\n\n\n');
- }
- }
+ // TODO(sigmund,terry): reenable
+ // if (file.path == 'out/index.html.css') {
+ // expect(file.contents,
+ // '/* Auto-generated from components style tags. */\n'
+ // '/* DO NOT EDIT. */\n\n'
+ // '/* ==================================================== \n'
+ // ' Component x-foo stylesheet \n'
+ // ' ==================================================== */\n'
+ // '@import "foo.css";\n'
+ // '[is="x-foo"] .main {\n'
+ // ' color: #f00;\n'
+ // '}\n'
+ // '[is="x-foo"] .test-background {\n'
+ // ' background: url("http://www.foo.com/bar.png");\n'
+ // '}\n\n');
+ // } else if (file.path == 'out/foo.css') {
+ // expect(file.contents,
+ // '/* Auto-generated from style sheet href = foo.css */\n'
+ // '/* DO NOT EDIT. */\n\n\n\n');
+ // }
// Check for warning messages about var- cycles in no expected order.
expect(messages.messages.length, 8);
@@ -505,33 +456,25 @@ test_pseudo_element() {
'foo.html': 1,
}), reason: 'Actual:\n ${fs.readCount}');
- var outputs = compiler.output.map((o) => o.path);
- expect(outputs, equals([
- 'out/foo.html.dart',
- 'out/foo.html.dart.map',
- 'out/index.html.dart',
- 'out/index.html.dart.map',
- 'out/index.html_bootstrap.dart',
- 'out/index.html',
- ]));
- expect(compiler.output.last.contents, contains(
- '<div pseudo="x-foo_0">'
- '<div>Test</div>'
- '</div>'
- '<div pseudo="x-foo1_1 x-foo2_2">'
- '<div>Test</div>'
- '</div>'));
- expect(compiler.output.last.contents, contains(
- '<style>.test > *[pseudo="x-foo_0"] {\n'
- ' background-color: #f00;\n'
- '}\n'
- '.test > *[pseudo="x-foo1_1"] {\n'
- ' color: #00f;\n'
- '}\n'
- '.test > *[pseudo="x-foo2_2"] {\n'
- ' color: #008000;\n'
- '}'
- '</style>'));
+ // TODO(sigmund, terry): reenable
+ // expect(compiler.output.last.contents, contains(
+ // '<div pseudo="x-foo_0">'
+ // '<div>Test</div>'
+ // '</div>'
+ // '<div pseudo="x-foo1_1 x-foo2_2">'
+ // '<div>Test</div>'
+ // '</div>'));
+ // expect(compiler.output.last.contents, contains(
+ // '<style>.test > *[pseudo="x-foo_0"] {\n'
+ // ' background-color: #f00;\n'
+ // '}\n'
+ // '.test > *[pseudo="x-foo1_1"] {\n'
+ // ' color: #00f;\n'
+ // '}\n'
+ // '.test > *[pseudo="x-foo2_2"] {\n'
+ // ' color: #008000;\n'
+ // '}'
+ // '</style>'));
}));
}
« no previous file with comments | « pkg/polymer/test/compiler_test.dart ('k') | pkg/polymer/test/paths_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698