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

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

Issue 2274013006: Converted Observatory objectstore-view element (Closed)
Patch Set: Fixed link color 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
« no previous file with comments | « runtime/observatory/tests/observatory_ui/objectstore_view/element_test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/observatory_ui/source_link/element_test.dart
diff --git a/runtime/observatory/tests/observatory_ui/source_link/element_test.dart b/runtime/observatory/tests/observatory_ui/source_link/element_test.dart
index bd096b8f51ab3b47abe137a801939852ecceb338..38218f3322e33d0a12b02e3819cd907a30a6aa33 100644
--- a/runtime/observatory/tests/observatory_ui/source_link/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/source_link/element_test.dart
@@ -17,21 +17,23 @@ main() {
tokenToLine: (int token) => 1, tokenToCol: (int token) => 2);
final location = new SourceLocationMock(script: script, tokenPos: 0,
endTokenPos: 1);
+ final repository = new ScriptRepositoryMock();
test('instantiation', () {
- final e = new SourceLinkElement(isolate, location,
- new ScriptRepositoryMock());
+ final e = new SourceLinkElement(isolate, location, repository);
expect(e, isNotNull, reason: 'element correctly created');
expect(e.isolate, equals(isolate));
expect(e.location, equals(location));
});
test('elements created after attachment', () async {
bool rendered = false;
- final e = new SourceLinkElement(isolate, location,
- new ScriptRepositoryMock(getter: expectAsync((String id) async {
- expect(rendered, isFalse);
- expect(id, equals(script_id));
- return script;
- }, count: 1)));
+ final repository = new ScriptRepositoryMock(
+ getter: expectAsync((isolate, id) async {
+ expect(rendered, isFalse);
+ expect(id, equals(script_id));
+ return script;
+ }, count: 1)
+ );
+ final e = new SourceLinkElement(isolate, location, repository);
document.body.append(e);
await e.onRendered.first;
rendered = true;
« no previous file with comments | « runtime/observatory/tests/observatory_ui/objectstore_view/element_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698