Index: runtime/observatory/tests/observatory_ui/nav/library-menu/element_test.dart |
diff --git a/runtime/observatory/tests/observatory_ui/nav/library-menu/element_test.dart b/runtime/observatory/tests/observatory_ui/nav/library-menu/element_test.dart |
index f6967c9665bbc2e1cb3fe53f83de8289125b2207..2144520ee13d0ba4f95749fc3fe6ac8c102660ec 100644 |
--- a/runtime/observatory/tests/observatory_ui/nav/library-menu/element_test.dart |
+++ b/runtime/observatory/tests/observatory_ui/nav/library-menu/element_test.dart |
@@ -3,22 +3,22 @@ |
// BSD-style license that can be found in the LICENSE file. |
import 'dart:html'; |
import 'package:unittest/unittest.dart'; |
-import 'package:observatory/mocks.dart'; |
import 'package:observatory/src/elements/nav/library_menu.dart'; |
+import '../../mocks.dart'; |
main(){ |
NavLibraryMenuElement.tag.ensureRegistration(); |
- final IsolateRefMock i_ref = const IsolateRefMock(id: 'i-id', name: 'i-name'); |
- final LibraryRefMock l_ref = const LibraryRefMock(id: 'l-id', name: 'l-name'); |
+ final i_ref = const IsolateRefMock(id: 'i-id', name: 'i-name'); |
+ final l_ref = const LibraryRefMock(id: 'l-id', name: 'l-name'); |
test('instantiation', () { |
- final NavLibraryMenuElement e = new NavLibraryMenuElement(i_ref, l_ref); |
+ final e = new NavLibraryMenuElement(i_ref, l_ref); |
expect(e, isNotNull, reason: 'element correctly created'); |
expect(e.isolate, equals(i_ref)); |
expect(e.library, equals(l_ref)); |
}); |
test('elements created after attachment', () async { |
- final NavLibraryMenuElement e = new NavLibraryMenuElement(i_ref, l_ref); |
+ final e = new NavLibraryMenuElement(i_ref, l_ref); |
document.body.append(e); |
await e.onRendered.first; |
expect(e.shadowRoot.children.length, isNonZero, reason: 'has elements'); |