Index: runtime/observatory/tests/observatory_ui/nav/class-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/class-menu/element_test.dart |
index df83ea482787580effac6bf8ac7b31f3af2a2ef8..1b3766d164416db7781e95e249c1f9ec256b1186 100644 |
--- a/runtime/observatory/tests/observatory_ui/nav/class-menu/element_test.dart |
+++ b/runtime/observatory/tests/observatory_ui/nav/class-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/class_menu.dart'; |
+import '../../mocks.dart'; |
main(){ |
NavClassMenuElement.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 i_ref = const IsolateRefMock(id: 'i-id', name: 'i-name'); |
+ final c_ref = const ClassRefMock(id: 'c-id', name: 'c-name'); |
test('instantiation', () { |
- final NavClassMenuElement e = new NavClassMenuElement(i_ref, c_ref); |
+ final e = new NavClassMenuElement(i_ref, c_ref); |
expect(e, isNotNull, reason: 'element correctly created'); |
expect(e.isolate, equals(i_ref)); |
expect(e.cls, equals(c_ref)); |
}); |
test('elements created after attachment', () async { |
- final NavClassMenuElement e = new NavClassMenuElement(i_ref, c_ref); |
+ final e = new NavClassMenuElement(i_ref, c_ref); |
document.body.append(e); |
await e.onRendered.first; |
expect(e.shadowRoot.children.length, isNonZero, reason: 'has elements'); |