diff options
Diffstat (limited to 'chrome/browser/iframe_uitest.cc')
-rw-r--r-- | chrome/browser/iframe_uitest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/iframe_uitest.cc b/chrome/browser/iframe_uitest.cc index 6cd75b0..7e2e617 100644 --- a/chrome/browser/iframe_uitest.cc +++ b/chrome/browser/iframe_uitest.cc @@ -4,6 +4,7 @@ #include "base/basictypes.h" #include "base/file_util.h" +#include "base/platform_thread.h" #include "chrome/test/ui/ui_test.h" #include "net/base/net_util.h" @@ -14,7 +15,8 @@ class IFrameTest : public UITest { file_util::AppendToPath(&test_file, url); NavigateToURL(net::FilePathToFileURL(test_file)); - Sleep(sleep_timeout_ms()); // The browser lazily updates the title. + // The browser lazily updates the title. + PlatformThread::Sleep(sleep_timeout_ms()); // Make sure the navigation succeeded. EXPECT_EQ(std::wstring(page_title), GetActiveTabTitle()); @@ -28,8 +30,6 @@ TEST_F(IFrameTest, Crash) { NavigateAndVerifyTitle(L"iframe.html", L"iframe test"); } -// http://crbug.com/3035 : Triggers a DCHECK in web_contents.cc. Need to -// investigate. TEST_F(IFrameTest, InEmptyFrame) { NavigateAndVerifyTitle(L"iframe_in_empty_frame.html", L"iframe test"); } |