| 
24 | 24 | import static org.openqa.selenium.Platform.IOS;  | 
25 | 25 | import static org.openqa.selenium.Platform.LINUX;  | 
26 | 26 | import static org.openqa.selenium.Platform.MAC;  | 
 | 27 | +import static org.openqa.selenium.Platform.SEQUOIA;  | 
27 | 28 | import static org.openqa.selenium.Platform.UNIX;  | 
28 | 29 | import static org.openqa.selenium.Platform.VISTA;  | 
 | 30 | +import static org.openqa.selenium.Platform.WIN11;  | 
29 | 31 | import static org.openqa.selenium.Platform.WIN8;  | 
30 | 32 | import static org.openqa.selenium.Platform.WIN8_1;  | 
31 | 33 | import static org.openqa.selenium.Platform.WINDOWS;  | 
@@ -57,6 +59,11 @@ void testWin81IsWindows() {  | 
57 | 59 |     assertThat(WIN8_1.is(WINDOWS)).isTrue();  | 
58 | 60 |   }  | 
59 | 61 | 
 
  | 
 | 62 | +  @Test  | 
 | 63 | +  void testWindows11IsWindows() {  | 
 | 64 | +    assertThat(WIN11.is(WINDOWS)).isTrue();  | 
 | 65 | +  }  | 
 | 66 | + | 
60 | 67 |   @Test  | 
61 | 68 |   void testLinuxIsUnix() {  | 
62 | 69 |     assertThat(LINUX.is(UNIX)).isTrue();  | 
@@ -165,16 +172,41 @@ void testWindowsIsWindows() {  | 
165 | 172 |     assertThat(WINDOWS).isEqualTo(Platform.fromString("windows"));  | 
166 | 173 |   }  | 
167 | 174 | 
 
  | 
 | 175 | +  @Test  | 
 | 176 | +  void testWindowsIsNotEmpty() {  | 
 | 177 | +    assertThat(WINDOWS).isNotEqualTo(Platform.fromString(""));  | 
 | 178 | +  }  | 
 | 179 | + | 
168 | 180 |   @Test  | 
169 | 181 |   void canParseMacOsXCorrectly() {  | 
170 | 182 |     assertThat(Platform.fromString("Mac OS X")).isEqualTo(MAC);  | 
171 | 183 |   }  | 
172 | 184 | 
 
  | 
 | 185 | +  @Test  | 
 | 186 | +  void testAnyIsFromStringEmpty() {  | 
 | 187 | +    assertThat(ANY).isEqualTo(Platform.fromString(""));  | 
 | 188 | +  }  | 
 | 189 | + | 
 | 190 | +  @Test  | 
 | 191 | +  void testAnyIsFromStringAny() {  | 
 | 192 | +    assertThat(ANY).isEqualTo(Platform.fromString("any"));  | 
 | 193 | +  }  | 
 | 194 | + | 
 | 195 | +  @Test  | 
 | 196 | +  void testAnyIsNotFromStringWindows() {  | 
 | 197 | +    assertThat(ANY).isNotEqualTo(Platform.fromString("windows"));  | 
 | 198 | +  }  | 
 | 199 | + | 
173 | 200 |   @Test  | 
174 | 201 |   void catalinaIsMac() {  | 
175 | 202 |     assertThat(CATALINA.is(MAC)).isTrue();  | 
176 | 203 |   }  | 
177 | 204 | 
 
  | 
 | 205 | +  @Test  | 
 | 206 | +  void sequoiaIsMac() {  | 
 | 207 | +    assertThat(SEQUOIA.is(MAC)).isTrue();  | 
 | 208 | +  }  | 
 | 209 | + | 
178 | 210 |   @Test  | 
179 | 211 |   void canParseCatalinaFromOSName() {  | 
180 | 212 |     assertThat(Platform.fromString("macOS 10.15")).isEqualTo(CATALINA);  | 
 | 
0 commit comments