OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 GEN('#include "chrome/test/data/webui/history_ui_browsertest.h"'); | 5 GEN('#include "chrome/test/data/webui/history_ui_browsertest.h"'); |
6 | 6 |
7 /** @const */ var TOTAL_RESULT_COUNT = 160; | 7 /** @const */ var TOTAL_RESULT_COUNT = 160; |
8 /** @const */ var WAIT_TIMEOUT = 200; | 8 /** @const */ var WAIT_TIMEOUT = 200; |
9 | 9 |
10 /** | 10 /** |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 // The next entry after the deleted ones should now be the first. | 499 // The next entry after the deleted ones should now be the first. |
500 expectEquals(document.querySelector('.title a').textContent, | 500 expectEquals(document.querySelector('.title a').textContent, |
501 nextEntry.textContent); | 501 nextEntry.textContent); |
502 testDone(); | 502 testDone(); |
503 }); | 503 }); |
504 }); | 504 }); |
505 }); | 505 }); |
506 | 506 |
507 /** | 507 /** |
508 * Test selecting multiple entries using shift click. | 508 * Test selecting multiple entries using shift click. |
| 509 * Disabled due to time out on win: crbug/375910 |
509 */ | 510 */ |
510 TEST_F('HistoryWebUITest', 'multipleSelect', function() { | 511 GEN('#if defined(OS_WIN)'); |
| 512 GEN('#define MAYBE_multipleSelect DISABLED_multipleSelect'); |
| 513 GEN('#else'); |
| 514 GEN('#define MAYBE_multipleSelect multipleSelect'); |
| 515 GEN('#endif'); |
| 516 TEST_F('HistoryWebUITest', 'MAYBE_multipleSelect', function() { |
511 var checkboxes = document.querySelectorAll( | 517 var checkboxes = document.querySelectorAll( |
512 '#results-display input[type=checkbox]'); | 518 '#results-display input[type=checkbox]'); |
513 | 519 |
514 var getAllChecked = function() { | 520 var getAllChecked = function() { |
515 return Array.prototype.slice.call(document.querySelectorAll( | 521 return Array.prototype.slice.call(document.querySelectorAll( |
516 '#results-display input[type=checkbox]:checked')); | 522 '#results-display input[type=checkbox]:checked')); |
517 }; | 523 }; |
518 | 524 |
519 // Make sure that nothing is checked. | 525 // Make sure that nothing is checked. |
520 expectEquals(0, getAllChecked().length); | 526 expectEquals(0, getAllChecked().length); |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 TEST_F('HistoryWebUIWithSchemesTest', 'groupingWithSchemes', function() { | 928 TEST_F('HistoryWebUIWithSchemesTest', 'groupingWithSchemes', function() { |
923 // Switch to the week view. | 929 // Switch to the week view. |
924 $('timeframe-filter-week').click(); | 930 $('timeframe-filter-week').click(); |
925 waitForCallback('historyResult', function() { | 931 waitForCallback('historyResult', function() { |
926 // Each URL should be organized under a different "domain". | 932 // Each URL should be organized under a different "domain". |
927 expectEquals(document.querySelectorAll('.entry').length, 4); | 933 expectEquals(document.querySelectorAll('.entry').length, 4); |
928 expectEquals(document.querySelectorAll('.site-domain-wrapper').length, 4); | 934 expectEquals(document.querySelectorAll('.site-domain-wrapper').length, 4); |
929 testDone(); | 935 testDone(); |
930 }); | 936 }); |
931 }); | 937 }); |
OLD | NEW |