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

Unified Diff: utils/tests/css/expression_tests.dart

Issue 9956037: Simplify tests under utils/tests to follow StandardTestSuite convention. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: utils/tests/css/expression_tests.dart
diff --git a/utils/tests/css/src/ExpressionTest.dart b/utils/tests/css/expression_tests.dart
similarity index 99%
rename from utils/tests/css/src/ExpressionTest.dart
rename to utils/tests/css/expression_tests.dart
index e439123b67bbac237c215c32085cbed757ddfec0..7ced968086c44b380753f927b371e610b22575fa 100644
--- a/utils/tests/css/src/ExpressionTest.dart
+++ b/utils/tests/css/expression_tests.dart
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#import("../../../css/css.dart");
+#import("../../css/css.dart");
class ExpressionTest {
@@ -57,7 +57,7 @@ class ExpressionTest {
Expect.equals(ruleset.declarationGroup.declarations.length, 0);
simpleSeqs = ruleset.selectorGroup.selectors[0].simpleSelectorSequences;
-
+
var idx = 0;
for (final selector in simpleSeqs) {
final simpSelector = selector.simpleSelector;
@@ -98,7 +98,7 @@ class ExpressionTest {
List<SimpleSelectorSequence> simpleSeqs =
ruleset.selectorGroup.selectors[0].simpleSelectorSequences;
-
+
for (final selector in simpleSeqs) {
final simpSelector = selector.simpleSelector;
Expect.isTrue(simpSelector is IdSelector);
@@ -160,7 +160,7 @@ class ExpressionTest {
} else {
Expect.fail("unexpected expression");
}
-
+
idx++;
}
Expect.equals(simpleSeqs.length, idx);
@@ -237,7 +237,7 @@ class ExpressionTest {
} else {
Expect.fail("unexpected expression");
}
-
+
idx++;
}
@@ -416,7 +416,7 @@ class ExpressionTest {
Expect.equals(ruleset.declarationGroup.declarations.length, 0);
simpleSeqs = ruleset.selectorGroup.selectors[0].simpleSelectorSequences;
-
+
Expect.equals(simpleSeqs.length, 2);
var idx = 0;
for (final selector in simpleSeqs) {
@@ -486,7 +486,7 @@ class ExpressionTest {
Expect.equals(ruleset.declarationGroup.declarations.length, 0);
simpleSeqs = ruleset.selectorGroup.selectors[0].simpleSelectorSequences;
-
+
Expect.equals(simpleSeqs.length, 2);
idx = 0;
for (final selector in simpleSeqs) {

Powered by Google App Engine
This is Rietveld 408576698