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

Side by Side Diff: lib/unittest/dom_config.dart

Issue 10389097: Move dart:dom to dart:dom_deprecated (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes from review Created 8 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 | Annotate | Revision Log
« no previous file with comments | « lib/isolate/frog/isolateimpl.dart ('k') | lib/unittest/unittest.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) 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 /** Configuration for running tests in a browser using dart:dom. */ 5 /** Configuration for running tests in a browser using dart:dom_deprecated. */
6 #library('dom_config'); 6 #library('dom_config');
7 7
8 #import('dart:dom'); 8 #import('dart:dom_deprecated');
9 #import('unittest.dart'); 9 #import('unittest.dart');
10 10
11 #source('html_print.dart'); 11 #source('html_print.dart');
12 12
13 class DomConfiguration extends Configuration { 13 class DomConfiguration extends Configuration {
14 /** Whether this is run within dartium layout tests. */ 14 /** Whether this is run within dartium layout tests. */
15 final bool _isLayoutTest; 15 final bool _isLayoutTest;
16 16
17 DomConfiguration(this._isLayoutTest); 17 DomConfiguration(this._isLayoutTest);
18 18
(...skipping 21 matching lines...) Expand all
40 window.removeEventListener('error', _onErrorClosure); 40 window.removeEventListener('error', _onErrorClosure);
41 _showResultsInPage(passed, failed, errors, results, _isLayoutTest, 41 _showResultsInPage(passed, failed, errors, results, _isLayoutTest,
42 uncaughtError); 42 uncaughtError);
43 window.postMessage('unittest-suite-done', '*'); 43 window.postMessage('unittest-suite-done', '*');
44 } 44 }
45 } 45 }
46 46
47 void useDomConfiguration([bool isLayoutTest = false]) { 47 void useDomConfiguration([bool isLayoutTest = false]) {
48 configure(new DomConfiguration(isLayoutTest)); 48 configure(new DomConfiguration(isLayoutTest));
49 } 49 }
OLDNEW
« no previous file with comments | « lib/isolate/frog/isolateimpl.dart ('k') | lib/unittest/unittest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698