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...) Expand all 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, WorkerFastLayoutTests) { | 38 TEST_F(WorkerTest, DISABLED_WorkerFastLayoutTests) { |
39 static const char* kLayoutTestFiles[] = { | 39 static const char* kLayoutTestFiles[] = { |
40 "stress-js-execution.html", | 40 "stress-js-execution.html", |
41 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
42 // Workers don't properly initialize the V8 stack guard. | 42 // Workers don't properly initialize the V8 stack guard. |
43 // (http://code.google.com/p/chromium/issues/detail?id=21653). | 43 // (http://code.google.com/p/chromium/issues/detail?id=21653). |
44 "use-machine-stack.html", | 44 "use-machine-stack.html", |
45 #endif | 45 #endif |
46 "worker-call.html", | 46 "worker-call.html", |
47 // Disabled because cloning ports are too slow in Chromium to meet the | 47 // Disabled because cloning ports are too slow in Chromium to meet the |
48 // thresholds in this test. | 48 // thresholds in this test. |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 UITest::GetBrowserProcessCount()); | 220 UITest::GetBrowserProcessCount()); |
221 | 221 |
222 // Now close the first tab and check that the queued workers were started. | 222 // Now close the first tab and check that the queued workers were started. |
223 tab->Close(true); | 223 tab->Close(true); |
224 tab->NavigateToURL(GetTestUrl(L"google", L"google.html")); | 224 tab->NavigateToURL(GetTestUrl(L"google", L"google.html")); |
225 | 225 |
226 EXPECT_EQ(total_workers + 1 + (UITest::in_process_renderer() ? 0 : tab_count), | 226 EXPECT_EQ(total_workers + 1 + (UITest::in_process_renderer() ? 0 : tab_count), |
227 UITest::GetBrowserProcessCount()); | 227 UITest::GetBrowserProcessCount()); |
228 } | 228 } |
229 #endif | 229 #endif |
OLD | NEW |