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

Unified Diff: pkg/csslib/test/nested_test.dart

Issue 23819036: Support for @mixin, @include and @extend (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: All changes ready to commit Created 7 years, 2 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/csslib/test/mixin_test.dart ('k') | pkg/csslib/test/run_all.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/csslib/test/nested_test.dart
diff --git a/pkg/csslib/test/nested_test.dart b/pkg/csslib/test/nested_test.dart
index 5423644bbc393e7fb5ed97bcc751cc31066db4f6..ef7cb46c4baf4561fdb5be7ee926bfe64926011b 100644
--- a/pkg/csslib/test/nested_test.dart
+++ b/pkg/csslib/test/nested_test.dart
@@ -5,8 +5,6 @@
library nested_test;
import 'package:unittest/unittest.dart';
-import 'package:csslib/parser.dart';
-import 'package:csslib/visitor.dart';
import 'testing.dart';
List optionsCss = ['--no-colors', 'memory'];
@@ -602,6 +600,37 @@ light .leftCol .textLink a {
compileAndValidate(input10, generated10);
}
+thisCombinator() {
+ var errors = [];
+ var input = r'''
+.btn {
+ color: red;
+}
+.btn + .btn {
+ margin-left: 5px;
+}
+input.second {
+ & + label {
+ color: blue;
+ }
+}
+''';
+
+ var generated = r'''.btn {
+ color: #f00;
+}
+.btn + .btn {
+ margin-left: 5px;
+}
+input.second {
+}
+input.second + label {
+ color: #00f;
+}''';
+
+ compileAndValidate(input, generated);
+}
+
main() {
test('Selector and Nested Variations', selectorVariations);
test('Simple nesting', simpleNest);
@@ -610,4 +639,5 @@ main() {
test('Simple &', simpleThis);
test("Variations &", variationsThis);
test('Complex &', complexThis);
+ test('& with + selector', thisCombinator);
}
« no previous file with comments | « pkg/csslib/test/mixin_test.dart ('k') | pkg/csslib/test/run_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698