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

Unified Diff: pkg/stack_trace/test/chain_test.dart

Issue 92863003: Fix stack trace chain tests on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'));
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698