Skip to content

Commit

Permalink
[java] fix aliases for windows 7 and vista platform name
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Sep 23, 2022
1 parent 0b3bc09 commit 31190f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion java/src/org/openqa/selenium/Platform.java
Expand Up @@ -58,7 +58,7 @@ public String toString() {
/**
* For versions of Windows that "feel like" Windows Vista.
*/
VISTA("windows 7", "win7") {
VISTA("windows vista", "Windows Server 2008") {
@Override
public Platform family() {
return WINDOWS;
Expand Down
2 changes: 1 addition & 1 deletion java/test/org/openqa/selenium/PlatformTest.java
Expand Up @@ -100,7 +100,7 @@ public void testShouldIdentifyXPVariants() {

@Test
public void testShouldIdentifyVistaVariants() {
assertAllAre(Platform.VISTA, "Windows Vista", "windows server 2008", "Windows 7", "win7");
assertAllAre(Platform.VISTA, "Windows Vista", "windows server 2008");
}

@Test
Expand Down
Expand Up @@ -94,7 +94,7 @@ public void testExtractDebugLogLevelFromCapabilityMap() {
@Test
public void shouldAutomaticallyConvertPlatformFromStringToEnum() {
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability(CapabilityType.PLATFORM_NAME, "windows 7");
caps.setCapability(CapabilityType.PLATFORM_NAME, "Windows Server 2008");
assertThat(caps.getCapability(CapabilityType.PLATFORM_NAME)).isEqualTo(Platform.VISTA);
caps.setCapability(CapabilityType.PLATFORM_NAME, "win8.1");
assertThat(caps.getCapability(CapabilityType.PLATFORM_NAME)).isEqualTo(Platform.WIN8_1);
Expand Down

0 comments on commit 31190f8

Please sign in to comment.