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

Unified Diff: tests/standalone/dwarf_stack_trace_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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: tests/standalone/dwarf_stack_trace_test.dart
diff --git a/tests/standalone/dwarf_stack_trace_test.dart b/tests/standalone/dwarf_stack_trace_test.dart
index 117768b24cdeef767d411ae163a1a648cfef9548..b2691ef193384217e0a891c534e20840fda3c45d 100644
--- a/tests/standalone/dwarf_stack_trace_test.dart
+++ b/tests/standalone/dwarf_stack_trace_test.dart
@@ -9,8 +9,7 @@ import 'dart:io';
bar() {
// Keep the 'throw' and its argument on separate lines.
- throw
- "Hello, Dwarf!";
+ throw "Hello, Dwarf!";
}
foo() {
@@ -78,11 +77,8 @@ main() {
var frameDSO = frameMatch[2];
print(framePC);
print(frameDSO);
- result = Process.runSync("addr2line",
- ["--exe", frameDSO,
- "--functions",
- "--inlines",
- framePC]);
+ result = Process.runSync(
+ "addr2line", ["--exe", frameDSO, "--functions", "--inlines", framePC]);
if (result.exitCode != 0) {
print(result.stdout);
print(result.stderr);
@@ -95,13 +91,16 @@ main() {
print(symbolizedStack);
var symbolizedLines = symbolizedStack.toString().split("\n");
expect(symbolizedLines.length, greaterThan(8));
- expect(symbolizedStack.toString(),
- stringContainsInOrder(["bar",
- "dwarf_stack_trace_test.dart:12",
- "foo",
- "dwarf_stack_trace_test.dart:17",
- "main",
- "dwarf_stack_trace_test.dart:23",
- "main", // dispatcher
- "dwarf_stack_trace_test.dart:20"]));
+ expect(
+ symbolizedStack.toString(),
+ stringContainsInOrder([
+ "bar",
+ "dwarf_stack_trace_test.dart:12",
+ "foo",
+ "dwarf_stack_trace_test.dart:17",
+ "main",
+ "dwarf_stack_trace_test.dart:23",
+ "main", // dispatcher
+ "dwarf_stack_trace_test.dart:20"
+ ]));
}

Powered by Google App Engine
This is Rietveld 408576698