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

Side by Side Diff: tests/compiler/dart2js/sourcemaps/colors.dart

Issue 1562023002: Add test of unittests. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments Created 4 years, 11 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /// Utility library for creating web colors. 5 /// Utility library for creating web colors.
6 6
7 library colors; 7 library sourcemaps.colors;
8 8
9 /// A web color. 9 /// A web color.
10 abstract class Color { 10 abstract class Color {
11 /// The css code for the color. 11 /// The css code for the color.
12 String get toCss; 12 String get toCss;
13 } 13 }
14 14
15 /// A web color defined as RGB. 15 /// A web color defined as RGB.
16 class RGB implements Color { 16 class RGB implements Color {
17 final double r; 17 final double r;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 return new RGB(p, q, v); 112 return new RGB(p, q, v);
113 case 4: 113 case 4:
114 return new RGB(t, p, v); 114 return new RGB(t, p, v);
115 default: // case 5: 115 default: // case 5:
116 return new RGB(v, p, q); 116 return new RGB(v, p, q);
117 } 117 }
118 } 118 }
119 119
120 String toString() => 'hsv($h,$s,$v)'; 120 String toString() => 'hsv($h,$s,$v)';
121 } 121 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698