File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import '../example_data.dart' as eg;
16
16
import '../model/binding.dart' ;
17
17
import '../model/test_store.dart' ;
18
18
import '../test_images.dart' ;
19
+ import 'text_test.dart' ;
19
20
20
21
void main () {
21
22
TestZulipBinding .ensureInitialized ();
@@ -36,14 +37,6 @@ void main() {
36
37
await fontLoader.load ();
37
38
}
38
39
39
- // From trying the options on an iPhone 13 Pro running iOS 16.6.1:
40
- const textScaleFactors = < double > [
41
- 0.8235 , // smallest
42
- 1 ,
43
- 1.3529 , // largest without using the "Larger Accessibility Sizes" setting
44
- 3.1176 , // largest
45
- ];
46
-
47
40
Future <void > setupChipsInBox (WidgetTester tester, {
48
41
required List <Reaction > reactions,
49
42
double ? width,
@@ -76,7 +69,7 @@ void main() {
76
69
for (final displayEmojiReactionUsers in [true , false ]) {
77
70
for (final emojiset in [Emojiset .text, Emojiset .google]) {
78
71
for (final textDirection in TextDirection .values) {
79
- for (final textScaleFactor in textScaleFactors ) {
72
+ for (final textScaleFactor in kTextScaleFactors ) {
80
73
Future <void > runSmokeTest (
81
74
String description,
82
75
List <Reaction > reactions, {
Original file line number Diff line number Diff line change @@ -6,6 +6,14 @@ import 'package:zulip/widgets/text.dart';
6
6
7
7
import '../flutter_checks.dart' ;
8
8
9
+ // From trying the options on an iPhone 13 Pro running iOS 16.6.1:
10
+ const kTextScaleFactors = < double > [
11
+ 0.8235 , // smallest
12
+ 1 ,
13
+ 1.3529 , // largest without using the "Larger Accessibility Sizes" setting
14
+ 3.1176 , // largest
15
+ ];
16
+
9
17
void main () {
10
18
group ('zulipTypography' , () {
11
19
Future <Typography > getZulipTypography (WidgetTester tester, {
You can’t perform that action at this time.
0 commit comments