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

Unified Diff: runtime/observatory/tests/observatory_ui/nav/menu/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/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);

Powered by Google App Engine
This is Rietveld 408576698