1
0
mirror of synced 2026-08-05 15:06:54 +00:00

chore: remove more upstreamed stuff (#244)

This commit is contained in:
Yury Semikhatsky
2021-02-01 13:34:23 -08:00
committed by GitHub
parent 4c165c2069
commit 5af091880f
@@ -489,13 +489,6 @@ class Method extends Element {
private static Map<String, String[]> customSignature = new HashMap<>();
static {
customSignature.put("Page.setViewportSize", new String[]{"void setViewportSize(int width, int height);"});
// The method is deprecated in ts, just remove it in Java.
customSignature.put("BrowserContext.setHTTPCredentials", new String[0]);
// No connect for now.
customSignature.put("BrowserType.connect", new String[0]);
customSignature.put("BrowserType.launchServer", new String[0]);
// We don't expose Chromium-specific APIs at the moment.
customSignature.put("Page.coverage", new String[0]);
customSignature.put("BrowserContext.route", new String[]{
"void route(String url, Consumer<Route> handler);",
"void route(Pattern url, Consumer<Route> handler);",
@@ -572,11 +565,6 @@ class Method extends Element {
customSignature.put("Page.setInputFiles", setInputFilesWithSelector);
customSignature.put("Frame.setInputFiles", setInputFilesWithSelector);
// We only have typed onPage/onDownload/... event listeners in Java.
customSignature.put("Page.waitForEvent", new String[] {});
customSignature.put("BrowserContext.waitForEvent", new String[] {});
customSignature.put("WebSocket.waitForEvent", new String[] {});
customSignature.put("Page.waitForRequest", new String[] {
"default Request waitForRequest(Runnable code) { return waitForRequest(code, (Predicate<Request>) null, null); }",
"default Request waitForRequest(Runnable code, String urlGlob) { return waitForRequest(code, urlGlob, null); }",