Skip to content

Commit

Permalink
Delete doubled test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivirtex committed Feb 25, 2023
1 parent 4c41fba commit e449574
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions packages/flutter/test/cupertino/app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -424,33 +424,6 @@ void main() {

debugBrightnessOverride = null;
});

testWidgets('Properties of CupertinoThemeData are effective', (WidgetTester tester) async {
await tester.pumpWidget(
CupertinoApp(
theme: const CupertinoThemeData(
primaryColor: CupertinoColors.activeOrange,
),
home: CupertinoPageScaffold(
child: Builder(
builder: (BuildContext context) {
return Text(
'Primary color',
style: TextStyle(
color: CupertinoTheme.of(context).primaryColor,
),
);
},
),
),
),
);

final RenderParagraph paragraph = tester.renderObject(find.text('Primary color'));
final CupertinoDynamicColor textColor = paragraph.text.style!.color! as CupertinoDynamicColor;

expect(textColor, CupertinoColors.activeOrange);
});
}

class MockScrollBehavior extends ScrollBehavior {
Expand Down

0 comments on commit e449574

Please sign in to comment.