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

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

Issue 2273993002: Converted Observatory cpu-profile-table element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Addressed comments 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/cpu_profile_table/element_test.dart
diff --git a/runtime/observatory/tests/observatory_ui/cpu_profile/element_test.dart b/runtime/observatory/tests/observatory_ui/cpu_profile_table/element_test.dart
similarity index 91%
copy from runtime/observatory/tests/observatory_ui/cpu_profile/element_test.dart
copy to runtime/observatory/tests/observatory_ui/cpu_profile_table/element_test.dart
index 249d46589022eab9e63e4705814ed46167781c9f..abe2db4323e47aff09a3885bc06f9429a72ff751 100644
--- a/runtime/observatory/tests/observatory_ui/cpu_profile/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/cpu_profile_table/element_test.dart
@@ -6,14 +6,14 @@ import 'dart:html';
import 'dart:async';
import 'package:unittest/unittest.dart';
import 'package:observatory/models.dart' as M;
-import 'package:observatory/src/elements/cpu_profile.dart';
+import 'package:observatory/src/elements/cpu_profile_table.dart';
import 'package:observatory/src/elements/cpu_profile/virtual_tree.dart';
import 'package:observatory/src/elements/stack_trace_tree_config.dart';
import 'package:observatory/src/elements/sample_buffer_control.dart';
import '../mocks.dart';
main() {
- CpuProfileElement.tag.ensureRegistration();
+ CpuProfileTableElement.tag.ensureRegistration();
final sTag = SampleBufferControlElement.tag.name;
final cTag = StackTraceTreeConfigElement.tag.name;
@@ -25,7 +25,7 @@ main() {
final notifs = new NotificationRepositoryMock();
test('instantiation', () {
final profiles = new IsolateSampleProfileRepositoryMock();
- final e = new CpuProfileElement(vm, isolate, events, notifs, profiles);
+ final e = new CpuProfileTableElement(vm, isolate, events, notifs, profiles);
expect(e, isNotNull, reason: 'element correctly created');
});
test('elements created', () async {
@@ -41,7 +41,7 @@ main() {
return controller.stream;
}
);
- final e = new CpuProfileElement(vm, isolate, events, notifs, profiles);
+ final e = new CpuProfileTableElement(vm, isolate, events, notifs, profiles);
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