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

Unified Diff: test/declaration_test.dart

Issue 998843003: pkg/csslib: formatting (Closed) Base URL: https://github.com/dart-lang/csslib@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: test/declaration_test.dart
diff --git a/test/declaration_test.dart b/test/declaration_test.dart
index 857df4873298cbbacec41b0b4f2ebc39c041a974..0cf012c549ab7d8d176afd5f95ef0a7448eb2d32 100644
--- a/test/declaration_test.dart
+++ b/test/declaration_test.dart
@@ -7,7 +7,6 @@ library declaration_test;
import 'package:unittest/unittest.dart';
import 'testing.dart';
-
/** CSS compiler options no checks in in memory style sheet. */
List options = ['--no-colors', 'memory'];
@@ -365,7 +364,7 @@ void testMediaQueries() {
}
}''';
generated =
- '''@media handheld AND (min-width:20em), screen AND (min-width:20em) {
+ '''@media handheld AND (min-width:20em), screen AND (min-width:20em) {
#id {
color: #f00;
}
@@ -481,8 +480,7 @@ src: url(ideal-sans-serif.woff) format("woff"),
url(basic-sans-serif.ttf) format("opentype"),
local(Gentium Bold);
}''';
- final String generated2 =
- '@font-face {\n'
+ final String generated2 = '@font-face {\n'
' src: url("ideal-sans-serif.woff") '
'format("woff"), url("basic-sans-serif.ttf") '
'format("opentype"), local(Gentium Bold);\n}';
@@ -563,8 +561,7 @@ div[href^='test'] {
}
''';
- final String generated =
- '@import "simple.css"; '
+ final String generated = '@import "simple.css"; '
'@import "test.css" print; '
'@import "test.css" screen, print; '
'@import "http://google.com/maps/maps.css";\n'
@@ -715,36 +712,32 @@ html|*:not(:link):not(:visited) {
void testIE() {
var errors = [];
- final String input =
-".test {\n"
-" filter: progid:DXImageTransform.Microsoft.gradient"
-"(GradientType=0,StartColorStr='#9d8b83', EndColorStr='#847670');\n"
-"}";
- final String generated =
-".test {\n"
-" filter: progid:DXImageTransform.Microsoft.gradient"
-"(GradientType=0,StartColorStr='#9d8b83', EndColorStr='#847670');\n"
-"}";
-
- var stylesheet = parseCss(input, errors: errors, opts: options);
+ final String input = ".test {\n"
+ " filter: progid:DXImageTransform.Microsoft.gradient"
+ "(GradientType=0,StartColorStr='#9d8b83', EndColorStr='#847670');\n"
+ "}";
+ final String generated = ".test {\n"
+ " filter: progid:DXImageTransform.Microsoft.gradient"
+ "(GradientType=0,StartColorStr='#9d8b83', EndColorStr='#847670');\n"
+ "}";
+
+ var stylesheet = parseCss(input, errors: errors, opts: options);
expect(stylesheet != null, true);
expect(errors.isEmpty, true, reason: errors.toString());
expect(prettyPrint(stylesheet), generated);
- final String input2 =
-".test {\n"
-" filter: progid:DXImageTransform.Microsoft.gradient"
-"(GradientType=0,StartColorStr='#9d8b83', EndColorStr='#847670')\n"
-" progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);\n"
-"}";
-
- final String generated2 =
-".test {\n"
-" filter: progid:DXImageTransform.Microsoft.gradient"
-"(GradientType=0,StartColorStr='#9d8b83', EndColorStr='#847670')\n"
-" progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);\n"
-"}";
+ final String input2 = ".test {\n"
+ " filter: progid:DXImageTransform.Microsoft.gradient"
+ "(GradientType=0,StartColorStr='#9d8b83', EndColorStr='#847670')\n"
+ " progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);\n"
+ "}";
+
+ final String generated2 = ".test {\n"
+ " filter: progid:DXImageTransform.Microsoft.gradient"
+ "(GradientType=0,StartColorStr='#9d8b83', EndColorStr='#847670')\n"
+ " progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);\n"
+ "}";
stylesheet = parseCss(input2, errors: errors..clear(), opts: options);
« pubspec.yaml ('K') | « test/compiler_test.dart ('k') | test/error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698