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

Unified Diff: lib/html_config.dart

Issue 846143003: Reformatted code (Closed) Base URL: https://github.com/dart-lang/unittest.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/compact_vm_config.dart ('k') | lib/html_enhanced_config.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html_config.dart
diff --git a/lib/html_config.dart b/lib/html_config.dart
index b132be871593c64ade5728a4b087afa368fc962e..210f0f5e0d68696cebc93a26f26d7271370e1fd2 100644
--- a/lib/html_config.dart
+++ b/lib/html_config.dart
@@ -98,17 +98,16 @@ class HtmlConfiguration extends SimpleConfiguration {
void _installHandlers() {
if (_onErrorSubscription == null) {
- _onErrorSubscription = window.onError.listen(
- (e) {
- // Some tests may expect this and have no way to suppress the error.
- if (js.context['testExpectsGlobalError'] != true) {
- handleExternalError(e, '(DOM callback has errors)');
- }
- });
+ _onErrorSubscription = window.onError.listen((e) {
+ // Some tests may expect this and have no way to suppress the error.
+ if (js.context['testExpectsGlobalError'] != true) {
+ handleExternalError(e, '(DOM callback has errors)');
+ }
+ });
}
if (_onMessageSubscription == null) {
- _onMessageSubscription = window.onMessage.listen(
- (e) => processMessage(e));
+ _onMessageSubscription =
+ window.onMessage.listen((e) => processMessage(e));
}
}
@@ -133,8 +132,8 @@ class HtmlConfiguration extends SimpleConfiguration {
// For Dart internal tests, we want to turn off stack frame
// filtering, which we do with this meta-header.
var meta = querySelector('meta[name="dart.unittest"]');
- filterStacks = meta == null ? true :
- !meta.content.contains('full-stack-traces');
+ filterStacks =
+ meta == null ? true : !meta.content.contains('full-stack-traces');
_installHandlers();
window.postMessage('unittest-suite-wait-for-done', '*');
}
@@ -158,8 +157,8 @@ class HtmlConfiguration extends SimpleConfiguration {
void onSummary(int passed, int failed, int errors, List<TestCase> results,
String uncaughtError) {
- _showResultsInPage(passed, failed, errors, results, _isLayoutTest,
- uncaughtError);
+ _showResultsInPage(
+ passed, failed, errors, results, _isLayoutTest, uncaughtError);
}
void onDone(bool success) {
« no previous file with comments | « lib/compact_vm_config.dart ('k') | lib/html_enhanced_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698