Index: runtime/observatory/tests/observatory_ui/code_ref/element_test.dart |
diff --git a/runtime/observatory/tests/observatory_ui/code_ref/element_test.dart b/runtime/observatory/tests/observatory_ui/code_ref/element_test.dart |
index 0e2c9ee6dc95f302c653d79750958cb0ac66871d..694d81bd36dc37aef6b3dabf808e7978b7c6fa8a 100644 |
--- a/runtime/observatory/tests/observatory_ui/code_ref/element_test.dart |
+++ b/runtime/observatory/tests/observatory_ui/code_ref/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/code_ref.dart'; |
+import '../mocks.dart'; |
main(){ |
CodeRefElement.tag.ensureRegistration(); |
- final IsolateRefMock isolate = new IsolateRefMock(id: 'i-id', name: 'i-name'); |
- final CodeRefMock code = new CodeRefMock(id: 'c-id', name: 'c-name'); |
+ final isolate = new IsolateRefMock(id: 'i-id', name: 'i-name'); |
+ final code = new CodeRefMock(id: 'c-id', name: 'c-name'); |
test('instantiation', () { |
- final CodeRefElement e = new CodeRefElement(isolate, code); |
+ final e = new CodeRefElement(isolate, code); |
expect(e, isNotNull, reason: 'element correctly created'); |
expect(e.isolate, equals(isolate)); |
expect(e.code, equals(code)); |
}); |
test('elements created after attachment', () async { |
- final CodeRefElement e = new CodeRefElement(isolate, code); |
+ final e = new CodeRefElement(isolate, code); |
document.body.append(e); |
await e.onRendered.first; |
expect(e.children.length, isNonZero, reason: 'has elements'); |