OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/worker_host/worker_service.h" | 5 #include "chrome/browser/worker_host/worker_service.h" |
6 #include "chrome/test/automation/browser_proxy.h" | 6 #include "chrome/test/automation/browser_proxy.h" |
7 #include "chrome/test/automation/tab_proxy.h" | 7 #include "chrome/test/automation/tab_proxy.h" |
8 #include "chrome/test/ui/ui_layout_test.h" | 8 #include "chrome/test/ui/ui_layout_test.h" |
9 | 9 |
10 static const char kTestCompleteCookie[] = "status"; | 10 static const char kTestCompleteCookie[] = "status"; |
(...skipping 17 matching lines...) Loading... |
28 }; | 28 }; |
29 | 29 |
30 TEST_F(WorkerTest, SingleWorker) { | 30 TEST_F(WorkerTest, SingleWorker) { |
31 RunTest(L"single_worker.html"); | 31 RunTest(L"single_worker.html"); |
32 } | 32 } |
33 | 33 |
34 TEST_F(WorkerTest, MultipleWorkers) { | 34 TEST_F(WorkerTest, MultipleWorkers) { |
35 RunTest(L"multi_worker.html"); | 35 RunTest(L"multi_worker.html"); |
36 } | 36 } |
37 | 37 |
38 TEST_F(WorkerTest, DISABLED_WorkerFastLayoutTests) { | 38 // WorkerFastLayoutTests works on the linux try servers, but fails on the |
| 39 // build bots. |
| 40 #if defined(OS_LINUX) |
| 41 #define WorkerFastLayoutTests DISABLED_WorkerFastLayoutTests |
| 42 #endif |
| 43 |
| 44 TEST_F(WorkerTest, WorkerFastLayoutTests) { |
39 static const char* kLayoutTestFiles[] = { | 45 static const char* kLayoutTestFiles[] = { |
40 "stress-js-execution.html", | 46 "stress-js-execution.html", |
41 #if defined(OS_WIN) | 47 #if defined(OS_WIN) |
42 // Workers don't properly initialize the V8 stack guard. | 48 // Workers don't properly initialize the V8 stack guard. |
43 // (http://code.google.com/p/chromium/issues/detail?id=21653). | 49 // (http://code.google.com/p/chromium/issues/detail?id=21653). |
44 "use-machine-stack.html", | 50 "use-machine-stack.html", |
45 #endif | 51 #endif |
46 "worker-call.html", | 52 "worker-call.html", |
47 // Disabled because cloning ports are too slow in Chromium to meet the | 53 // Disabled because cloning ports are too slow in Chromium to meet the |
48 // thresholds in this test. | 54 // thresholds in this test. |
(...skipping 171 matching lines...) Loading... |
220 UITest::GetBrowserProcessCount()); | 226 UITest::GetBrowserProcessCount()); |
221 | 227 |
222 // Now close the first tab and check that the queued workers were started. | 228 // Now close the first tab and check that the queued workers were started. |
223 tab->Close(true); | 229 tab->Close(true); |
224 tab->NavigateToURL(GetTestUrl(L"google", L"google.html")); | 230 tab->NavigateToURL(GetTestUrl(L"google", L"google.html")); |
225 | 231 |
226 EXPECT_EQ(total_workers + 1 + (UITest::in_process_renderer() ? 0 : tab_count), | 232 EXPECT_EQ(total_workers + 1 + (UITest::in_process_renderer() ? 0 : tab_count), |
227 UITest::GetBrowserProcessCount()); | 233 UITest::GetBrowserProcessCount()); |
228 } | 234 } |
229 #endif | 235 #endif |
OLD | NEW |