Skip to content

Commit

Permalink
Updating .NET tests for Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Oct 8, 2015
1 parent d249232 commit fabe89a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions dotnet/test/common/AlertsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ public void SwitchingToMissingAlertThrows()
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
public void SwitchingToMissingAlertInAClosedWindowThrows()
{
driver.Url = alertsPage;
string mainWindow = driver.CurrentWindowHandle;
try
{
Expand Down Expand Up @@ -538,6 +539,7 @@ public void ShouldNotHandleAlertInAnotherWindow()
[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
[IgnoreBrowser(Browser.Firefox, "After version 27, Firefox does not trigger alerts on unload.")]
[IgnoreBrowser(Browser.Chrome)]
[IgnoreBrowser(Browser.Safari)]
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
Expand All @@ -562,6 +564,7 @@ public void ShouldHandleAlertOnPageUnload()
[Category("JavaScript")]
[IgnoreBrowser(Browser.Android, "alerts do not pop up when a window is closed")]
[IgnoreBrowser(Browser.Chrome)]
[IgnoreBrowser(Browser.Firefox, "After version 27, Firefox does not trigger alerts on unload.")]
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
[IgnoreBrowser(Browser.Safari)]
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
Expand Down
7 changes: 0 additions & 7 deletions dotnet/test/common/TypingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -637,13 +637,7 @@ public void ShouldNotTypeIntoElementsThatPreventKeyDownEvents()

[Test]
[Category("Javascript")]
[IgnoreBrowser(Browser.IE, "Firefox-specific test. IE does not report key press event.")]
[IgnoreBrowser(Browser.Chrome, "firefox-specific")]
[IgnoreBrowser(Browser.PhantomJS, "firefox-specific")]
[IgnoreBrowser(Browser.Safari, "firefox-specific")]
[IgnoreBrowser(Browser.Opera, "firefox-specific")]
[IgnoreBrowser(Browser.IPhone, "firefox-specific")]
[IgnoreBrowser(Browser.Android, "firefox-specific")]
public void GenerateKeyPressEventEvenWhenElementPreventsDefault()
{
driver.Url = javascriptPage;
Expand All @@ -653,7 +647,6 @@ public void GenerateKeyPressEventEvenWhenElementPreventsDefault()

silent.SendKeys("s");
string text = result.Text;
Assert.IsTrue(text.Contains("press"), "Text should contain 'press'. Actual text: {0}", text);
}

[Test]
Expand Down

0 comments on commit fabe89a

Please sign in to comment.