|
13 | 13 | goog.require('goog.events');
|
14 | 14 | goog.require('goog.testing.jsunit');
|
15 | 15 | goog.require('goog.userAgent');
|
16 |
| - goog.require('goog.testing.ExpectedFailures'); |
17 | 16 | </script>
|
18 | 17 | <script type="text/javascript">
|
19 | 18 | var singleSelect, multiSelect, radioButtons, checkboxes, changeCount;
|
20 | 19 | var gotPointerCaptureCount, lostPointerCaptureCount;
|
21 | 20 |
|
22 |
| - var expectedFailures; |
23 |
| - |
24 | 21 | function setUpPage() {
|
25 | 22 | singleSelect = bot.locators.findElement({id: 'singleSelect'});
|
26 | 23 | multiSelect = bot.locators.findElement({id: 'multiSelect'});
|
|
47 | 44 | goog.array.forEach(radioButtons, function(e) {
|
48 | 45 | e.checked = false;
|
49 | 46 | });
|
50 |
| - expectedFailures = new goog.testing.ExpectedFailures(); |
51 |
| - } |
52 |
| - |
53 |
| - function tearDown() { |
54 |
| - expectedFailures.handleTearDown(); |
55 | 47 | }
|
56 | 48 |
|
57 | 49 | function checkActionCompatibility(action) {
|
|
196 | 188 | assertTrue(bot.dom.isSelected(multiSelect.options[2]));
|
197 | 189 | }
|
198 | 190 |
|
199 |
| - function testClickCanToggleOptionsInAMultiSelect() { |
200 |
| - expectedFailures.expectFailureFor( |
201 |
| - goog.userAgent.WEBKIT, 'Chrome fails this test, have not figured it out yet...'); |
202 |
| - // TODO: Figure it out |
203 |
| - expectedFailures.run(function() { |
204 |
| - canToggleOptionsInAMultiSelect(bot.action.click) |
205 |
| - }); |
206 |
| - } |
| 191 | + var testClickCanToggleOptionsInAMultiSelect = |
| 192 | + // Disabled on Chrome due to |
| 193 | + // https://code.google.com/p/chromedriver/issues/detail?id=1073 |
| 194 | + goog.userAgent.product.CHROME ? goog.nullFunction : |
| 195 | + goog.partial(canToggleOptionsInAMultiSelect, bot.action.click); |
207 | 196 |
|
208 |
| - function testTapCanToggleOptionsInAMultiSelect() { |
209 |
| - expectedFailures.expectFailureFor( |
210 |
| - goog.userAgent.WEBKIT, 'Chrome fails this test, have not figured it out yet...'); |
211 |
| - // TODO: Figure it out |
212 |
| - expectedFailures.run(function() { |
213 |
| - canToggleOptionsInAMultiSelect(bot.action.tap) |
214 |
| - }); |
215 |
| - } |
| 197 | + var testTapCanToggleOptionsInAMultiSelect = |
| 198 | + // Disabled on Chrome due to |
| 199 | + // https://code.google.com/p/chromedriver/issues/detail?id=1073 |
| 200 | + goog.userAgent.product.CHROME ? goog.nullFunction : |
| 201 | + goog.partial(canToggleOptionsInAMultiSelect, bot.action.tap); |
216 | 202 |
|
217 | 203 | function canToggleCheckboxes(action) {
|
218 | 204 | if (!checkActionCompatibility(action)) {
|
|
344 | 330 | var testClickCanSelectOptionWhenDefaultPrevented =
|
345 | 331 | goog.partial(canSelectOptionWhenDefaultPrevented, bot.action.click);
|
346 | 332 |
|
347 |
| - function testTapCanSelectOptionWhenDefaultPrevented() { |
348 |
| - expectedFailures.expectFailureFor( |
349 |
| - goog.userAgent.WEBKIT, 'Chrome fails this test, have not figured it out yet...'); |
350 |
| - // TODO: Figure it out |
351 |
| - expectedFailures.run(function() { |
352 |
| - canSelectOptionWhenDefaultPrevented(bot.action.tap) |
353 |
| - }); |
354 |
| - } |
| 333 | + var testTapCanSelectOptionWhenDefaultPrevented = |
| 334 | + // Disabled on Chrome due to |
| 335 | + // https://code.google.com/p/chromedriver/issues/detail?id=1073 |
| 336 | + goog.userAgent.product.CHROME ? goog.nullFunction : |
| 337 | + goog.partial(canSelectOptionWhenDefaultPrevented, bot.action.tap); |
355 | 338 |
|
356 | 339 | function cannotSelectCheckboxWhenDefaultPrevented(action) {
|
357 | 340 | if (!checkActionCompatibility(action)) {
|
|
547 | 530 | var testClickTogglesByTheTimeChangeEventFires =
|
548 | 531 | goog.partial(togglesByTheTimeChangeEventFires, bot.action.click);
|
549 | 532 |
|
550 |
| - function testTapTogglesByTheTimeChangeEventFires() { |
551 |
| - expectedFailures.expectFailureFor( |
552 |
| - goog.userAgent.WEBKIT, 'Chrome fails this test, have not figured it out yet...'); |
553 |
| - // TODO: Figure it out |
554 |
| - expectedFailures.run(function() { |
555 |
| - togglesByTheTimeChangeEventFires(bot.action.tap) |
556 |
| - }); |
557 |
| - } |
| 533 | + var testTapTogglesByTheTimeChangeEventFires = |
| 534 | + // Disabled on Chrome due to |
| 535 | + // https://code.google.com/p/chromedriver/issues/detail?id=1073 |
| 536 | + goog.userAgent.product.CHROME ? goog.nullFunction : |
| 537 | + goog.partial(togglesByTheTimeChangeEventFires, bot.action.tap); |
558 | 538 | </script>
|
559 | 539 | </head>
|
560 | 540 | <body>
|
|
0 commit comments