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

Side by Side Diff: pkg/unittest/html_enhanced_config.dart

Issue 10928057: Fix issue 4960 (getter syntax in html_enhanced_config). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 /** 5 /**
6 * A simple unit test library for running tests in a browser. 6 * A simple unit test library for running tests in a browser.
7 * 7 *
8 * Provides enhanced HTML output with collapsible group headers 8 * Provides enhanced HTML output with collapsible group headers
9 * and other at-a-glance information about the test results. 9 * and other at-a-glance information about the test results.
10 */ 10 */
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 addRowElement('${test_.id}', '${test_.result.toUpperCase()}', 229 addRowElement('${test_.id}', '${test_.result.toUpperCase()}',
230 '${test_.description}. ${_htmlEscape(test_.message)}'); 230 '${test_.description}. ${_htmlEscape(test_.message)}');
231 231
232 if (test_.stackTrace != null) { 232 if (test_.stackTrace != null) {
233 addRowElement('', '', '<pre>${_htmlEscape(test_.stackTrace)}</pre>'); 233 addRowElement('', '', '<pre>${_htmlEscape(test_.stackTrace)}</pre>');
234 } 234 }
235 } 235 }
236 236
237 237
238 static bool get _isIE() => document.window.navigator.userAgent.contains('MSIE' ); 238 static bool get _isIE => document.window.navigator.userAgent.contains('MSIE');
239 239
240 String get _htmlTestCSS() => 240 String get _htmlTestCSS =>
241 ''' 241 '''
242 body{ 242 body{
243 font-size: 14px; 243 font-size: 14px;
244 font-family: 'Open Sans', 'Lucida Sans Unicode', 'Lucida Grande', sans-serif ; 244 font-family: 'Open Sans', 'Lucida Sans Unicode', 'Lucida Grande','''
245 ''' sans-serif;
245 background: WhiteSmoke; 246 background: WhiteSmoke;
246 } 247 }
247 248
248 .unittest-group 249 .unittest-group
249 { 250 {
250 background: rgb(75,75,75); 251 background: rgb(75,75,75);
251 width:98%; 252 width:98%;
252 color: WhiteSmoke; 253 color: WhiteSmoke;
253 font-weight: bold; 254 font-weight: bold;
254 padding: 6px; 255 padding: 6px;
255 cursor: pointer; 256 cursor: pointer;
256 257
257 /* Provide some visual separation between groups for IE */ 258 /* Provide some visual separation between groups for IE */
258 ${_isIE ? "border-bottom:solid black 1px;": ""} 259 ${_isIE ? "border-bottom:solid black 1px;": ""}
259 ${_isIE ? "border-top:solid #777777 1px;": ""} 260 ${_isIE ? "border-top:solid #777777 1px;": ""}
260 261
261 background-image: -webkit-linear-gradient(bottom, rgb(50,50,50) 0%, rgb(100, 100,100) 100%); 262 background-image: -webkit-linear-gradient(bottom, rgb(50,50,50) 0%, '''
262 background-image: -moz-linear-gradient(bottom, rgb(50,50,50) 0%, rgb(100,100 ,100) 100%); 263 '''rgb(100,100,100) 100%);
263 background-image: -ms-linear-gradient(bottom, rgb(50,50,50) 0%, rgb(100,100, 100) 100%); 264 background-image: -moz-linear-gradient(bottom, rgb(50,50,50) 0%, '''
264 background-image: linear-gradient(bottom, rgb(50,50,50) 0%, rgb(100,100,100) 100%); 265 '''rgb(100,100,100) 100%);
266 background-image: -ms-linear-gradient(bottom, rgb(50,50,50) 0%, '''
267 '''rgb(100,100,100) 100%);
268 background-image: linear-gradient(bottom, rgb(50,50,50) 0%, '''
269 '''rgb(100,100,100) 100%);
265 270
266 display: -webkit-box; 271 display: -webkit-box;
267 display: -moz-box; 272 display: -moz-box;
268 display: -ms-box; 273 display: -ms-box;
269 display: box; 274 display: box;
270 275
271 -webkit-box-orient: horizontal; 276 -webkit-box-orient: horizontal;
272 -moz-box-orient: horizontal; 277 -moz-box-orient: horizontal;
273 -ms-box-orient: horizontal; 278 -ms-box-orient: horizontal;
274 box-orient: horizontal; 279 box-orient: horizontal;
275 280
276 -webkit-box-align: center; 281 -webkit-box-align: center;
277 -moz-box-align: center; 282 -moz-box-align: center;
278 -ms-box-align: center; 283 -ms-box-align: center;
279 box-align: center; 284 box-align: center;
280 } 285 }
281 286
282 .unittest-group-status 287 .unittest-group-status
283 { 288 {
284 width: 20px; 289 width: 20px;
285 height: 20px; 290 height: 20px;
286 border-radius: 20px; 291 border-radius: 20px;
287 margin-left: 10px; 292 margin-left: 10px;
288 } 293 }
289 294
290 .unittest-group-status-pass{ 295 .unittest-group-status-pass{
291 background: Green; 296 background: Green;
292 background: -webkit-radial-gradient(center, ellipse cover, #AAFFAA 0%,Green 100%); 297 background: '''
293 background: -moz-radial-gradient(center, ellipse cover, #AAFFAA 0%,Green 100 %); 298 '''-webkit-radial-gradient(center, ellipse cover, #AAFFAA 0%,Green 100%);
294 background: -ms-radial-gradient(center, ellipse cover, #AAFFAA 0%,Green 100% ); 299 background: '''
295 background: radial-gradient(center, ellipse cover, #AAFFAA 0%,Green 100%); 300 '''-moz-radial-gradient(center, ellipse cover, #AAFFAA 0%,Green 100%);
301 background: '''
302 '''-ms-radial-gradient(center, ellipse cover, #AAFFAA 0%,Green 100%);
303 background: '''
304 '''radial-gradient(center, ellipse cover, #AAFFAA 0%,Green 100%);
296 } 305 }
297 306
298 .unittest-group-status-fail{ 307 .unittest-group-status-fail{
299 background: Red; 308 background: Red;
300 background: -webkit-radial-gradient(center, ellipse cover, #FFAAAA 0%,Red 10 0%); 309 background: '''
301 background: -moz-radial-gradient(center, ellipse cover, #FFAAAA 0%,Red 100%) ; 310 '''-webkit-radial-gradient(center, ellipse cover, #FFAAAA 0%,Red 100%);
302 background: -ms-radial-gradient(center, ellipse cover, #AAFFAA 0%,Green 100% ); 311 background: '''
312 '''-moz-radial-gradient(center, ellipse cover, #FFAAAA 0%,Red 100%);
313 background: '''
314 '''-ms-radial-gradient(center, ellipse cover, #AAFFAA 0%,Green 100%);
303 background: radial-gradient(center, ellipse cover, #FFAAAA 0%,Red 100%); 315 background: radial-gradient(center, ellipse cover, #FFAAAA 0%,Red 100%);
304 } 316 }
305 317
306 .unittest-overall{ 318 .unittest-overall{
307 font-size: 20px; 319 font-size: 20px;
308 } 320 }
309 321
310 .unittest-summary{ 322 .unittest-summary{
311 font-size: 18px; 323 font-size: 18px;
312 } 324 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 .unittest-row-description 373 .unittest-row-description
362 { 374 {
363 } 375 }
364 376
365 '''; 377 ''';
366 } 378 }
367 379
368 void useHtmlEnhancedConfiguration([bool isLayoutTest = false]) { 380 void useHtmlEnhancedConfiguration([bool isLayoutTest = false]) {
369 configure(new HtmlEnhancedConfiguration(isLayoutTest)); 381 configure(new HtmlEnhancedConfiguration(isLayoutTest));
370 } 382 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698