Skip to content

Commit

Permalink
Removing unused categories in .NET tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed May 26, 2018
1 parent 0f516a8 commit 48fb09e
Show file tree
Hide file tree
Showing 22 changed files with 5 additions and 171 deletions.
28 changes: 2 additions & 26 deletions dotnet/test/common/AlertsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ namespace OpenQA.Selenium
public class AlertsTest : DriverTestFixture
{
[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Remote)]
public void ShouldBeAbleToOverrideTheWindowAlertMethod()
{
Expand All @@ -23,7 +22,6 @@ public void ShouldBeAbleToOverrideTheWindowAlertMethod()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Remote)]
public void ShouldAllowUsersToAcceptAnAlertManually()
{
Expand Down Expand Up @@ -56,7 +54,6 @@ public void ShouldThrowArgumentNullExceptionWhenKeysNull()
}

[Test]
[Category("JavaScript")]
public void ShouldAllowUsersToAcceptAnAlertWithNoTextManually()
{
driver.Url = alertsPage;
Expand All @@ -71,7 +68,6 @@ public void ShouldAllowUsersToAcceptAnAlertWithNoTextManually()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.IE, "This is the correct behavior, for the SwitchTo call to throw if it happens before the setTimeout call occurs in the browser and the alert is displayed.")]
[IgnoreBrowser(Browser.Chrome)]
[IgnoreBrowser(Browser.Safari)]
Expand All @@ -96,7 +92,6 @@ public void ShouldGetTextOfAlertOpenedInSetTimeout()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Remote)]
public void ShouldAllowUsersToDismissAnAlertManually()
{
Expand All @@ -112,7 +107,6 @@ public void ShouldAllowUsersToDismissAnAlertManually()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Remote)]
public void ShouldAllowAUserToAcceptAPrompt()
{
Expand All @@ -128,7 +122,6 @@ public void ShouldAllowAUserToAcceptAPrompt()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Remote)]
public void ShouldAllowAUserToDismissAPrompt()
{
Expand All @@ -144,7 +137,6 @@ public void ShouldAllowAUserToDismissAPrompt()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Remote)]
public void ShouldAllowAUserToSetTheValueOfAPrompt()
{
Expand All @@ -161,7 +153,6 @@ public void ShouldAllowAUserToSetTheValueOfAPrompt()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Chrome, "Chrome does not throw when setting the text of an alert")]
[IgnoreBrowser(Browser.Remote)]
public void SettingTheValueOfAnAlertThrows()
Expand All @@ -186,7 +177,6 @@ public void SettingTheValueOfAnAlertThrows()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Remote)]
public void ShouldAllowTheUserToGetTheTextOfAnAlert()
{
Expand Down Expand Up @@ -231,7 +221,6 @@ public void AlertShouldNotAllowAdditionalCommandsIfDimissed()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Remote)]
[IgnoreBrowser(Browser.Safari)]
public void ShouldAllowUsersToAcceptAnAlertInAFrame()
Expand All @@ -249,7 +238,6 @@ public void ShouldAllowUsersToAcceptAnAlertInAFrame()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Safari)]
public void ShouldAllowUsersToAcceptAnAlertInANestedFrame()
{
Expand All @@ -273,7 +261,6 @@ public void ShouldAllowUsersToAcceptAnAlertInANestedFrame()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Remote)]
public void SwitchingToMissingAlertThrows()
{
Expand All @@ -283,7 +270,6 @@ public void SwitchingToMissingAlertThrows()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Chrome, "Issue 2764")]
[IgnoreBrowser(Browser.Remote)]
public void SwitchingToMissingAlertInAClosedWindowThrows()
Expand Down Expand Up @@ -317,7 +303,7 @@ public void SwitchingToMissingAlertInAClosedWindowThrows()
}

[Test]
[Category("JavaScript")]

[IgnoreBrowser(Browser.Remote)]
public void PromptShouldUseDefaultValueIfNoKeysSent()
{
Expand All @@ -333,7 +319,6 @@ public void PromptShouldUseDefaultValueIfNoKeysSent()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Remote)]
public void PromptShouldHaveNullValueIfDismissed()
{
Expand All @@ -348,7 +333,6 @@ public void PromptShouldHaveNullValueIfDismissed()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Edge, "Hangs browser")]
[IgnoreBrowser(Browser.Remote)]
[IgnoreBrowser(Browser.Safari)]
Expand All @@ -374,7 +358,6 @@ public void HandlesTwoAlertsFromOneInteraction()
}

[Test]
[Category("JavaScript")]
public void ShouldHandleAlertOnPageLoad()
{
driver.Url = alertsPage;
Expand All @@ -391,7 +374,7 @@ public void ShouldHandleAlertOnPageLoad()
}

[Test]
[Category("JavaScript")]

public void ShouldHandleAlertOnPageLoadUsingGet()
{
driver.Url = EnvironmentManager.Instance.UrlBuilder.WhereIs("pageWithOnLoad.html");
Expand All @@ -405,7 +388,6 @@ public void ShouldHandleAlertOnPageLoadUsingGet()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Firefox, "Firefox waits too long, may be hangs")]
[IgnoreBrowser(Browser.Chrome)]
[IgnoreBrowser(Browser.Safari)]
Expand Down Expand Up @@ -447,7 +429,6 @@ public void ShouldNotHandleAlertInAnotherWindow()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Firefox, "After version 27, Firefox does not trigger alerts on unload.")]
[IgnoreBrowser(Browser.Chrome)]
[IgnoreBrowser(Browser.Safari)]
Expand Down Expand Up @@ -502,7 +483,6 @@ public void ShouldHandleAlertOnPageBeforeUnloadAlertAtQuit()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Chrome)]
[IgnoreBrowser(Browser.Firefox, "After version 27, Firefox does not trigger alerts on unload.")]
public void ShouldHandleAlertOnWindowClose()
Expand Down Expand Up @@ -532,7 +512,6 @@ public void ShouldHandleAlertOnWindowClose()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Chrome)]
[IgnoreBrowser(Browser.Edge)]
[IgnoreBrowser(Browser.Opera)]
Expand Down Expand Up @@ -628,7 +607,6 @@ public void ShouldThrowAnExceptionIfAnAlertHasNotBeenDealtWithAndDismissTheAlert
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Chrome)]
[IgnoreBrowser(Browser.Edge)]
[IgnoreBrowser(Browser.Firefox)]
Expand All @@ -646,7 +624,6 @@ public void ShouldBeAbleToHandleAuthenticationDialog()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Chrome)]
[IgnoreBrowser(Browser.Edge)]
[IgnoreBrowser(Browser.Firefox)]
Expand All @@ -662,7 +639,6 @@ public void ShouldBeAbleToDismissAuthenticationDialog()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Chrome)]
[IgnoreBrowser(Browser.Edge)]
[IgnoreBrowser(Browser.Firefox)]
Expand Down
2 changes: 0 additions & 2 deletions dotnet/test/common/ChildrenFindingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ public void ShouldFindChildrenByTagName()
}

[Test]
[Category("Javascript")]
public void ShouldBeAbleToFindAnElementByCssSelector()
{
driver.Url = nestedPage;
Expand All @@ -254,7 +253,6 @@ public void ShouldBeAbleToFindAnElementByCss3Selector()
}

[Test]
[Category("Javascript")]
public void ShouldBeAbleToFindElementsByCssSelector()
{
driver.Url = nestedPage;
Expand Down
2 changes: 0 additions & 2 deletions dotnet/test/common/ClickScrollingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ namespace OpenQA.Selenium
public class ClickScrollingTest : DriverTestFixture
{
[Test]
[Category("JavaScript")]
public void ClickingOnAnchorScrollsPage()
{
string scrollScript = "var pageY;";
Expand Down Expand Up @@ -233,7 +232,6 @@ public void ShouldBeAbleToClickElementThatIsOutOfViewInANestedFrameThatIsOutOfVi
}

[Test]
[Category("JavaScript")]
public void ShouldNotScrollWhenGettingElementSize()
{
driver.Url = EnvironmentManager.Instance.UrlBuilder.WhereIs("scroll3.html");
Expand Down
7 changes: 1 addition & 6 deletions dotnet/test/common/ClickTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public void CanClickOnALinkThatOverflowsAndFollowIt()
}

[Test]
[Category("Javascript")]
public void CanClickOnAnAnchorAndNotReloadThePage()
{
((IJavaScriptExecutor)driver).ExecuteScript("document.latch = true");
Expand All @@ -61,7 +60,6 @@ public void CanClickOnALinkThatUpdatesAnotherFrame()
}

[Test]
[Category("Javascript")]
public void ElementsFoundByJsCanLoadUpdatesInAnotherFrame()
{
driver.SwitchTo().Frame("source");
Expand All @@ -74,7 +72,6 @@ public void ElementsFoundByJsCanLoadUpdatesInAnotherFrame()
}

[Test]
[Category("Javascript")]
public void JsLocatedElementsCanUpdateFramesIfFoundSomehowElse()
{
driver.SwitchTo().Frame("source");
Expand All @@ -91,7 +88,7 @@ public void JsLocatedElementsCanUpdateFramesIfFoundSomehowElse()
}

[Test]
[Category("JavaScript")]

public void CanClickOnAnElementWithTopSetToANegativeNumber()
{
driver.Url = EnvironmentManager.Instance.UrlBuilder.WhereIs("styledPage.html");
Expand All @@ -104,7 +101,6 @@ public void CanClickOnAnElementWithTopSetToANegativeNumber()
}

[Test]
[Category("JavaScript")]
[IgnoreBrowser(Browser.Opera)]
public void ShouldSetRelatedTargetForMouseOver()
{
Expand Down Expand Up @@ -136,7 +132,6 @@ public void ShouldClickOnFirstBoundingClientRectWithNonZeroSize()
}

[Test]
[Category("JavaScript")]
[NeedsFreshDriver(IsCreatedAfterTest = true)]
[IgnoreBrowser(Browser.Opera, "Doesn't support multiple windows")]
[IgnoreBrowser(Browser.Edge, "Hangs browser")]
Expand Down
4 changes: 0 additions & 4 deletions dotnet/test/common/CookieImplementationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public void GoToSimplePageAndDeleteCookies()
}

[Test]
[Category("JavaScript")]
public void ShouldGetCookieByName()
{
if (!CheckIsOnValidHostNameForCookieTests())
Expand All @@ -40,7 +39,6 @@ public void ShouldGetCookieByName()
}

[Test]
[Category("JavaScript")]
public void ShouldBeAbleToAddCookie()
{
if (!CheckIsOnValidHostNameForCookieTests())
Expand Down Expand Up @@ -91,7 +89,6 @@ public void GetAllCookies()
}

[Test]
[Category("JavaScript")]
public void DeleteAllCookies()
{
if (!CheckIsOnValidHostNameForCookieTests())
Expand All @@ -108,7 +105,6 @@ public void DeleteAllCookies()
}

[Test]
[Category("JavaScript")]
public void DeleteCookieWithName()
{
if (!CheckIsOnValidHostNameForCookieTests())
Expand Down
2 changes: 0 additions & 2 deletions dotnet/test/common/CssValueTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ namespace OpenQA.Selenium
public class CssValueTest : DriverTestFixture
{
[Test]
[Category("Javascript")]
public void ShouldPickUpStyleOfAnElement()
{
driver.Url = javascriptPage;
Expand Down Expand Up @@ -38,7 +37,6 @@ public void GetCssValueShouldReturnStandardizedColour()
}

[Test]
[Category("Javascript")]
[IgnoreBrowser(Browser.Opera)]
public void ShouldAllowInheritedStylesToBeUsed()
{
Expand Down
2 changes: 0 additions & 2 deletions dotnet/test/common/ElementFindingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,6 @@ public void ShouldReturnElementsThatDoNotSupportTheNameProperty()
}

[Test]
[Category("Javascript")]
public void ShouldBeAbleToClickOnLinksWithNoHrefAttribute()
{
driver.Url = javascriptPage;
Expand All @@ -1022,7 +1021,6 @@ public void ShouldBeAbleToClickOnLinksWithNoHrefAttribute()
}

[Test]
[Category("Javascript")]
public void RemovingAnElementDynamicallyFromTheDomShouldCauseAStaleRefException()
{
driver.Url = javascriptPage;
Expand Down
1 change: 0 additions & 1 deletion dotnet/test/common/ErrorsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public class ErrorsTest : DriverTestFixture
/// handler (e.g. Internet Explorer).
/// </summary>
[Test]
[Category("JavaScript")]
public void ShouldNotGenerateErrorsWhenOpeningANewPage()
{
driver.Url = errorsPage;
Expand Down
Loading

0 comments on commit 48fb09e

Please sign in to comment.