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

Unified Diff: tests/html/mutationobserver_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 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 side-by-side diff with in-line comments
Download patch
Index: tests/html/mutationobserver_test.dart
diff --git a/tests/html/mutationobserver_test.dart b/tests/html/mutationobserver_test.dart
index e2de7e0afacb78b6be179d18a7b300c7b027d12f..7ef574a1227c84e2609d1a60553447d5cb7ba047 100644
--- a/tests/html/mutationobserver_test.dart
+++ b/tests/html/mutationobserver_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
library mutationobserver_test;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_individual_config.dart';
import 'dart:html';
@@ -56,11 +57,12 @@ main() {
test('empty options is syntax error', () {
expect(() {
- var mutationObserver = new MutationObserver(
- (mutations, observer) { expect(false, isTrue,
- reason: 'Should not be reached'); });
- expect(() { mutationObserver.observe(document, {}); },
- throws);
+ var mutationObserver = new MutationObserver((mutations, observer) {
+ expect(false, isTrue, reason: 'Should not be reached');
+ });
+ expect(() {
+ mutationObserver.observe(document, {});
+ }, throws);
}, expectation);
});

Powered by Google App Engine
This is Rietveld 408576698