OLD | NEW |
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:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
8 import 'testing.dart'; | 8 import 'testing.dart'; |
9 | 9 |
10 var options = ['--warnings_as_errors', '--no-colors', 'memory']; | 10 var options = ['--warnings_as_errors', '--no-colors', 'memory']; |
11 | 11 |
12 compilePolyfillAndValidate(String input, String generated) { | 12 compilePolyfillAndValidate(String input, String generated) { |
13 var errors = []; | 13 var errors = []; |
14 var stylesheet = polyFillCompileCss(input, errors: errors, opts: options); | 14 var stylesheet = polyFillCompileCss(input, errors: errors, opts: options); |
15 expect(stylesheet != null, true); | 15 expect(stylesheet != null, true); |
16 expect(errors.isEmpty, true, reason: errors.toString()); | 16 expect(errors.isEmpty, true, reason: errors.toString()); |
17 expect(prettyPrint(stylesheet), generated); | 17 expect(prettyPrint(stylesheet), generated); |
18 } | 18 } |
19 | 19 |
20 void big_test() { | 20 void big_test() { |
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 .tooltip a, .tooltip div, .tooltip span { | 1159 .tooltip a, .tooltip div, .tooltip span { |
1160 color: #fff; | 1160 color: #fff; |
1161 }'''; | 1161 }'''; |
1162 | 1162 |
1163 compilePolyfillAndValidate(input, generated); | 1163 compilePolyfillAndValidate(input, generated); |
1164 } | 1164 } |
1165 | 1165 |
1166 main() { | 1166 main() { |
1167 test('big #1', big_test); | 1167 test('big #1', big_test); |
1168 } | 1168 } |
OLD | NEW |