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

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

Issue 2751423005: Run dartfmt on all files under runtime. (Closed)
Patch Set: Run dartfmt on all files under runtime. 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 38218f3322e33d0a12b02e3819cd907a30a6aa33..8a8efe9545c80707f4bd9e48b8cbba2421235ac7 100644
--- a/runtime/observatory/tests/observatory_ui/source_link/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/source_link/element_test.dart
@@ -13,10 +13,13 @@ 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);
@@ -27,24 +30,22 @@ 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