chore: remove custom generator code for Response.finished (#248)

This commit is contained in:
Yury Semikhatsky 2021-02-02 12:49:20 -08:00 committed by GitHub
parent 301234aa4f
commit d14d35610e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 26 deletions

View File

@ -1 +1 @@
1.9.0-next-1612292242000
1.9.0-next-1612297085000

View File

@ -292,6 +292,9 @@ class TypeRef extends Element {
if ("any".equals(name)) {
return "Object";
}
if ("Readable".equals(name)) {
return "InputStream";
}
if ("Buffer".equals(name)) {
return "byte[]";
}

View File

@ -119,17 +119,6 @@ class Types {
add("Browser.newContext.options.httpCredentials", "Object", "BrowserContext.HTTPCredentials", new Empty());
add("Browser.newPage.options.httpCredentials", "Object", "BrowserContext.HTTPCredentials", new Empty());
add("BrowserType.launchPersistentContext.options.httpCredentials", "Object", "BrowserContext.HTTPCredentials", new Empty());
add("BrowserContext.setHTTPCredentials.httpCredentials", "Object|null", "do nothing", new Empty());
// js functions are always passed as text in java.
add("Page.$eval.pageFunction", "function(Element)", "String");
add("Page.$$eval.pageFunction", "function(Array<Element>)", "String");
add("Frame.$eval.pageFunction", "function(Element)", "String");
add("Frame.$$eval.pageFunction", "function(Array<Element>)", "String");
add("ElementHandle.$eval.pageFunction", "function(Element)", "String");
add("ElementHandle.$$eval.pageFunction", "function(Array<Element>)", "String");
add("ElementHandle.evaluate.pageFunction", "function", "String");
add("JSHandle.evaluate.pageFunction", "function", "String");
add("BrowserContext.exposeBinding.callback", "function", "Page.Binding");
add("BrowserContext.exposeFunction.callback", "function", "Page.Function");
@ -213,25 +202,11 @@ class Types {
add("Browser.newPage.options.storageState", "Object|path", "BrowserContext.StorageState", new Empty());
add("Browser.newPage.options.geolocation", "Object", "Geolocation", new Empty());
add("BrowserType.launchPersistentContext.options.geolocation", "Object", "Geolocation", new Empty());
add("Download.createReadStream", "Readable|null", "InputStream", new Empty());
// node.js types
add("BrowserServer.process", "ChildProcess", "Object");
add("Response.finished", "Error|null", "String");
add("Route.continue_.options", "Object", "ContinueOptions");
// TODO: fix upstream types!
add("Request.headers", "Object<string, string>", "Map<String, String>", new Empty());
add("Response.headers", "Object<string, string>", "Map<String, String>", new Empty());
add("Browser.newContext.options.extraHTTPHeaders", "Object<string, string>", "Map<String, String>", new Empty());
add("Browser.newPage.options.extraHTTPHeaders", "Object<string, string>", "Map<String, String>", new Empty());
add("BrowserType.launchPersistentContext.options.extraHTTPHeaders", "Object<string, string>", "Map<String, String>", new Empty());
add("Page.setExtraHTTPHeaders.headers", "Object<string, string>", "Map<String, String>", new Empty());
add("BrowserContext.setExtraHTTPHeaders.headers", "Object<string, string>", "Map<String, String>", new Empty());
add("Route.continue_.options.headers", "Object<string, string>", "Map<String, String>", new Empty());
add("Route.fulfill.options.headers", "Object<string, string>", "Map<String, String>", new Empty());
add("Playwright.devices", "Object", "Map<String, DeviceDescriptor>", new Empty());
}