Skip to content

Commit

Permalink
Adding more tests for Platform
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Jun 26, 2014
1 parent 2292453 commit c7b0193
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions java/client/test/org/openqa/selenium/PlatformTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,31 @@ public void testShouldIdentifyWindowsVariants() {
assertAllAre(Platform.WINDOWS, "Windows 2003");
}

@Test
public void testXpIsWindows() {
assertTrue(Platform.XP.is(Platform.WINDOWS));
}

@Test
public void testVistaIsWindows() {
assertTrue(Platform.VISTA.is(Platform.WINDOWS));
}

@Test
public void testWin8IsWindows() {
assertTrue(Platform.WIN8.is(Platform.WINDOWS));
}

@Test
public void testWin81IsWindows() {
assertTrue(Platform.WIN8_1.is(Platform.WINDOWS));
}

@Test
public void testLinuxIsUnix() {
assertTrue(Platform.LINUX.is(Platform.UNIX));
}

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

0 comments on commit c7b0193

Please sign in to comment.