| 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, DISABLED_WorkerFastLayoutTests) { | 38 TEST_F(WorkerTest, WorkerFastLayoutTests) { |
| 39 static const char* kLayoutTestFiles[] = { | 39 static const char* kLayoutTestFiles[] = { |
| 40 "stress-js-execution.html", | 40 "stress-js-execution.html", |
| 41 "use-machine-stack.html", | 41 "use-machine-stack.html", |
| 42 "worker-call.html", | 42 "worker-call.html", |
| 43 //"worker-close.html", | 43 //"worker-close.html", |
| 44 "worker-constructor.html", | 44 "worker-constructor.html", |
| 45 "worker-context-gc.html", | 45 "worker-context-gc.html", |
| 46 "worker-event-listener.html", | 46 "worker-event-listener.html", |
| 47 "worker-gc.html", | 47 "worker-gc.html", |
| 48 "worker-location.html", | 48 "worker-location.html", |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 EXPECT_EQ(total_workers + 1 + (UITest::in_process_renderer() ? 0 : tab_count), | 175 EXPECT_EQ(total_workers + 1 + (UITest::in_process_renderer() ? 0 : tab_count), |
| 176 UITest::GetBrowserProcessCount()); | 176 UITest::GetBrowserProcessCount()); |
| 177 | 177 |
| 178 // Now close the first tab and check that the queued workers were started. | 178 // Now close the first tab and check that the queued workers were started. |
| 179 tab->Close(true); | 179 tab->Close(true); |
| 180 tab->NavigateToURL(GetTestUrl(L"google", L"google.html")); | 180 tab->NavigateToURL(GetTestUrl(L"google", L"google.html")); |
| 181 | 181 |
| 182 EXPECT_EQ(total_workers + 1 + (UITest::in_process_renderer() ? 0 : tab_count), | 182 EXPECT_EQ(total_workers + 1 + (UITest::in_process_renderer() ? 0 : tab_count), |
| 183 UITest::GetBrowserProcessCount()); | 183 UITest::GetBrowserProcessCount()); |
| 184 } | 184 } |
| OLD | NEW |