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

Side by Side Diff: tests/corelib_2/stacktrace_current_test.dart

Issue 3004073002: Remove corelib/corelib_strong and migrate last two remaining tests. (Closed)
Patch Set: Created 3 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "dart:convert" show LineSplitter; 5 import "dart:convert" show LineSplitter;
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 8
9 void main() { 9 void main() {
10 var st0; 10 var st0;
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 28
29 String findMain(StackTrace stack) { 29 String findMain(StackTrace stack) {
30 var string = "$stack"; 30 var string = "$stack";
31 var lines = LineSplitter.split(string).toList(); 31 var lines = LineSplitter.split(string).toList();
32 while (lines.isNotEmpty && !lines.first.contains("main")) { 32 while (lines.isNotEmpty && !lines.first.contains("main")) {
33 lines.removeAt(0); 33 lines.removeAt(0);
34 } 34 }
35 return lines.join("\n"); 35 return lines.join("\n");
36 } 36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698