Index: runtime/observatory/tests/observatory_ui/nav/menu/element_test.dart |
diff --git a/runtime/observatory/tests/observatory_ui/nav/menu/element_test.dart b/runtime/observatory/tests/observatory_ui/nav/menu/element_test.dart |
index 2ff905959a833707a88022857440c384c5a84235..0cabc3cfabd9b09e8b3578854537de3e97cb9b7c 100644 |
--- a/runtime/observatory/tests/observatory_ui/nav/menu/element_test.dart |
+++ b/runtime/observatory/tests/observatory_ui/nav/menu/element_test.dart |
@@ -3,15 +3,11 @@ |
// BSD-style license that can be found in the LICENSE file. |
import 'dart:html'; |
import 'package:unittest/unittest.dart'; |
-import 'package:observatory/src/elements/helpers/rendering_queue.dart'; |
import 'package:observatory/src/elements/nav/menu.dart'; |
main() { |
NavMenuElement.tag.ensureRegistration(); |
- final TimedRenderingBarrier barrier = new TimedRenderingBarrier(); |
- final RenderingQueue queue = new RenderingQueue.fromBarrier(barrier); |
- |
group('instantiation', () { |
final label = 'custom-label'; |
test('label', () { |
@@ -33,7 +29,7 @@ main() { |
group('elements', () { |
test('created', () async { |
final label = 'custom-label'; |
- final NavMenuElement e = new NavMenuElement(label, queue: queue); |
+ final NavMenuElement e = new NavMenuElement(label); |
document.body.append(e); |
await e.onRendered.first; |
expect(e.shadowRoot.children.length, isNonZero, reason: 'has elements'); |
@@ -46,7 +42,7 @@ main() { |
test('react to label change', () async { |
final label1 = 'custom-label-1'; |
final label2 = 'custom-label-2'; |
- final NavMenuElement e = new NavMenuElement(label1, queue: queue); |
+ final NavMenuElement e = new NavMenuElement(label1); |
document.body.append(e); |
await e.onRendered.first; |
expect(e.shadowRoot.innerHtml.contains(label1), isTrue); |
@@ -60,8 +56,7 @@ main() { |
}); |
test('react to last change', () async { |
final label = 'custom-label'; |
- final NavMenuElement e = new NavMenuElement(label, last: false, |
- queue: queue); |
+ final NavMenuElement e = new NavMenuElement(label, last: false); |
document.body.append(e); |
await e.onRendered.first; |
expect(e.shadowRoot.innerHtml.contains('>'), isTrue); |