Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add more pumpAndSettles
  • Loading branch information
bparrishMines committed Jan 20, 2023
commit abbd6374d1f55e8113bca6c8cbca9e3a6134e220
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ Future<void> main() async {
..setJavaScriptMode(JavaScriptMode.unrestricted)
..setUserAgent('Custom_User_Agent1');

await tester.pumpAndSettle();

final String customUserAgent2 = await _getUserAgent(controller);
expect(customUserAgent2, 'Custom_User_Agent1');
});
Expand Down Expand Up @@ -486,6 +488,8 @@ Future<void> main() async {
),
);

await tester.pumpAndSettle();

await pageLoaded.future;

bool isPaused =
Expand Down Expand Up @@ -864,6 +868,8 @@ Future<void> main() async {
..setAllowsBackForwardNavigationGestures(true)
..loadRequest(LoadRequestParams(uri: Uri.parse(primaryUrl)));

await tester.pumpAndSettle();

final String? currentUrl = await controller.currentUrl();
expect(currentUrl, primaryUrl);
});
Expand Down Expand Up @@ -901,6 +907,8 @@ Future<void> main() async {
)..setOnPageFinished((_) => pageLoaded.complete()))
..loadRequest(LoadRequestParams(uri: Uri.parse(primaryUrl)));

await tester.pumpAndSettle();

expect(controller.currentUrl(), completion(primaryUrl));
await pageLoaded.future;
pageLoaded = Completer<void>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -379,10 +379,12 @@
/* Begin PBXShellScriptBuildPhase section */
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
);
name = "Thin Binary";
outputPaths = (
Expand Down Expand Up @@ -415,6 +417,7 @@
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@
<false/>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
</plist>