| Index: runtime/observatory/tests/observatory_ui/view_footer_test.dart
|
| diff --git a/runtime/observatory/tests/observatory_ui/view_footer_test.dart b/runtime/observatory/tests/observatory_ui/view_footer_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..98834bfc4b29ef50465bb389a3a3e2ae2e7ddc0f
|
| --- /dev/null
|
| +++ b/runtime/observatory/tests/observatory_ui/view_footer_test.dart
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +import 'dart:html';
|
| +import 'package:unittest/unittest.dart';
|
| +import 'package:observatory/src/elements/view_footer.dart';
|
| +
|
| +main() {
|
| + setUp(() {
|
| + ViewFooterElement.tag.ensureRegistration();
|
| + });
|
| + test('instantiation', () {
|
| + final ViewFooterElement e = new ViewFooterElement();
|
| + expect(e, isNotNull, reason: 'element correctly created');
|
| + });
|
| + test('elements created after attachment', () {
|
| + final ViewFooterElement e = new ViewFooterElement();
|
| + expect(e.shadowRoot, isNotNull, reason: 'shadowRoot is created');
|
| + expect(e.shadowRoot.children.length, isZero,
|
| + reason: 'shadowRoot is empty');
|
| + document.body.append(e);
|
| + expect(e.shadowRoot.children.length, isNonZero,
|
| + reason: 'shadowRoot has elements');
|
| + e.remove();
|
| + });
|
| +}
|
|
|