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

Unified Diff: runtime/observatory/tests/observatory_ui/curly_block/element_test.dart

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (Closed)
Patch Set: Created 3 years, 9 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: runtime/observatory/tests/observatory_ui/curly_block/element_test.dart
diff --git a/runtime/observatory/tests/observatory_ui/curly_block/element_test.dart b/runtime/observatory/tests/observatory_ui/curly_block/element_test.dart
index 068f7416cee17ca0923d31efe4d2e3f2e9fa8d1b..54d50b995d311c9591706294e5595ab3a3de25e3 100644
--- a/runtime/observatory/tests/observatory_ui/curly_block/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/curly_block/element_test.dart
@@ -23,13 +23,15 @@ main() {
expect(e.disabled, isFalse);
});
test('not expanded / not disabled', () {
- final e = new CurlyBlockElement(expanded: false, disabled: false);
+ final e = new CurlyBlockElement(expanded: false,
+ disabled: false);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.expanded, isFalse);
expect(e.disabled, isFalse);
});
test('not expanded / disabled', () {
- final e = new CurlyBlockElement(expanded: false, disabled: true);
+ final e = new CurlyBlockElement(expanded: false,
+ disabled: true);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.expanded, isFalse);
expect(e.disabled, isTrue);
@@ -70,7 +72,8 @@ main() {
expect(e.children.length, isZero, reason: 'is empty');
document.body.append(e);
await e.onRendered.first;
- expect(e.children.length, isNonZero, reason: 'has elements');
+ expect(e.children.length, isNonZero,
+ reason: 'has elements');
e.remove();
await e.onRendered.first;
expect(e.children.length, isZero, reason: 'is empty');
@@ -152,7 +155,7 @@ main() {
await e.onRendered.first;
});
test('fires on toggle', () async {
- e.onToggle.listen(expectAsync((CurlyBlockToggleEvent event) {
+ e.onToggle.listen(expectAsync((CurlyBlockToggleEvent event){
expect(event, isNotNull);
expect(event.control, equals(e));
}, count: 1));
@@ -160,7 +163,7 @@ main() {
await e.onRendered.first;
});
test('fires on manual toggle', () async {
- e.onToggle.listen(expectAsync((CurlyBlockToggleEvent event) {
+ e.onToggle.listen(expectAsync((CurlyBlockToggleEvent event){
expect(event, isNotNull);
expect(event.control, equals(e));
}, count: 1));
@@ -168,7 +171,7 @@ main() {
await e.onRendered.first;
});
test('does not fire if setting same expanded value', () async {
- e.onToggle.listen(expectAsync((_) {}, count: 0));
+ e.onToggle.listen(expectAsync((_){}, count: 0));
e.expanded = e.expanded;
await e.onRendered.first;
});

Powered by Google App Engine
This is Rietveld 408576698