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

Side by Side Diff: test/big_1_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 | « pubspec.yaml ('k') | test/compiler_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 big_1_test; 5 library big_1_test;
6 6
7 import 'package:csslib/src/messages.dart';
7 import 'package:test/test.dart'; 8 import 'package:test/test.dart';
8 import 'testing.dart'; 9 import 'testing.dart';
9 10
10 compilePolyfillAndValidate(String input, String generated) { 11 compilePolyfillAndValidate(String input, String generated) {
11 var errors = []; 12 var errors = <Message>[];
12 var stylesheet = polyFillCompileCss(input, errors: errors, opts: options); 13 var stylesheet = polyFillCompileCss(input, errors: errors, opts: options);
13 expect(stylesheet != null, true); 14 expect(stylesheet != null, true);
14 expect(errors.isEmpty, true, reason: errors.toString()); 15 expect(errors.isEmpty, true, reason: errors.toString());
15 expect(prettyPrint(stylesheet), generated); 16 expect(prettyPrint(stylesheet), generated);
16 } 17 }
17 18
18 void big_test() { 19 void big_test() {
19 var input = r''' 20 var input = r'''
20 /******************************************************************** 21 /********************************************************************
21 * Kennedy colors 22 * Kennedy colors
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 .tooltip a, .tooltip div, .tooltip span { 1158 .tooltip a, .tooltip div, .tooltip span {
1158 color: #fff; 1159 color: #fff;
1159 }'''; 1160 }''';
1160 1161
1161 compilePolyfillAndValidate(input, generated); 1162 compilePolyfillAndValidate(input, generated);
1162 } 1163 }
1163 1164
1164 main() { 1165 main() {
1165 test('big #1', big_test); 1166 test('big #1', big_test);
1166 } 1167 }
OLDNEW
« no previous file with comments | « pubspec.yaml ('k') | test/compiler_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698