Skip to content

Commit 5843d4f

Browse files
committed
Ignoring .NET tests for unimplemented functionality in Windows Phone
1 parent 3745dc7 commit 5843d4f

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed

dotnet/test/common/AlertsTest.cs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class AlertsTest : DriverTestFixture
2020
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
2121
[IgnoreBrowser(Browser.Remote)]
2222
[IgnoreBrowser(Browser.Safari)]
23+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
2324
public void ShouldBeAbleToOverrideTheWindowAlertMethod()
2425
{
2526
driver.Url = alertsPage;
@@ -37,6 +38,7 @@ public void ShouldBeAbleToOverrideTheWindowAlertMethod()
3738
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
3839
[IgnoreBrowser(Browser.Remote)]
3940
[IgnoreBrowser(Browser.Safari)]
41+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
4042
public void ShouldAllowUsersToAcceptAnAlertManually()
4143
{
4244
driver.Url = alertsPage;
@@ -56,6 +58,7 @@ public void ShouldAllowUsersToAcceptAnAlertManually()
5658
[IgnoreBrowser(Browser.IPhone)]
5759
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
5860
[IgnoreBrowser(Browser.Safari)]
61+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
5962
public void ShouldAllowUsersToAcceptAnAlertWithNoTextManually()
6063
{
6164
driver.Url = alertsPage;
@@ -74,6 +77,7 @@ public void ShouldAllowUsersToAcceptAnAlertWithNoTextManually()
7477
[IgnoreBrowser(Browser.Chrome)]
7578
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
7679
[IgnoreBrowser(Browser.Safari)]
80+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
7781
public void ShouldGetTextOfAlertOpenedInSetTimeout()
7882
{
7983
driver.Url = alertsPage;
@@ -102,6 +106,7 @@ public void ShouldGetTextOfAlertOpenedInSetTimeout()
102106
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
103107
[IgnoreBrowser(Browser.Remote)]
104108
[IgnoreBrowser(Browser.Safari)]
109+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
105110
public void ShouldAllowUsersToDismissAnAlertManually()
106111
{
107112
driver.Url = alertsPage;
@@ -123,6 +128,7 @@ public void ShouldAllowUsersToDismissAnAlertManually()
123128
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
124129
[IgnoreBrowser(Browser.Remote)]
125130
[IgnoreBrowser(Browser.Safari)]
131+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
126132
public void ShouldAllowAUserToAcceptAPrompt()
127133
{
128134
driver.Url = alertsPage;
@@ -144,6 +150,7 @@ public void ShouldAllowAUserToAcceptAPrompt()
144150
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
145151
[IgnoreBrowser(Browser.Remote)]
146152
[IgnoreBrowser(Browser.Safari)]
153+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
147154
public void ShouldAllowAUserToDismissAPrompt()
148155
{
149156
driver.Url = alertsPage;
@@ -165,6 +172,7 @@ public void ShouldAllowAUserToDismissAPrompt()
165172
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
166173
[IgnoreBrowser(Browser.Remote)]
167174
[IgnoreBrowser(Browser.Safari)]
175+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
168176
public void ShouldAllowAUserToSetTheValueOfAPrompt()
169177
{
170178
driver.Url = alertsPage;
@@ -188,6 +196,7 @@ public void ShouldAllowAUserToSetTheValueOfAPrompt()
188196
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
189197
[IgnoreBrowser(Browser.Remote)]
190198
[IgnoreBrowser(Browser.Safari)]
199+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
191200
public void SettingTheValueOfAnAlertThrows()
192201
{
193202
driver.Url = alertsPage;
@@ -217,6 +226,7 @@ public void SettingTheValueOfAnAlertThrows()
217226
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
218227
[IgnoreBrowser(Browser.Remote)]
219228
[IgnoreBrowser(Browser.Safari)]
229+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
220230
public void ShouldAllowTheUserToGetTheTextOfAnAlert()
221231
{
222232
driver.Url = alertsPage;
@@ -237,6 +247,7 @@ public void ShouldAllowTheUserToGetTheTextOfAnAlert()
237247
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
238248
[IgnoreBrowser(Browser.Remote)]
239249
[IgnoreBrowser(Browser.Safari)]
250+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
240251
public void ShouldAllowTheUserToGetTheTextOfAPrompt()
241252
{
242253
driver.Url = alertsPage;
@@ -257,6 +268,7 @@ public void ShouldAllowTheUserToGetTheTextOfAPrompt()
257268
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
258269
[IgnoreBrowser(Browser.Remote)]
259270
[IgnoreBrowser(Browser.Safari)]
271+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
260272
[ExpectedException(typeof(NoAlertPresentException))]
261273
public void AlertShouldNotAllowAdditionalCommandsIfDimissed()
262274
{
@@ -277,6 +289,7 @@ public void AlertShouldNotAllowAdditionalCommandsIfDimissed()
277289
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
278290
[IgnoreBrowser(Browser.Remote)]
279291
[IgnoreBrowser(Browser.Safari)]
292+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
280293
public void ShouldAllowUsersToAcceptAnAlertInAFrame()
281294
{
282295
driver.Url = alertsPage;
@@ -296,6 +309,7 @@ public void ShouldAllowUsersToAcceptAnAlertInAFrame()
296309
[IgnoreBrowser(Browser.Android)]
297310
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
298311
[IgnoreBrowser(Browser.Safari)]
312+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
299313
public void ShouldAllowUsersToAcceptAnAlertInANestedFrame()
300314
{
301315
driver.Url = alertsPage;
@@ -319,6 +333,7 @@ public void ShouldAllowUsersToAcceptAnAlertInANestedFrame()
319333
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
320334
[IgnoreBrowser(Browser.Remote)]
321335
[IgnoreBrowser(Browser.Safari)]
336+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
322337
[ExpectedException(typeof(NoAlertPresentException))]
323338
public void SwitchingToMissingAlertThrows()
324339
{
@@ -336,6 +351,7 @@ public void SwitchingToMissingAlertThrows()
336351
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
337352
[IgnoreBrowser(Browser.Remote)]
338353
[IgnoreBrowser(Browser.Safari)]
354+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
339355
public void SwitchingToMissingAlertInAClosedWindowThrows()
340356
{
341357
string mainWindow = driver.CurrentWindowHandle;
@@ -373,6 +389,7 @@ public void SwitchingToMissingAlertInAClosedWindowThrows()
373389
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
374390
[IgnoreBrowser(Browser.Remote)]
375391
[IgnoreBrowser(Browser.Safari)]
392+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
376393
public void PromptShouldUseDefaultValueIfNoKeysSent()
377394
{
378395
driver.Url = alertsPage;
@@ -394,6 +411,7 @@ public void PromptShouldUseDefaultValueIfNoKeysSent()
394411
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
395412
[IgnoreBrowser(Browser.Remote)]
396413
[IgnoreBrowser(Browser.Safari)]
414+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
397415
public void PromptShouldHaveNullValueIfDismissed()
398416
{
399417
driver.Url = alertsPage;
@@ -414,6 +432,7 @@ public void PromptShouldHaveNullValueIfDismissed()
414432
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
415433
[IgnoreBrowser(Browser.Remote)]
416434
[IgnoreBrowser(Browser.Safari)]
435+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
417436
public void HandlesTwoAlertsFromOneInteraction()
418437
{
419438
driver.Url = alertsPage;
@@ -439,6 +458,7 @@ public void HandlesTwoAlertsFromOneInteraction()
439458
[Category("JavaScript")]
440459
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
441460
[IgnoreBrowser(Browser.Safari)]
461+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
442462
public void ShouldHandleAlertOnPageLoad()
443463
{
444464
driver.Url = alertsPage;
@@ -458,6 +478,7 @@ public void ShouldHandleAlertOnPageLoad()
458478
[Category("JavaScript")]
459479
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
460480
[IgnoreBrowser(Browser.Safari)]
481+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
461482
public void ShouldHandleAlertOnPageLoadUsingGet()
462483
{
463484
driver.Url = EnvironmentManager.Instance.UrlBuilder.WhereIs("pageWithOnLoad.html");
@@ -476,6 +497,7 @@ public void ShouldHandleAlertOnPageLoadUsingGet()
476497
[IgnoreBrowser(Browser.Chrome)]
477498
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
478499
[IgnoreBrowser(Browser.Safari)]
500+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
479501
public void ShouldNotHandleAlertInAnotherWindow()
480502
{
481503
driver.Url = alertsPage;
@@ -518,6 +540,7 @@ public void ShouldNotHandleAlertInAnotherWindow()
518540
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
519541
[IgnoreBrowser(Browser.Chrome)]
520542
[IgnoreBrowser(Browser.Safari)]
543+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
521544
public void ShouldHandleAlertOnPageUnload()
522545
{
523546
driver.Url = alertsPage;
@@ -541,6 +564,7 @@ public void ShouldHandleAlertOnPageUnload()
541564
[IgnoreBrowser(Browser.Chrome)]
542565
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
543566
[IgnoreBrowser(Browser.Safari)]
567+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
544568
public void ShouldHandleAlertOnWindowClose()
545569
{
546570
driver.Url = alertsPage;
@@ -576,6 +600,7 @@ public void ShouldHandleAlertOnWindowClose()
576600
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
577601
[IgnoreBrowser(Browser.Opera)]
578602
[IgnoreBrowser(Browser.Safari)]
603+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
579604
public void IncludesAlertTextInUnhandledAlertException()
580605
{
581606
driver.Url = alertsPage;
@@ -598,6 +623,7 @@ public void IncludesAlertTextInUnhandledAlertException()
598623
[IgnoreBrowser(Browser.Opera)]
599624
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
600625
[IgnoreBrowser(Browser.Safari)]
626+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
601627
public void CanQuitWhenAnAlertIsPresent()
602628
{
603629
driver.Url = alertsPage;
@@ -609,6 +635,7 @@ public void CanQuitWhenAnAlertIsPresent()
609635
[Test]
610636
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
611637
[IgnoreBrowser(Browser.Safari)]
638+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
612639
public void ShouldHandleOnBeforeUnloadAlert()
613640
{
614641
driver.Url = EnvironmentManager.Instance.UrlBuilder.WhereIs("pageWithOnBeforeUnloadMessage.html");
@@ -630,6 +657,7 @@ public void ShouldHandleOnBeforeUnloadAlert()
630657
[Test]
631658
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
632659
[IgnoreBrowser(Browser.Safari)]
660+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
633661
[NeedsFreshDriver(AfterTest = true)]
634662
public void ShouldHandleOnBeforeUnloadAlertAtClose()
635663
{
@@ -647,6 +675,7 @@ public void ShouldHandleOnBeforeUnloadAlertAtClose()
647675
[Test]
648676
[IgnoreBrowser(Browser.PhantomJS, "Alert commands not yet implemented in GhostDriver")]
649677
[IgnoreBrowser(Browser.Safari)]
678+
[IgnoreBrowser(Browser.WindowsPhone, "Alert handling not yet implemented on Windows Phone")]
650679
public void ShouldThrowAnExceptionIfAnAlertHasNotBeenDealtWithAndDismissTheAlert()
651680
{
652681
IHasCapabilities capabilitiesDriver = driver as IHasCapabilities;

dotnet/test/common/Browser.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public enum Browser
1212
Remote,
1313
IPhone,
1414
Android,
15+
WindowsPhone,
1516
PhantomJS
1617
}
1718
}

dotnet/test/common/CorrectEventFiringTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ public void SubmittingFormFromFormInputTextElementShouldFireOnSubmitForThatFormA
331331
[IgnoreBrowser(Browser.IPhone, "Does not yet support file uploads")]
332332
[IgnoreBrowser(Browser.Android, "Does not yet support file uploads")]
333333
[IgnoreBrowser(Browser.Safari, "Does not yet support file uploads")]
334+
[IgnoreBrowser(Browser.WindowsPhone, "Does not yet support file uploads")]
334335
public void UploadingFileShouldFireOnChangeEvent()
335336
{
336337
driver.Url = formsPage;

dotnet/test/common/FormHandlingTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public void ShouldEnterDataIntoFormFields()
141141
[IgnoreBrowser(Browser.Android, "Does not yet support file uploads")]
142142
[IgnoreBrowser(Browser.IPhone, "Does not yet support file uploads")]
143143
[IgnoreBrowser(Browser.Safari, "Does not yet support file uploads")]
144+
[IgnoreBrowser(Browser.WindowsPhone, "Does not yet support file uploads")]
144145
public void ShouldBeAbleToAlterTheContentsOfAFileUploadInputElement()
145146
{
146147
driver.Url = formsPage;
@@ -189,6 +190,7 @@ public void ShouldBeAbleToSendKeysToAFileUploadInputElementInAnXhtmlDocument()
189190
[IgnoreBrowser(Browser.Android, "Does not yet support file uploads")]
190191
[IgnoreBrowser(Browser.IPhone, "Does not yet support file uploads")]
191192
[IgnoreBrowser(Browser.Safari, "Does not yet support file uploads")]
193+
[IgnoreBrowser(Browser.WindowsPhone, "Does not yet support file uploads")]
192194
public void ShouldBeAbleToUploadTheSameFileTwice()
193195
{
194196
System.IO.FileInfo inputFile = new System.IO.FileInfo("test.txt");
@@ -298,6 +300,7 @@ public void ShouldBeAbleToClearTextFromTextAreas()
298300
[IgnoreBrowser(Browser.Opera, "Untested")]
299301
[IgnoreBrowser(Browser.PhantomJS, "Untested")]
300302
[IgnoreBrowser(Browser.Safari, "Untested")]
303+
[IgnoreBrowser(Browser.WindowsPhone, "Does not yet support alert handling")]
301304
public void HandleFormWithJavascriptAction()
302305
{
303306
string url = EnvironmentManager.Instance.UrlBuilder.WhereIs("form_handling_js_submit.html");

dotnet/test/common/UploadTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public void Teardown()
2929

3030
[Test]
3131
[Category("Javascript")]
32+
[IgnoreBrowser(Browser.WindowsPhone, "Does not yet support file uploads")]
3233
public void ShouldAllowFileUploading()
3334
{
3435
driver.Url = uploadPage;

0 commit comments

Comments
 (0)