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

Unified Diff: runtime/observatory/tests/observatory_ui/vm_connect_target/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/vm_connect_target/element_test.dart
diff --git a/runtime/observatory/tests/observatory_ui/vm_connect_target/element_test.dart b/runtime/observatory/tests/observatory_ui/vm_connect_target/element_test.dart
index a4340e86557203006deece46ce2894640de8809b..45efab6d2f0499b8eda744610c6a922edbe2bbcd 100644
--- a/runtime/observatory/tests/observatory_ui/vm_connect_target/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/vm_connect_target/element_test.dart
@@ -3,8 +3,8 @@
// 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/vm_connect_target.dart';
+import '../mocks.dart';
main() {
VMConnectTargetElement.tag.ensureRegistration();
@@ -15,28 +15,26 @@ main() {
});
group('instantiation', () {
test('no other parameters', () {
- final VMConnectTargetElement e = new VMConnectTargetElement(t);
+ final e = new VMConnectTargetElement(t);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.target, t, reason: 'target not setted');
expect(e.current, isFalse, reason: 'default to not current');
});
test('isCurrent: false', () {
- final VMConnectTargetElement e = new VMConnectTargetElement(t,
- current:false);
+ final e = new VMConnectTargetElement(t, current:false);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.target, t, reason: 'target not setted');
expect(e.current, isFalse, reason: 'default to not current');
});
test('isCurrent: true', () {
- final VMConnectTargetElement e = new VMConnectTargetElement(t,
- current:true);
+ final e = new VMConnectTargetElement(t, current:true);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.target, t, reason: 'target not setted');
expect(e.current, isTrue, reason: 'default to not current');
});
});
test('elements created after attachment', () async {
- final VMConnectTargetElement e = new VMConnectTargetElement(t);
+ final e = new VMConnectTargetElement(t);
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