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