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

Side by Side Diff: test/debug_test.dart

Issue 1131243005: pkg/csslib: use pkg/test and allow latest version of logging pkg (Closed) Base URL: https://github.com/dart-lang/csslib@master
Patch Set: Created 5 years, 7 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/compiler_test.dart ('k') | test/declaration_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 library debug; 1 library debug;
2 2
3 import 'package:unittest/unittest.dart'; 3 import 'package:test/test.dart';
4 import 'testing.dart'; 4 import 'testing.dart';
5 5
6 void main() { 6 void main() {
7 test("excercise debug", () { 7 test("excercise debug", () {
8 var style = parseCss(_input); 8 var style = parseCss(_input);
9 9
10 var debugValue = style.toDebugString(); 10 var debugValue = style.toDebugString();
11 expect(debugValue, isNotNull); 11 expect(debugValue, isNotNull);
12 12
13 var style2 = style.clone(); 13 var style2 = style.clone();
14 14
15 expect(style2.toDebugString(), debugValue); 15 expect(style2.toDebugString(), debugValue);
16 }); 16 });
17 } 17 }
18 18
19 const String _input = r''' 19 const String _input = r'''
20 .foo { 20 .foo {
21 background-color: #191919; 21 background-color: #191919;
22 width: 10PX; 22 width: 10PX;
23 height: 22mM !important; 23 height: 22mM !important;
24 border-width: 20cm; 24 border-width: 20cm;
25 margin-width: 33%; 25 margin-width: 33%;
26 border-height: 30EM; 26 border-height: 30EM;
27 width: .6in; 27 width: .6in;
28 length: 1.2in; 28 length: 1.2in;
29 -web-stuff: -10Px; 29 -web-stuff: -10Px;
30 }'''; 30 }''';
OLDNEW
« no previous file with comments | « test/compiler_test.dart ('k') | test/declaration_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698