Index: runtime/observatory/tests/observatory_ui/library_ref/element_test.dart |
diff --git a/runtime/observatory/tests/observatory_ui/code_ref/element_test.dart b/runtime/observatory/tests/observatory_ui/library_ref/element_test.dart |
similarity index 69% |
copy from runtime/observatory/tests/observatory_ui/code_ref/element_test.dart |
copy to runtime/observatory/tests/observatory_ui/library_ref/element_test.dart |
index 0e2c9ee6dc95f302c653d79750958cb0ac66871d..cb33f6b6e09647a69062ac90cf28c821d77e7ab0 100644 |
--- a/runtime/observatory/tests/observatory_ui/code_ref/element_test.dart |
+++ b/runtime/observatory/tests/observatory_ui/library_ref/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/code_ref.dart'; |
+import 'package:observatory/src/elements/library_ref.dart'; |
main(){ |
- CodeRefElement.tag.ensureRegistration(); |
+ LibraryRefElement.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 LibraryRefMock library = new LibraryRefMock(id: 'c-id', name: 'c-name'); |
test('instantiation', () { |
- final CodeRefElement e = new CodeRefElement(isolate, code); |
+ final LibraryRefElement e = new LibraryRefElement(isolate, library); |
expect(e, isNotNull, reason: 'element correctly created'); |
expect(e.isolate, equals(isolate)); |
- expect(e.code, equals(code)); |
+ expect(e.library, equals(library)); |
}); |
test('elements created after attachment', () async { |
- final CodeRefElement e = new CodeRefElement(isolate, code); |
+ final LibraryRefElement e = new LibraryRefElement(isolate, library); |
document.body.append(e); |
await e.onRendered.first; |
expect(e.children.length, isNonZero, reason: 'has elements'); |