Index: pkg/stack_trace/test/chain_test.dart |
diff --git a/pkg/stack_trace/test/chain_test.dart b/pkg/stack_trace/test/chain_test.dart |
index 4a58a64d9792ce6e1fd0f4e9158a91bfd39bfa65..4d31acbb47f1964a2407a51d6dc23153042fb943 100644 |
--- a/pkg/stack_trace/test/chain_test.dart |
+++ b/pkg/stack_trace/test/chain_test.dart |
@@ -6,6 +6,7 @@ library chain_test; |
import 'dart:async'; |
+import 'package:path/path.dart' as p; |
import 'package:stack_trace/stack_trace.dart'; |
import 'package:unittest/unittest.dart'; |
@@ -336,6 +337,7 @@ void main() { |
}); |
}); |
+ var userSlashCode = p.join('user', 'code.dart'); |
group('Chain.terse', () { |
test('makes each trace terse', () { |
var chain = new Chain([ |
@@ -355,12 +357,12 @@ void main() { |
expect(chain.terse.toString(), equals( |
'dart:core Bar.baz\n' |
- 'user/code.dart 10:11 Bang.qux\n' |
+ '$userSlashCode 10:11 Bang.qux\n' |
Bob Nystrom
2013/12/02 22:37:22
The fact that this is the exact same number of cha
|
'dart:core Zop.zoop\n' |
'===== asynchronous gap ===========================\n' |
- 'user/code.dart 10:11 Bang.qux\n' |
+ '$userSlashCode 10:11 Bang.qux\n' |
'dart:core Zip.zap\n' |
- 'user/code.dart 10:11 Zop.zoop\n')); |
+ '$userSlashCode 10:11 Zop.zoop\n')); |
}); |
test('eliminates internal-only traces', () { |
@@ -378,10 +380,10 @@ void main() { |
]); |
expect(chain.terse.toString(), equals( |
- 'user/code.dart 10:11 Foo.bar\n' |
+ '$userSlashCode 10:11 Foo.bar\n' |
'dart:core Bar.baz\n' |
'===== asynchronous gap ===========================\n' |
- 'user/code.dart 10:11 Foo.bar\n' |
+ '$userSlashCode 10:11 Foo.bar\n' |
'dart:core Bar.baz\n')); |
}); |
}); |
@@ -397,9 +399,9 @@ void main() { |
]).toTrace(); |
expect(trace.toString(), equals( |
- 'user/code.dart 10:11 Foo.bar\n' |
+ '$userSlashCode 10:11 Foo.bar\n' |
'dart:core 10:11 Bar.baz\n' |
- 'user/code.dart 10:11 Foo.bar\n' |
+ '$userSlashCode 10:11 Foo.bar\n' |
'dart:core 10:11 Bar.baz\n')); |
}); |