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

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

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (Closed)
Patch Set: Created 3 years, 9 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/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 8a8efe9545c80707f4bd9e48b8cbba2421235ac7..38218f3322e33d0a12b02e3819cd907a30a6aa33 100644
--- a/runtime/observatory/tests/observatory_ui/source_link/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/source_link/element_test.dart
@@ -13,13 +13,10 @@ main() {
const isolate = const IsolateRefMock(id: 'isolate-id');
const script_id = 'script-id';
const file = 'filename.dart';
- final script = new ScriptMock(
- id: script_id,
- uri: 'package/$file',
- tokenToLine: (int token) => 1,
- tokenToCol: (int token) => 2);
- final location =
- new SourceLocationMock(script: script, tokenPos: 0, endTokenPos: 1);
+ final script = new ScriptMock(id: script_id, uri: 'package/$file',
+ 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, repository);
@@ -30,22 +27,24 @@ main() {
test('elements created after attachment', () async {
bool rendered = false;
final repository = new ScriptRepositoryMock(
- getter: expectAsync((isolate, id) async {
- expect(rendered, isFalse);
- expect(id, equals(script_id));
- return script;
- }, count: 1));
+ 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;
expect(e.children.length, isNonZero, reason: 'has elements');
expect(e.innerHtml.contains(isolate.id), isTrue,
- reason: 'no message in the component');
+ reason: 'no message in the component');
expect(e.innerHtml.contains(file), isTrue,
- reason: 'no message in the component');
+ reason: 'no message in the component');
e.remove();
await e.onRendered.first;
- expect(e.children.length, isZero, reason: 'is empty');
+ expect(e.children.length, isZero,
+ reason: 'is empty');
});
}

Powered by Google App Engine
This is Rietveld 408576698