style(brand): 统一三语与双平台 YMB 展示名
This commit is contained in:
1 parent
52e1883862
commit
bcf2dfe02a
13 files changed
+33
-30
No files matched your search
@@ -22,7 +22,7 @@ void main() {
|
||||
test('should_use_ymb_when_resolving_each_app_locale', () async {
|
||||
for (final locale in AppLocalizations.supportedLocales) {
|
||||
final l10n = await AppLocalizations.delegate.load(locale);
|
||||
expect(l10n.appName, 'ymb');
|
||||
expect(l10n.appName, 'YMB');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -118,11 +118,11 @@ void main() {
|
||||
final manifest = File(
|
||||
'android/app/src/main/AndroidManifest.xml',
|
||||
).readAsStringSync();
|
||||
expect(manifest, contains('android:label="ymb"'));
|
||||
expect(manifest, contains('android:label="YMB"'));
|
||||
final plist = File('ios/Runner/Info.plist').readAsStringSync();
|
||||
expect(
|
||||
RegExp(
|
||||
r'<key>CFBundleDisplayName</key>\s*<string>ymb</string>',
|
||||
r'<key>CFBundleDisplayName</key>\s*<string>YMB</string>',
|
||||
).hasMatch(plist),
|
||||
isTrue,
|
||||
);
|
||||
|
||||
@@ -29,9 +29,9 @@ void main() {
|
||||
for (final locale in const [Locale('en'), Locale('zh'), Locale('id')]) {
|
||||
final l10n = await AppLocalizations.delegate.load(locale);
|
||||
|
||||
expect(l10n.appName, 'ymb', reason: '$locale appName');
|
||||
expect(l10n.appName, 'YMB', reason: '$locale appName');
|
||||
expect(l10n.brandMark, 'YMB', reason: '$locale brandMark');
|
||||
expect(l10n.shareFooter, 'ymb', reason: '$locale shareFooter');
|
||||
expect(l10n.shareFooter, 'YMB', reason: '$locale shareFooter');
|
||||
expect(l10n.brandMark.toLowerCase(), isNot(contains('demo')));
|
||||
expect(l10n.shareFooter.toLowerCase(), isNot(contains('demo')));
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Author: fruit.com.cn
|
||||
// 验证短剧本地化文案与分享内容。
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:fruitshorts/core/data/models/drama.dart';
|
||||
import 'package:fruitshorts/core/formatting/localized_content.dart';
|
||||
@@ -127,7 +130,7 @@ void main() {
|
||||
|
||||
expect(copies, hasLength(3));
|
||||
for (final copy in copies) {
|
||||
expect(copy, contains('ymb'));
|
||||
expect(copy, contains('YMB'));
|
||||
expect(copy.split('\n'), hasLength(3));
|
||||
expect(copy.split('\n').every((line) => line.isNotEmpty), isTrue);
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ void main() {
|
||||
await tester.tap(find.byKey(const Key('player-rail-share')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(sharedText, contains('City Lights & Velvet Nights'));
|
||||
expect(sharedText, contains('ymb'));
|
||||
expect(sharedText, contains('YMB'));
|
||||
expect(tester.takeException(), isNull);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user