Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: chrome/test/data/webui/history_browsertest.js

Issue 304233008: Disabled HistoryWebUITest.multipleSelect due to timeouts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 and mac: crbug/375910 509 * Disabled due to time out on all platforms: crbug/375910
510 */ 510 */
511 GEN('#if defined(OS_WIN) || defined(OS_MACOSX)'); 511 TEST_F('HistoryWebUITest', 'DISABLED_multipleSelect', function() {
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() {
517 var checkboxes = document.querySelectorAll( 512 var checkboxes = document.querySelectorAll(
518 '#results-display input[type=checkbox]'); 513 '#results-display input[type=checkbox]');
519 514
520 var getAllChecked = function() { 515 var getAllChecked = function() {
521 return Array.prototype.slice.call(document.querySelectorAll( 516 return Array.prototype.slice.call(document.querySelectorAll(
522 '#results-display input[type=checkbox]:checked')); 517 '#results-display input[type=checkbox]:checked'));
523 }; 518 };
524 519
525 // Make sure that nothing is checked. 520 // Make sure that nothing is checked.
526 expectEquals(0, getAllChecked().length); 521 expectEquals(0, getAllChecked().length);
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 TEST_F('HistoryWebUIWithSchemesTest', 'groupingWithSchemes', function() { 931 TEST_F('HistoryWebUIWithSchemesTest', 'groupingWithSchemes', function() {
937 // Switch to the week view. 932 // Switch to the week view.
938 $('timeframe-filter-week').click(); 933 $('timeframe-filter-week').click();
939 waitForCallback('historyResult', function() { 934 waitForCallback('historyResult', function() {
940 // Each URL should be organized under a different "domain". 935 // Each URL should be organized under a different "domain".
941 expectEquals(document.querySelectorAll('.entry').length, 4); 936 expectEquals(document.querySelectorAll('.entry').length, 4);
942 expectEquals(document.querySelectorAll('.site-domain-wrapper').length, 4); 937 expectEquals(document.querySelectorAll('.site-domain-wrapper').length, 4);
943 testDone(); 938 testDone();
944 }); 939 });
945 }); 940 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698