Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
/enginePublic archive

Commit865ac8c

Browse files
authored
[web] remove platform initialization timeout (#29011)
1 parent009d1f6 commit865ac8c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

‎lib/web_ui/lib/src/ui/test_embedding.dart‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Future<dynamic> ensureTestPlatformInitializedThenRunTest(dynamic Function() body
1919
return _testPlatformInitializedFuture!.then<dynamic>((_)=>body());
2020
}
2121

22-
// TODO(yjbanov): can we make this late non-null? See https://github.com/dart-lang/sdk/issues/42214
2322
Future<void>? _platformInitializedFuture;
2423

2524
Future<void>webOnlyInitializeTestDomRenderer({double devicePixelRatio=3.0}) {
@@ -35,14 +34,10 @@ Future<void> webOnlyInitializeTestDomRenderer({double devicePixelRatio = 3.0}) {
3534
engine.scheduleFrameCallback= () {};
3635
debugEmulateFlutterTesterEnvironment=true;
3736

37+
// Initialize platform once and reuse across all tests.
3838
if (_platformInitializedFuture!=null) {
3939
return _platformInitializedFuture!;
4040
}
41-
42-
// Only load the Ahem font once and await the same future in all tests.
4341
return _platformInitializedFuture=
44-
webOnlyInitializePlatform(assetManager: engine.WebOnlyMockAssetManager())
45-
.timeout(constDuration(seconds:2), onTimeout: ()async {
46-
throwException('Timed out loading Ahem font.');
47-
});
42+
webOnlyInitializePlatform(assetManager: engine.WebOnlyMockAssetManager());
4843
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp