also looking at this
fix(ios): preserve specific protocol errors during dispatch
#303
3 files
+51
-11
| @@ -822,6 +822,15 @@ test "an action the namespace does not serve is reported, not ignored" { | ||
| 822 | 822 | } |
| 823 | 823 | } |
| 824 | 824 | |
| 825 | test "both system presenter lookups report a missing webview explicitly" { | |
| 826 | if (!is_darwin) return error.SkipZigTest; | |
| 827 | const saved = ios_dispatch.getWebView(); | |
| 828 | defer ios_dispatch.setWebView(saved); | |
| 829 | ios_dispatch.setWebView(null); | |
| 830 | try testing.expectError(bridge_error.BridgeError.WebViewHandleNotSet, uikit.topmostViewController()); | |
| 831 | try testing.expectError(bridge_error.BridgeError.WebViewHandleNotSet, uikit.keyWindowScene()); | |
| 832 | } | |
| 833 | ||
| 825 | 834 | test "openURL without a url reports it rather than settling nothing" { |
| 826 | 835 | // Swift's `if let` fell through here and never resolved or rejected the |
| 827 | 836 | // callback, so the page waited out a 30-second timeout with no cause to |