Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(718)

Unified Diff: runtime/observatory/tests/observatory_ui/function_ref/element_test.dart

Issue 2211603002: Centralized event streams (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with master Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/tests/observatory_ui/function_ref/element_test.dart
diff --git a/runtime/observatory/tests/observatory_ui/function_ref/element_test.dart b/runtime/observatory/tests/observatory_ui/function_ref/element_test.dart
index a647d3d2077382302517399cfb47f3c164f378f1..cd6b8afc40e11e0de79b01e9ec47ffc41412144a 100644
--- a/runtime/observatory/tests/observatory_ui/function_ref/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/function_ref/element_test.dart
@@ -3,23 +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/function_ref.dart';
+import '../mocks.dart';
main(){
FunctionRefElement.tag.ensureRegistration();
- final IsolateRefMock isolate = new IsolateRefMock(id: 'i-id', name: 'i-name');
- final FunctionRefMock function = new FunctionRefMock(id: 'f-id',
- name: 'f-name');
+ final isolate = new IsolateRefMock(id: 'i-id', name: 'i-name');
+ final function = new FunctionRefMock(id: 'f-id', name: 'f-name');
test('instantiation', () {
- final FunctionRefElement e = new FunctionRefElement(isolate, function);
+ final e = new FunctionRefElement(isolate, function);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.isolate, equals(isolate));
expect(e.function, equals(function));
});
test('elements created after attachment', () async {
- final FunctionRefElement e = new FunctionRefElement(isolate, function);
+ final e = new FunctionRefElement(isolate, function);
document.body.append(e);
await e.onRendered.first;
expect(e.children.length, isNonZero, reason: 'has elements');

Powered by Google App Engine
This is Rietveld 408576698