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

Unified Diff: runtime/observatory/tests/observatory_ui/nav/notify/element_test.dart

Issue 2173373002: Revert "Use Timer and not AnimationFrame during Observatory UI tests" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Revert "Use Timer and not AnimationFrame during Observatory UI tests" Created 4 years, 5 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/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));

Powered by Google App Engine
This is Rietveld 408576698