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

Unified Diff: runtime/observatory/tests/observatory_ui/nav/menu-item/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/menu-item/element_test.dart
diff --git a/runtime/observatory/tests/observatory_ui/nav/menu-item/element_test.dart b/runtime/observatory/tests/observatory_ui/nav/menu-item/element_test.dart
index f4ee551d2ee8f665174dee558fd1efe82c49d218..d439a608d3a6fe6ba33abc1b97ac10d615b5f2c9 100644
--- a/runtime/observatory/tests/observatory_ui/nav/menu-item/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/nav/menu-item/element_test.dart
@@ -12,12 +12,12 @@ main() {
final label = 'custom-label';
final link = 'link-to-target';
test('label', () {
- final NavMenuItemElement e = new NavMenuItemElement(label);
+ final e = new NavMenuItemElement(label);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.label, equals(label), reason: 'element correctly created');
});
test('label', () {
- final NavMenuItemElement e = new NavMenuItemElement(label, link: link);
+ final e = new NavMenuItemElement(label, link: link);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.link, equals(link), reason: 'element correctly created');
});
@@ -25,7 +25,7 @@ main() {
group('elements', () {
test('created', () async {
final label = 'custom-label';
- final NavMenuItemElement e = new NavMenuItemElement(label);
+ final e = new NavMenuItemElement(label);
document.body.append(e);
await e.onRendered.first;
expect(e.shadowRoot.children.length, isNonZero, reason: 'has elements');
@@ -38,7 +38,7 @@ main() {
test('react to label change', () async {
final label1 = 'custom-label-1';
final label2 = 'custom-label-2';
- final NavMenuItemElement e = new NavMenuItemElement(label1);
+ final e = new NavMenuItemElement(label1);
document.body.append(e);
await e.onRendered.first;
expect(e.shadowRoot.innerHtml.contains(label1), isTrue);
@@ -54,7 +54,7 @@ main() {
final label = 'custom-label';
final link1 = 'custom-label-1';
final link2 = 'custom-label-2';
- final NavMenuItemElement e = new NavMenuItemElement(label, link: link1);
+ final e = new NavMenuItemElement(label, link: link1);
document.body.append(e);
await e.onRendered.first;
expect(e.shadowRoot.innerHtml.contains(link1), isTrue);

Powered by Google App Engine
This is Rietveld 408576698