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

Unified Diff: runtime/observatory/tests/observatory_ui/nav/top-menu/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/nav/top-menu/element_test.dart
diff --git a/runtime/observatory/tests/observatory_ui/nav/top-menu/element_test.dart b/runtime/observatory/tests/observatory_ui/nav/top-menu/element_test.dart
index df9f88c938fc0b8074133c9ed8c3e929751dd807..5e620697565946990d7daa2c4eafacb6f297dd1d 100644
--- a/runtime/observatory/tests/observatory_ui/nav/top-menu/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/nav/top-menu/element_test.dart
@@ -9,27 +9,27 @@ import 'package:observatory/src/elements/nav/top_menu.dart';
main() {
NavTopMenuElement.tag.ensureRegistration();
- final String tag = NavMenuElement.tag.name;
+ final tag = NavMenuElement.tag.name;
group('instantiation', () {
test('default', () {
- final NavTopMenuElement e = new NavTopMenuElement();
+ final e = new NavTopMenuElement();
expect(e, isNotNull, reason: 'element correctly created');
});
test('not last', () {
- final NavTopMenuElement e = new NavTopMenuElement(last: false);
+ final e = new NavTopMenuElement(last: false);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.last, isFalse, reason: 'element correctly created');
});
test('last', () {
- final NavTopMenuElement e = new NavTopMenuElement(last: true);
+ final e = new NavTopMenuElement(last: true);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.last, isTrue, reason: 'element correctly created');
});
});
group('elements', () {
test('created', () async {
- final NavTopMenuElement e = new NavTopMenuElement();
+ final e = new NavTopMenuElement();
document.body.append(e);
await e.onRendered.first;
expect(e.shadowRoot.children.length, isNonZero, reason: 'has elements');
@@ -40,7 +40,7 @@ main() {
expect(e.shadowRoot.children.length, isZero, reason: 'is empty');
});
test('react to last change', () async {
- final NavTopMenuElement e = new NavTopMenuElement(last: false);
+ final e = new NavTopMenuElement(last: false);
document.body.append(e);
await e.onRendered.first;
expect((e.shadowRoot.querySelector(tag) as NavMenuElement).last, isFalse);

Powered by Google App Engine
This is Rietveld 408576698