From 3a8935c7a4301bbbfa83031f5297512078e1d1ad Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Wed, 30 Sep 2020 18:26:12 -0700 Subject: [PATCH] fix: add missing files --- .../com/microsoft/playwright/Deferred.java | 21 +++++++ .../com/microsoft/playwright/Listener.java | 21 +++++++ lib/src/test/resources/offscreenbuttons.html | 55 +++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 lib/src/main/java/com/microsoft/playwright/Deferred.java create mode 100644 lib/src/main/java/com/microsoft/playwright/Listener.java create mode 100644 lib/src/test/resources/offscreenbuttons.html diff --git a/lib/src/main/java/com/microsoft/playwright/Deferred.java b/lib/src/main/java/com/microsoft/playwright/Deferred.java new file mode 100644 index 00000000..65a5cc3a --- /dev/null +++ b/lib/src/main/java/com/microsoft/playwright/Deferred.java @@ -0,0 +1,21 @@ +/** + * Copyright (c) Microsoft Corporation. + *

+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.microsoft.playwright; + +public interface Deferred { + T get(); +} diff --git a/lib/src/main/java/com/microsoft/playwright/Listener.java b/lib/src/main/java/com/microsoft/playwright/Listener.java new file mode 100644 index 00000000..ae88fbef --- /dev/null +++ b/lib/src/main/java/com/microsoft/playwright/Listener.java @@ -0,0 +1,21 @@ +/** + * Copyright (c) Microsoft Corporation. + *

+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.microsoft.playwright; + +public interface Listener { + void handle(T event); +} diff --git a/lib/src/test/resources/offscreenbuttons.html b/lib/src/test/resources/offscreenbuttons.html new file mode 100644 index 00000000..b7f381de --- /dev/null +++ b/lib/src/test/resources/offscreenbuttons.html @@ -0,0 +1,55 @@ + +

+ + + + + + + + + + + +
+