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

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

Issue 208273009: pkg/unittest: Removed references to expectAsync[Until]X in docs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « pkg/unittest/lib/html_config.dart ('k') | pkg/unittest/lib/html_individual_config.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 /** 5 /// A simple unit test library for running tests in a browser.
6 * A simple unit test library for running tests in a browser. 6 ///
7 * 7 /// Provides enhanced HTML output with collapsible group headers
8 * Provides enhanced HTML output with collapsible group headers 8 /// and other at-a-glance information about the test results.
9 * and other at-a-glance information about the test results.
10 */
11 library unittest.html_enhanced_config; 9 library unittest.html_enhanced_config;
12 10
13 import 'dart:collection' show LinkedHashMap; 11 import 'dart:collection' show LinkedHashMap;
14 import 'dart:convert'; 12 import 'dart:convert';
15 import 'dart:html'; 13 import 'dart:html';
16 import 'unittest.dart'; 14 import 'unittest.dart';
17 15
18 class HtmlEnhancedConfiguration extends SimpleConfiguration { 16 class HtmlEnhancedConfiguration extends SimpleConfiguration {
19 /** Whether this is run within dartium layout tests. */ 17 /// Whether this is run within dartium layout tests.
20 final bool _isLayoutTest; 18 final bool _isLayoutTest;
21 HtmlEnhancedConfiguration(this._isLayoutTest); 19 HtmlEnhancedConfiguration(this._isLayoutTest);
22 20
23 var _onErrorSubscription = null; 21 var _onErrorSubscription = null;
24 var _onMessageSubscription = null; 22 var _onMessageSubscription = null;
25 23
26 void _installOnErrorHandler() { 24 void _installOnErrorHandler() {
27 if (_onErrorSubscription == null) { 25 if (_onErrorSubscription == null) {
28 // Listen for uncaught errors. 26 // Listen for uncaught errors.
29 _onErrorSubscription = window.onError.listen( 27 _onErrorSubscription = window.onError.listen(
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 408
411 '''; 409 ''';
412 } 410 }
413 411
414 void useHtmlEnhancedConfiguration([bool isLayoutTest = false]) { 412 void useHtmlEnhancedConfiguration([bool isLayoutTest = false]) {
415 unittestConfiguration = isLayoutTest ? _singletonLayout : _singletonNotLayout; 413 unittestConfiguration = isLayoutTest ? _singletonLayout : _singletonNotLayout;
416 } 414 }
417 415
418 final _singletonLayout = new HtmlEnhancedConfiguration(true); 416 final _singletonLayout = new HtmlEnhancedConfiguration(true);
419 final _singletonNotLayout = new HtmlEnhancedConfiguration(false); 417 final _singletonNotLayout = new HtmlEnhancedConfiguration(false);
OLDNEW
« no previous file with comments | « pkg/unittest/lib/html_config.dart ('k') | pkg/unittest/lib/html_individual_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698