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

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

Issue 1284083002: Print stack traces in child processes when browser tests failed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more fixes Created 5 years, 4 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
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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 expectTrue(historyModel.isDeletingVisits()); 816 expectTrue(historyModel.isDeletingVisits());
817 817
818 expectNotEquals(visit.dropDown, document.activeElement); 818 expectNotEquals(visit.dropDown, document.activeElement);
819 testDone(); 819 testDone();
820 }); 820 });
821 821
822 /** 822 /**
823 * Test individual deletion of history entries. 823 * Test individual deletion of history entries.
824 */ 824 */
825 // Flakes on Win. http://crbug.com/334372#c3 825 // Flakes on Win. http://crbug.com/334372#c3
826 TEST_F('HistoryWebUIRealBackendTest', 'DISABLED_singleDeletion', function() { 826 TEST_F('HistoryWebUIRealBackendTest', 'singleDeletion', function() {
827 // Deletes the history entry represented by |entryElement|, and calls callback 827 // Deletes the history entry represented by |entryElement|, and calls callback
828 // when the deletion is complete. 828 // when the deletion is complete.
829 var removeEntry = function(entryElement, callback) { 829 var removeEntry = function(entryElement, callback) {
830 var dropDownButton = entryElement.querySelector('.drop-down'); 830 var dropDownButton = entryElement.querySelector('.drop-down');
831 var removeMenuItem = $('remove-visit'); 831 var removeMenuItem = $('remove-visit');
832 832
833 assertFalse(dropDownButton.disabled); 833 assertFalse(dropDownButton.disabled);
834 assertFalse(removeMenuItem.disabled); 834 assertFalse(removeMenuItem.disabled);
835 835
836 waitForCallback('onEntryRemoved', callback); 836 waitForCallback('onEntryRemoved', callback);
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 TEST_F('HistoryWebUIWithSchemesTest', 'groupingWithSchemes', function() { 1128 TEST_F('HistoryWebUIWithSchemesTest', 'groupingWithSchemes', function() {
1129 // Switch to the week view. 1129 // Switch to the week view.
1130 $('timeframe-controls').querySelectorAll('input')[1].click(); 1130 $('timeframe-controls').querySelectorAll('input')[1].click();
1131 waitForCallback('historyResult', function() { 1131 waitForCallback('historyResult', function() {
1132 // Each URL should be organized under a different "domain". 1132 // Each URL should be organized under a different "domain".
1133 expectEquals(document.querySelectorAll('.entry').length, 4); 1133 expectEquals(document.querySelectorAll('.entry').length, 4);
1134 expectEquals(document.querySelectorAll('.site-domain-wrapper').length, 4); 1134 expectEquals(document.querySelectorAll('.site-domain-wrapper').length, 4);
1135 testDone(); 1135 testDone();
1136 }); 1136 });
1137 }); 1137 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698