Skip to content

Commit a4caa37

Browse files
committed
revert isWebkitWindows changes
1 parent e41c504 commit a4caa37

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

playwright/src/test/java/com/microsoft/playwright/TestBrowserContextCookies.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
3131
import static org.junit.jupiter.api.Assertions.*;
3232

3333
public class TestBrowserContextCookies extends TestBase {
34-
static boolean isWebkitWindows() {
35-
return isWebKit() && isWindows;
36-
}
37-
3834
@Test
3935
void shouldGetACookie() {
4036
page.navigate(server.EMPTY_PAGE);
@@ -100,6 +96,10 @@ void shouldProperlyReportHttpOnlyCookie() {
10096
assertTrue(cookies.get(0).httpOnly);
10197
}
10298

99+
static boolean isWebKitWindows() {
100+
return isWebKit() && getOS() == Utils.OS.WINDOWS;
101+
}
102+
103103
@Test
104104
@DisabledIf(value="isWebKitWindows", disabledReason="fail")
105105
void shouldProperlyReportStrictSameSiteCookie() {
@@ -192,6 +192,10 @@ void shouldGetCookiesFromMultipleUrls() {
192192
"}]", cookies);
193193
}
194194

195+
static boolean isWebkitWindows() {
196+
return isWebKit() && isWindows;
197+
}
198+
195199
@Test
196200
@DisabledIf(value="isWebkitWindows", disabledReason="Same site is not implemented in curl")
197201
void shouldAcceptSameSiteAttribute() {

0 commit comments

Comments
 (0)