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

Side by Side Diff: test/nested_test.dart

Issue 1832993003: Fix all strong mode errors and warnings. (Closed) Base URL: https://github.com/dart-lang/csslib.git@master
Patch Set: Move type. Created 4 years, 8 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
« no previous file with comments | « test/mixin_test.dart ('k') | test/selector_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 nested_test; 5 library nested_test;
6 6
7 import 'package:csslib/src/messages.dart';
7 import 'package:test/test.dart'; 8 import 'package:test/test.dart';
8 9
9 import 'testing.dart'; 10 import 'testing.dart';
10 11
11 compileAndValidate(String input, String generated) { 12 compileAndValidate(String input, String generated) {
12 var errors = []; 13 var errors = <Message>[];
13 var stylesheet = compileCss(input, errors: errors, opts: simpleOptions); 14 var stylesheet = compileCss(input, errors: errors, opts: simpleOptions);
14 expect(stylesheet != null, true); 15 expect(stylesheet != null, true);
15 expect(errors.isEmpty, true, reason: errors.toString()); 16 expect(errors.isEmpty, true, reason: errors.toString());
16 expect(prettyPrint(stylesheet), generated); 17 expect(prettyPrint(stylesheet), generated);
17 } 18 }
18 19
19 selectorVariations() { 20 selectorVariations() {
20 final input1 = r'''html { color: red; }'''; 21 final input1 = r'''html { color: red; }''';
21 final generated1 = r'''html { 22 final generated1 = r'''html {
22 color: #f00; 23 color: #f00;
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 main() { 623 main() {
623 test('Selector and Nested Variations', selectorVariations); 624 test('Selector and Nested Variations', selectorVariations);
624 test('Simple nesting', simpleNest); 625 test('Simple nesting', simpleNest);
625 test('Complex nesting', complexNest); 626 test('Complex nesting', complexNest);
626 test('@media nesting', mediaNesting); 627 test('@media nesting', mediaNesting);
627 test('Simple &', simpleThis); 628 test('Simple &', simpleThis);
628 test("Variations &", variationsThis); 629 test("Variations &", variationsThis);
629 test('Complex &', complexThis); 630 test('Complex &', complexThis);
630 test('& with + selector', thisCombinator); 631 test('& with + selector', thisCombinator);
631 } 632 }
OLDNEW
« no previous file with comments | « test/mixin_test.dart ('k') | test/selector_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698