Index: runtime/observatory/tests/observatory_ui/nav/notify/element_test.dart |
diff --git a/runtime/observatory/tests/observatory_ui/nav/notify/element_test.dart b/runtime/observatory/tests/observatory_ui/nav/notify/element_test.dart |
index b61e4ae0b6f54b5dfd1463eb48c8c0413334d08d..64adcfb8087b4c09b913a9684be1bce0c9e18c4a 100644 |
--- a/runtime/observatory/tests/observatory_ui/nav/notify/element_test.dart |
+++ b/runtime/observatory/tests/observatory_ui/nav/notify/element_test.dart |
@@ -5,7 +5,6 @@ import 'dart:html' hide Notification, NotificationEvent; |
import 'package:unittest/unittest.dart'; |
import 'package:observatory/mocks.dart'; |
import 'package:observatory/models.dart' as M; |
-import 'package:observatory/src/elements/helpers/rendering_queue.dart'; |
import 'package:observatory/src/elements/nav/notify.dart'; |
import 'package:observatory/src/elements/nav/notify_event.dart'; |
import 'package:observatory/src/elements/nav/notify_exception.dart'; |
@@ -16,9 +15,6 @@ main() { |
final evTag = NavNotifyEventElement.tag.name; |
final exTag = NavNotifyExceptionElement.tag.name; |
- final TimedRenderingBarrier barrier = new TimedRenderingBarrier(); |
- final RenderingQueue queue = new RenderingQueue.fromBarrier(barrier); |
- |
const vm = const VMRefMock(); |
const isolate = const IsolateRefMock(id: 'i-id', name: 'i-name'); |
@@ -45,7 +41,7 @@ main() { |
test('is correctly listening', () async { |
final NotificationRepositoryMock repository = |
new NotificationRepositoryMock(); |
- final NavNotifyElement e = new NavNotifyElement(repository, queue: queue); |
+ final NavNotifyElement e = new NavNotifyElement(repository); |
document.body.append(e); |
await e.onRendered.first; |
expect(repository.hasListeners, isTrue, reason: 'is listening'); |
@@ -61,7 +57,7 @@ main() { |
const EventNotificationMock(event: const VMUpdateEventMock(vm: vm)), |
const EventNotificationMock(event: const VMUpdateEventMock(vm: vm)) |
]); |
- final NavNotifyElement e = new NavNotifyElement(repository, queue: queue); |
+ final NavNotifyElement e = new NavNotifyElement(repository); |
document.body.append(e); |
await e.onRendered.first; |
expect(repository.listInvoked, isTrue, reason: 'should invoke list()'); |
@@ -81,7 +77,7 @@ main() { |
event: const PauseStartEventMock(isolate: isolate)) |
]); |
final NavNotifyElement e = new NavNotifyElement(repository, |
- notifyOnPause: true, queue: queue); |
+ notifyOnPause: true); |
document.body.append(e); |
await e.onRendered.first; |
expect(e.querySelectorAll(evTag).length, equals(2)); |
@@ -106,7 +102,7 @@ main() { |
final NotificationRepositoryMock repository = |
new NotificationRepositoryMock(list: list); |
final NavNotifyElement e = new NavNotifyElement(repository, |
- notifyOnPause: true, queue: queue); |
+ notifyOnPause: true); |
document.body.append(e); |
await e.onRendered.first; |
expect(e.querySelectorAll(evTag).length, equals(1)); |