Commit b61aecf0 authored by jbates@chromium.org's avatar jbates@chromium.org

Make throughput test wait for page to load before starting.

R=nduca

Review URL: https://chromiumcodereview.appspot.com/9318008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119998 0039d316-1c4b-4281-b951-d872f2087c98
parent 1e5373d9
......@@ -6,6 +6,7 @@
#include "base/path_service.h"
#include "base/stringprintf.h"
#include "base/test/trace_event_analyzer.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/test_switches.h"
......@@ -27,7 +28,7 @@ enum ThroughputTestFlags {
kInternal = 1 << 0 // Test uses internal test data.
};
const int kSpinUpTimeMs = 5 * 1000;
const int kSpinUpTimeMs = 4 * 1000;
const int kRunTimeMs = 10 * 1000;
const int kIgnoreSomeFrames = 3;
......@@ -118,6 +119,7 @@ class ThroughputTest : public BrowserPerfTest {
LOG(INFO) << gurl.possibly_invalid_spec();
ui_test_utils::NavigateToURLWithDisposition(
browser(), gurl, CURRENT_TAB, ui_test_utils::BROWSER_TEST_NONE);
ui_test_utils::WaitForLoadStop(browser()->GetSelectedWebContents());
// Let the test spin up.
LOG(INFO) << "Spinning up test...\n";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment