fix(app): polish glass diff and pipeline controls

This commit is contained in:
2026-10-31 03:22:52 +00:00
parent 3641083bcc
commit 5bed73e658
9 changed files with 76 additions and 71 deletions
@@ -76,13 +76,10 @@ void _expectWholeLabel(WidgetTester tester, Finder finder, String label) {
}
void main() {
test(
'patch typography preserves the native host style without overrides',
() {
const native = TextStyle(fontSize: 19, fontFamily: 'host-font');
expect(nativeDiffText(native), same(native));
},
);
test('patch typography uses the bundled fixed-width font', () {
const native = TextStyle(fontSize: 19, fontFamily: 'host-font');
expect(nativeDiffText(native), native.copyWith(fontFamily: 'RobotoMono'));
});
testWidgets(
'light and dark themes give additions and removals distinct hues',
@@ -164,6 +161,14 @@ void main() {
final added = spans.firstWhere((span) => span.text == '+2');
final removed = spans.firstWhere((span) => span.text == '-2');
expect(added.style!.color, isNot(removed.style!.color));
expect(
find.byWidgetPredicate((widget) {
if (widget is! RichText || widget.text is! TextSpan) return false;
return (widget.text as TextSpan).toPlainText() == '+2 -2';
}),
findsOneWidget,
reason: 'the file header is the only visible line-count summary',
);
});
testWidgets('the raw view scrolls long lines instead of wrapping them', (