| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library trace_test; | |
| 6 | |
| 7 import 'package:path/path.dart' as path; | 5 import 'package:path/path.dart' as path; |
| 8 import 'package:stack_trace/stack_trace.dart'; | 6 import 'package:stack_trace/stack_trace.dart'; |
| 9 import 'package:test/test.dart'; | 7 import 'package:test/test.dart'; |
| 10 | 8 |
| 11 String getStackTraceString() { | 9 String getStackTraceString() { |
| 12 try { | 10 try { |
| 13 throw ''; | 11 throw ''; |
| 14 } catch (_, stackTrace) { | 12 } catch (_, stackTrace) { |
| 15 return stackTrace.toString(); | 13 return stackTrace.toString(); |
| 16 } | 14 } |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 '''); | 419 '''); |
| 422 | 420 |
| 423 expect(trace.foldFrames((frame) => true).toString(), equals(r''' | 421 expect(trace.foldFrames((frame) => true).toString(), equals(r''' |
| 424 .g"cs$#:b";a#>sw{*{ul$"$xqwr`p | 422 .g"cs$#:b";a#>sw{*{ul$"$xqwr`p |
| 425 %+j-?uppx<([j@#nu{{>*+$%x-={`{ | 423 %+j-?uppx<([j@#nu{{>*+$%x-={`{ |
| 426 !e($b{nj)zs?cgr%!;bmw.+$j+pfj~ | 424 !e($b{nj)zs?cgr%!;bmw.+$j+pfj~ |
| 427 ''')); | 425 ''')); |
| 428 }); | 426 }); |
| 429 }); | 427 }); |
| 430 } | 428 } |
| OLD | NEW |