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

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

Issue 2211603002: Centralized event streams (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with master Created 4 years, 4 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 fe1ca8f15f0d7c72a8441c5a9f38a5041621eab7..6010bc66aaf30efc64354863eba156835def661a 100644
--- a/runtime/observatory/tests/observatory_ui/curly_block/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/curly_block/element_test.dart
@@ -10,66 +10,64 @@ main() {
group('instantiation', () {
test('default', () {
- final CurlyBlockElement e = new CurlyBlockElement();
+ final e = new CurlyBlockElement();
expect(e, isNotNull, reason: 'element correctly created');
expect(e.expanded, isFalse);
expect(e.disabled, isFalse);
});
test('not expanded', () {
- final CurlyBlockElement e = new CurlyBlockElement(expanded: false);
+ final e = new CurlyBlockElement(expanded: false);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.expanded, isFalse);
expect(e.disabled, isFalse);
});
test('not expanded / not disabled', () {
- final CurlyBlockElement e = new CurlyBlockElement(expanded: 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 CurlyBlockElement e = new CurlyBlockElement(expanded: false,
+ final e = new CurlyBlockElement(expanded: false,
disabled: true);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.expanded, isFalse);
expect(e.disabled, isTrue);
});
test('expanded', () {
- final CurlyBlockElement e = new CurlyBlockElement(expanded: true);
+ final e = new CurlyBlockElement(expanded: true);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.expanded, isTrue);
expect(e.disabled, isFalse);
});
test('expanded / not disabled', () {
- final CurlyBlockElement e = new CurlyBlockElement(expanded: true,
- disabled: false);
+ final e = new CurlyBlockElement(expanded: true, disabled: false);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.expanded, isTrue);
expect(e.disabled, isFalse);
});
test('expanded / disabled', () {
- final CurlyBlockElement e = new CurlyBlockElement(expanded: true,
- disabled: true);
+ final e = new CurlyBlockElement(expanded: true, disabled: true);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.expanded, isTrue);
expect(e.disabled, isTrue);
});
test('not disabled', () {
- final CurlyBlockElement e = new CurlyBlockElement(disabled: false);
+ final e = new CurlyBlockElement(disabled: false);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.expanded, isFalse);
expect(e.disabled, isFalse);
});
test('disabled', () {
- final CurlyBlockElement e = new CurlyBlockElement(disabled: true);
+ final e = new CurlyBlockElement(disabled: true);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.expanded, isFalse);
expect(e.disabled, isTrue);
});
});
test('elements created', () async {
- final CurlyBlockElement e = new CurlyBlockElement();
+ final e = new CurlyBlockElement();
expect(e.shadowRoot, isNotNull, reason: 'shadowRoot is created');
document.body.append(e);
await e.onRendered.first;

Powered by Google App Engine
This is Rietveld 408576698