1
0
mirror of synced 2026-07-07 17:10:23 +00:00

fix: rename Route.continue_ to Route.resume (#253)

This commit is contained in:
Yury Semikhatsky
2021-02-03 14:14:35 -08:00
committed by GitHub
parent ee4f8698da
commit 6dbebaed5a
15 changed files with 77 additions and 95 deletions
@@ -888,7 +888,7 @@ class Field extends Element {
output.add(offset + "}");
return;
}
if ("Route.continue_.options.postData".equals(jsonPath)) {
if ("Route.resume.options.postData".equals(jsonPath)) {
output.add(offset + "public " + parentClass + " withPostData(String postData) {");
output.add(offset + " this.postData = postData.getBytes(StandardCharsets.UTF_8);");
output.add(offset + " return this;");
@@ -190,7 +190,7 @@ class Types {
add("ElementHandle.selectOption.values", "Array<ElementHandle>|Array<Object>|Array<string>|ElementHandle|Object|null|string", "String");
add("ElementHandle.setInputFiles.files", "Array<Object>|Array<path>|Object|path", "String");
add("FileChooser.setFiles.files", "Array<Object>|Array<path>|Object|path", "String");
add("Route.continue_.options.postData", "Buffer|string", "byte[]", new Empty());
add("Route.resume.options.postData", "Buffer|string", "byte[]", new Empty());
add("Route.fulfill.options.body", "Buffer|string", "String");
add("Logger.log.message", "string|Error", "String");
@@ -199,9 +199,6 @@ class Types {
add("Browser.newPage.options.geolocation", "Object", "Geolocation", new Empty());
add("BrowserType.launchPersistentContext.options.geolocation", "Object", "Geolocation", new Empty());
// node.js types
add("Route.continue_.options", "Object", "ContinueOptions");
// TODO: fix upstream types!
add("Playwright.devices", "Object", "Map<String, DeviceDescriptor>", new Empty());
}