45
45
import static org .openqa .selenium .testing .Ignore .Driver .FIREFOX ;
46
46
import static org .openqa .selenium .testing .Ignore .Driver .HTMLUNIT ;
47
47
import static org .openqa .selenium .testing .Ignore .Driver .IE ;
48
+ import static org .openqa .selenium .testing .Ignore .Driver .MARIONETTE ;
48
49
import static org .openqa .selenium .testing .Ignore .Driver .PHANTOMJS ;
49
50
import static org .openqa .selenium .testing .Ignore .Driver .REMOTE ;
50
51
import static org .openqa .selenium .testing .Ignore .Driver .SAFARI ;
@@ -95,6 +96,7 @@ public void testShouldGetCookieByName() {
95
96
96
97
@ JavascriptEnabled
97
98
@ Test
99
+ @ Ignore (MARIONETTE )
98
100
public void testShouldBeAbleToAddCookie () {
99
101
String key = generateUniqueKey ();
100
102
String value = "foo" ;
@@ -110,6 +112,7 @@ public void testShouldBeAbleToAddCookie() {
110
112
}
111
113
112
114
@ Test
115
+ @ Ignore (MARIONETTE )
113
116
public void testGetAllCookies () {
114
117
String key1 = generateUniqueKey ();
115
118
String key2 = generateUniqueKey ();
@@ -136,6 +139,7 @@ public void testGetAllCookies() {
136
139
137
140
@ JavascriptEnabled
138
141
@ Test
142
+ @ Ignore (MARIONETTE )
139
143
public void testDeleteAllCookies () {
140
144
addCookieOnServerSide (new Cookie ("foo" , "set" ));
141
145
assertSomeCookiesArePresent ();
@@ -171,6 +175,7 @@ public void testDeleteCookieWithName() {
171
175
}
172
176
173
177
@ Test
178
+ @ Ignore (MARIONETTE )
174
179
public void testShouldNotDeleteCookiesWithASimilarName () {
175
180
String cookieOneName = "fish" ;
176
181
Cookie cookie1 = new Cookie .Builder (cookieOneName , "cod" ).build ();
@@ -191,6 +196,7 @@ public void testShouldNotDeleteCookiesWithASimilarName() {
191
196
}
192
197
193
198
@ Test
199
+ @ Ignore (MARIONETTE )
194
200
public void testAddCookiesWithDifferentPathsThatAreRelatedToOurs () {
195
201
driver .get (domainHelper .getUrlForFirstValidHostname ("/common/animals" ));
196
202
Cookie cookie1 = new Cookie .Builder ("fish" , "cod" ).path ("/common/animals" ).build ();
@@ -208,7 +214,7 @@ public void testAddCookiesWithDifferentPathsThatAreRelatedToOurs() {
208
214
assertCookieIsNotPresentWithName (cookie1 .getName ());
209
215
}
210
216
211
- @ Ignore (value = {CHROME , PHANTOMJS , SAFARI })
217
+ @ Ignore (value = {CHROME , PHANTOMJS , SAFARI , MARIONETTE })
212
218
@ NoDriverAfterTest // So that next test never starts with "inside a frame" base state.
213
219
@ Test
214
220
public void testGetCookiesInAFrame () {
@@ -223,7 +229,7 @@ public void testGetCookiesInAFrame() {
223
229
assertCookieIsPresentWithName (cookie1 .getName ());
224
230
}
225
231
226
- @ Ignore ({CHROME })
232
+ @ Ignore ({CHROME , MARIONETTE })
227
233
@ Test
228
234
public void testCannotGetCookiesWithPathDifferingOnlyInCase () {
229
235
String cookieName = "fish" ;
@@ -235,6 +241,7 @@ public void testCannotGetCookiesWithPathDifferingOnlyInCase() {
235
241
}
236
242
237
243
@ Test
244
+ @ Ignore (MARIONETTE )
238
245
public void testShouldNotGetCookieOnDifferentDomain () {
239
246
assumeTrue (domainHelper .checkHasValidAlternateHostname ());
240
247
@@ -247,7 +254,7 @@ public void testShouldNotGetCookieOnDifferentDomain() {
247
254
assertCookieIsNotPresentWithName (cookieName );
248
255
}
249
256
250
- @ Ignore (value = {CHROME }, reason = "Untested browsers." )
257
+ @ Ignore (value = {CHROME , MARIONETTE } )
251
258
@ Test
252
259
public void testShouldBeAbleToAddToADomainWhichIsRelatedToTheCurrentDomain () {
253
260
String cookieName = "name" ;
@@ -272,7 +279,7 @@ public void testsShouldNotGetCookiesRelatedToCurrentDomainWithoutLeadingPeriod()
272
279
assertCookieIsNotPresentWithName (cookieName );
273
280
}
274
281
275
- @ Ignore ({REMOTE })
282
+ @ Ignore ({REMOTE , MARIONETTE })
276
283
@ Test
277
284
public void testShouldBeAbleToIncludeLeadingPeriodInDomainName () throws Exception {
278
285
String cookieName = "name" ;
@@ -287,6 +294,7 @@ public void testShouldBeAbleToIncludeLeadingPeriodInDomainName() throws Exceptio
287
294
}
288
295
289
296
@ Test
297
+ @ Ignore (MARIONETTE )
290
298
public void testShouldBeAbleToSetDomainToTheCurrentDomain () throws Exception {
291
299
URI url = new URI (driver .getCurrentUrl ());
292
300
String host = url .getHost () + ":" + url .getPort ();
@@ -300,6 +308,7 @@ public void testShouldBeAbleToSetDomainToTheCurrentDomain() throws Exception {
300
308
}
301
309
302
310
@ Test
311
+ @ Ignore (MARIONETTE )
303
312
public void testShouldWalkThePathToDeleteACookie () {
304
313
Cookie cookie1 = new Cookie .Builder ("fish" , "cod" ).build ();
305
314
driver .manage ().addCookie (cookie1 );
@@ -328,6 +337,7 @@ public void testShouldWalkThePathToDeleteACookie() {
328
337
}
329
338
330
339
@ Test
340
+ @ Ignore (MARIONETTE )
331
341
public void testShouldIgnoreThePortNumberOfTheHostWhenSettingTheCookie () throws Exception {
332
342
URI uri = new URI (driver .getCurrentUrl ());
333
343
String host = String .format ("%s:%d" , uri .getHost (), uri .getPort ());
@@ -342,6 +352,7 @@ public void testShouldIgnoreThePortNumberOfTheHostWhenSettingTheCookie() throws
342
352
}
343
353
344
354
@ Test
355
+ @ Ignore (MARIONETTE )
345
356
public void testCookieEqualityAfterSetAndGet () {
346
357
driver .get (domainHelper .getUrlForFirstValidHostname ("animals" ));
347
358
@@ -369,6 +380,7 @@ public void testCookieEqualityAfterSetAndGet() {
369
380
}
370
381
371
382
@ Test
383
+ @ Ignore (MARIONETTE )
372
384
public void testRetainsCookieExpiry () {
373
385
Cookie addedCookie =
374
386
new Cookie .Builder ("fish" , "cod" )
@@ -382,7 +394,7 @@ public void testRetainsCookieExpiry() {
382
394
assertEquals (addedCookie .getExpiry (), retrieved .getExpiry ());
383
395
}
384
396
385
- @ Ignore (value = {IE , PHANTOMJS , SAFARI })
397
+ @ Ignore (value = {IE , PHANTOMJS , SAFARI , MARIONETTE })
386
398
@ Test
387
399
public void canHandleSecureCookie () {
388
400
driver .get (domainHelper .getSecureUrlForFirstValidHostname ("animals" ));
@@ -400,7 +412,7 @@ public void canHandleSecureCookie() {
400
412
assertNotNull (retrieved );
401
413
}
402
414
403
- @ Ignore (value = {IE , PHANTOMJS , SAFARI })
415
+ @ Ignore (value = {IE , PHANTOMJS , SAFARI , MARIONETTE })
404
416
@ Test
405
417
public void testRetainsCookieSecure () {
406
418
driver .get (domainHelper .getSecureUrlForFirstValidHostname ("animals" ));
@@ -453,6 +465,7 @@ public void testRetainsHttpOnlyFlag() {
453
465
}
454
466
455
467
@ Test
468
+ @ Ignore (MARIONETTE )
456
469
public void testSettingACookieThatExpiredInThePast () {
457
470
long expires = System .currentTimeMillis () - 1000 ;
458
471
Cookie cookie = new Cookie .Builder ("expired" , "yes" ).expiresOn (new Date (expires )).build ();
@@ -464,6 +477,7 @@ public void testSettingACookieThatExpiredInThePast() {
464
477
}
465
478
466
479
@ Test
480
+ @ Ignore (MARIONETTE )
467
481
public void testCanSetCookieWithoutOptionalFieldsSet () {
468
482
String key = generateUniqueKey ();
469
483
String value = "foo" ;
@@ -483,7 +497,7 @@ public void testDeleteNotExistedCookie() {
483
497
driver .manage ().deleteCookieNamed (key );
484
498
}
485
499
486
- @ Ignore (value = {CHROME , FIREFOX , IE , PHANTOMJS , SAFARI })
500
+ @ Ignore (value = {CHROME , FIREFOX , IE , PHANTOMJS , SAFARI , MARIONETTE })
487
501
@ Test
488
502
public void testShouldDeleteOneOfTheCookiesWithTheSameName () {
489
503
driver .get (domainHelper .getUrlForFirstValidHostname ("/common/animals" ));
@@ -606,6 +620,7 @@ private void addCookieOnServerSide(Cookie cookie) {
606
620
}
607
621
608
622
@ Test
623
+ @ Ignore (MARIONETTE )
609
624
public void deleteAllCookies () throws Exception {
610
625
assumeTrue (domainHelper .checkHasValidAlternateHostname ());
611
626
0 commit comments