format the T-300 file-ref test
dart format was missed on this file in the T-300 commit; the pre-push gate's --set-exit-if-changed caught it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -26,10 +26,12 @@ void main() {
|
|||||||
testWidgets('a bare repo path in prose is tappable and opens with no line', (tester) async {
|
testWidgets('a bare repo path in prose is tappable and opens with no line', (tester) async {
|
||||||
String? path;
|
String? path;
|
||||||
int? line = -1;
|
int? line = -1;
|
||||||
await tester.pumpWidget(harness(f, md('see lib/app.dart for the entry point', onOpen: (p, l) {
|
await tester.pumpWidget(harness(
|
||||||
path = p;
|
f,
|
||||||
line = l;
|
md('see lib/app.dart for the entry point', onOpen: (p, l) {
|
||||||
})));
|
path = p;
|
||||||
|
line = l;
|
||||||
|
})));
|
||||||
await tester.pump();
|
await tester.pump();
|
||||||
|
|
||||||
await tester.tap(find.text('lib/app.dart'));
|
await tester.tap(find.text('lib/app.dart'));
|
||||||
@@ -41,10 +43,12 @@ void main() {
|
|||||||
testWidgets('a path:line ref opens at the line', (tester) async {
|
testWidgets('a path:line ref opens at the line', (tester) async {
|
||||||
String? path;
|
String? path;
|
||||||
int? line;
|
int? line;
|
||||||
await tester.pumpWidget(harness(f, md('crash at lib/app.dart:42 today', onOpen: (p, l) {
|
await tester.pumpWidget(harness(
|
||||||
path = p;
|
f,
|
||||||
line = l;
|
md('crash at lib/app.dart:42 today', onOpen: (p, l) {
|
||||||
})));
|
path = p;
|
||||||
|
line = l;
|
||||||
|
})));
|
||||||
await tester.pump();
|
await tester.pump();
|
||||||
|
|
||||||
await tester.tap(find.text('lib/app.dart:42'));
|
await tester.tap(find.text('lib/app.dart:42'));
|
||||||
@@ -66,10 +70,12 @@ void main() {
|
|||||||
testWidgets('a backticked path is clickable', (tester) async {
|
testWidgets('a backticked path is clickable', (tester) async {
|
||||||
String? path;
|
String? path;
|
||||||
int? line;
|
int? line;
|
||||||
await tester.pumpWidget(harness(f, md('open `lib/app.dart:7`', onOpen: (p, l) {
|
await tester.pumpWidget(harness(
|
||||||
path = p;
|
f,
|
||||||
line = l;
|
md('open `lib/app.dart:7`', onOpen: (p, l) {
|
||||||
})));
|
path = p;
|
||||||
|
line = l;
|
||||||
|
})));
|
||||||
await tester.pump();
|
await tester.pump();
|
||||||
|
|
||||||
await tester.tap(find.text('lib/app.dart:7'));
|
await tester.tap(find.text('lib/app.dart:7'));
|
||||||
|
|||||||
Reference in New Issue
Block a user