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

Unified Diff: runtime/observatory/tests/observatory_ui/nav/library-menu/element_test.dart

Issue 2164903003: Converted Observatory library-nav-menu element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Added missing file into observatory_sources.gypi 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/library-menu/element_test.dart
diff --git a/runtime/observatory/tests/observatory_ui/nav/class-menu/element_test.dart b/runtime/observatory/tests/observatory_ui/nav/library-menu/element_test.dart
similarity index 68%
copy from runtime/observatory/tests/observatory_ui/nav/class-menu/element_test.dart
copy to runtime/observatory/tests/observatory_ui/nav/library-menu/element_test.dart
index df83ea482787580effac6bf8ac7b31f3af2a2ef8..f6967c9665bbc2e1cb3fe53f83de8289125b2207 100644
--- a/runtime/observatory/tests/observatory_ui/nav/class-menu/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/nav/library-menu/element_test.dart
@@ -4,21 +4,21 @@
import 'dart:html';
import 'package:unittest/unittest.dart';
import 'package:observatory/mocks.dart';
-import 'package:observatory/src/elements/nav/class_menu.dart';
+import 'package:observatory/src/elements/nav/library_menu.dart';
main(){
- NavClassMenuElement.tag.ensureRegistration();
+ NavLibraryMenuElement.tag.ensureRegistration();
final IsolateRefMock i_ref = const IsolateRefMock(id: 'i-id', name: 'i-name');
- final ClassRefMock c_ref = const ClassRefMock(id: 'c-id', name: 'c-name');
+ final LibraryRefMock l_ref = const LibraryRefMock(id: 'l-id', name: 'l-name');
test('instantiation', () {
- final NavClassMenuElement e = new NavClassMenuElement(i_ref, c_ref);
+ final NavLibraryMenuElement e = new NavLibraryMenuElement(i_ref, l_ref);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.isolate, equals(i_ref));
- expect(e.cls, equals(c_ref));
+ expect(e.library, equals(l_ref));
});
test('elements created after attachment', () async {
- final NavClassMenuElement e = new NavClassMenuElement(i_ref, c_ref);
+ final NavLibraryMenuElement e = new NavLibraryMenuElement(i_ref, l_ref);
document.body.append(e);
await e.onRendered.first;
expect(e.shadowRoot.children.length, isNonZero, reason: 'has elements');

Powered by Google App Engine
This is Rietveld 408576698