OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "base/file_path.h" | 5 #include "base/file_path.h" |
6 #include "base/string_util.h" | 6 #include "base/string_util.h" |
7 #include "base/test/test_timeouts.h" | 7 #include "base/test/test_timeouts.h" |
8 #include "base/threading/platform_thread.h" | 8 #include "base/threading/platform_thread.h" |
9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
10 #include "chrome/test/automation/automation_proxy.h" | 10 #include "chrome/test/automation/automation_proxy.h" |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 GURL url = test_server.GetURL("files/worker_auth.html"); | 231 GURL url = test_server.GetURL("files/worker_auth.html"); |
232 EXPECT_TRUE(NavigateAndWaitForAuth(tab, url)); | 232 EXPECT_TRUE(NavigateAndWaitForAuth(tab, url)); |
233 } | 233 } |
234 | 234 |
235 #if defined(OS_WIN) | 235 #if defined(OS_WIN) |
236 // http://crbug.com/33344 - NavigateAndWaitForAuth times out on the Windows | 236 // http://crbug.com/33344 - NavigateAndWaitForAuth times out on the Windows |
237 // build bots. | 237 // build bots. |
238 #define SharedWorkerHttpAuth DISABLED_SharedWorkerHttpAuth | 238 #define SharedWorkerHttpAuth DISABLED_SharedWorkerHttpAuth |
239 #endif | 239 #endif |
240 // Make sure that auth dialog is displayed from shared worker context. | 240 // Make sure that auth dialog is displayed from shared worker context. |
241 TEST_F(WorkerTest, SharedWorkerHttpAuth) { | 241 TEST_F(WorkerTest, DISABLED_SharedWorkerHttpAuth) { |
242 net::TestServer test_server(net::TestServer::TYPE_HTTP, FilePath(kDocRoot)); | 242 net::TestServer test_server(net::TestServer::TYPE_HTTP, FilePath(kDocRoot)); |
243 ASSERT_TRUE(test_server.Start()); | 243 ASSERT_TRUE(test_server.Start()); |
244 | 244 |
245 scoped_refptr<TabProxy> tab(GetActiveTab()); | 245 scoped_refptr<TabProxy> tab(GetActiveTab()); |
246 ASSERT_TRUE(tab.get()); | 246 ASSERT_TRUE(tab.get()); |
247 | 247 |
248 GURL url = test_server.GetURL("files/shared_worker_auth.html"); | 248 GURL url = test_server.GetURL("files/shared_worker_auth.html"); |
249 EXPECT_TRUE(NavigateAndWaitForAuth(tab, url)); | 249 EXPECT_TRUE(NavigateAndWaitForAuth(tab, url)); |
250 // TODO(atwilson): Add support to automation framework to test for auth | 250 // TODO(atwilson): Add support to automation framework to test for auth |
251 // dialogs displayed by non-navigating tabs. | 251 // dialogs displayed by non-navigating tabs. |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 } | 883 } |
884 | 884 |
885 #if defined(OS_LINUX) | 885 #if defined(OS_LINUX) |
886 // Fails on Linux due to an assert in WebKit's RNG. | 886 // Fails on Linux due to an assert in WebKit's RNG. |
887 // See http://webkit.org/b/55728. | 887 // See http://webkit.org/b/55728. |
888 #define FileWriterSyncWriteOverlapped DISABLED_FileWriterSyncWriteOverlapped | 888 #define FileWriterSyncWriteOverlapped DISABLED_FileWriterSyncWriteOverlapped |
889 #endif | 889 #endif |
890 TEST_F(WorkerFileSystemTest, FileWriterSyncWriteOverlapped) { | 890 TEST_F(WorkerFileSystemTest, FileWriterSyncWriteOverlapped) { |
891 RunWorkerFileSystemLayoutTest("file-writer-sync-write-overlapped.html"); | 891 RunWorkerFileSystemLayoutTest("file-writer-sync-write-overlapped.html"); |
892 } | 892 } |
OLD | NEW |