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

Unified Diff: chrome/test/data/extensions/api_test/automation/tests/tabs_automation_boolean/common.js

Issue 485843002: Add logspam to help diagnose flaky tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Log --> LOG Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/extensions/api_test/automation/tests/tabs/common.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/automation/tests/tabs_automation_boolean/common.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/tabs_automation_boolean/common.js b/chrome/test/data/extensions/api_test/automation/tests/tabs_automation_boolean/common.js
index 07f98d0603202fcd6aa72d3db91be72531632def..8d77c3d902efa7b5b0ef191788f13c5d4f0d68fb 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/tabs_automation_boolean/common.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/tabs_automation_boolean/common.js
@@ -17,10 +17,15 @@ function setUpAndRunTests(allTests) {
function gotTree(returnedRootNode) {
rootNode = returnedRootNode;
if (rootNode.attributes.docLoaded) {
+ console.log('In getTree() callback: ' +
+ 'docLoaded attr already true; running tests');
chrome.test.runTests(allTests);
return;
}
+ console.log('In getTree() callback: ' +
+ 'docLoaded false; waiting for loadComplete');
rootNode.addEventListener('loadComplete', function() {
+ console.log('loadComplete received; running tests.');
chrome.test.runTests(allTests);
});
}
« no previous file with comments | « chrome/test/data/extensions/api_test/automation/tests/tabs/common.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698