| 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 "base/string_util.h" | 5 #include "base/string_util.h" |
| 6 #include "chrome/app/chrome_dll_resource.h" | 6 #include "chrome/app/chrome_dll_resource.h" |
| 7 #include "chrome/browser/worker_host/worker_service.h" | 7 #include "chrome/browser/worker_host/worker_service.h" |
| 8 #include "chrome/common/chrome_switches.h" | 8 #include "chrome/common/chrome_switches.h" |
| 9 #include "chrome/test/automation/browser_proxy.h" | 9 #include "chrome/test/automation/browser_proxy.h" |
| 10 #include "chrome/test/automation/tab_proxy.h" | 10 #include "chrome/test/automation/tab_proxy.h" |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 } | 261 } |
| 262 | 262 |
| 263 TEST_F(WorkerTest, WorkerReplaceGlobalConstructor) { | 263 TEST_F(WorkerTest, WorkerReplaceGlobalConstructor) { |
| 264 RunWorkerFastLayoutTest("worker-replace-global-constructor.html"); | 264 RunWorkerFastLayoutTest("worker-replace-global-constructor.html"); |
| 265 } | 265 } |
| 266 | 266 |
| 267 TEST_F(WorkerTest, WorkerReplaceSelf) { | 267 TEST_F(WorkerTest, WorkerReplaceSelf) { |
| 268 RunWorkerFastLayoutTest("worker-replace-self.html"); | 268 RunWorkerFastLayoutTest("worker-replace-self.html"); |
| 269 } | 269 } |
| 270 | 270 |
| 271 TEST_F(WorkerTest, WorkerScriptError) { | 271 // http://crbug.com/38918 |
| 272 TEST_F(WorkerTest, DISABLED_WorkerScriptError) { |
| 272 RunWorkerFastLayoutTest("worker-script-error.html"); | 273 RunWorkerFastLayoutTest("worker-script-error.html"); |
| 273 } | 274 } |
| 274 | 275 |
| 275 // http://crbug.com/36630. | 276 // http://crbug.com/36630. |
| 276 TEST_F(WorkerTest, DISABLED_WorkerTerminate) { | 277 TEST_F(WorkerTest, DISABLED_WorkerTerminate) { |
| 277 RunWorkerFastLayoutTest("worker-terminate.html"); | 278 RunWorkerFastLayoutTest("worker-terminate.html"); |
| 278 } | 279 } |
| 279 | 280 |
| 280 TEST_F(WorkerTest, WorkerTimeout) { | 281 TEST_F(WorkerTest, WorkerTimeout) { |
| 281 RunWorkerFastLayoutTest("worker-timeout.html"); | 282 RunWorkerFastLayoutTest("worker-timeout.html"); |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 scoped_refptr<BrowserProxy> window(automation()->GetBrowserWindow(0)); | 589 scoped_refptr<BrowserProxy> window(automation()->GetBrowserWindow(0)); |
| 589 GURL url2 = GetTestUrl(L"workers", L"single_shared_worker.html"); | 590 GURL url2 = GetTestUrl(L"workers", L"single_shared_worker.html"); |
| 590 url2 = GURL(url2.spec() + StringPrintf("?id=%d", max_workers_per_tab)); | 591 url2 = GURL(url2.spec() + StringPrintf("?id=%d", max_workers_per_tab)); |
| 591 ASSERT_TRUE(window->AppendTab(url2)); | 592 ASSERT_TRUE(window->AppendTab(url2)); |
| 592 | 593 |
| 593 std::string value = WaitUntilCookieNonEmpty(tab.get(), url, | 594 std::string value = WaitUntilCookieNonEmpty(tab.get(), url, |
| 594 kTestCompleteCookie, kTestIntervalMs, kTestWaitTimeoutMs); | 595 kTestCompleteCookie, kTestIntervalMs, kTestWaitTimeoutMs); |
| 595 ASSERT_STREQ(kTestCompleteSuccess, value.c_str()); | 596 ASSERT_STREQ(kTestCompleteSuccess, value.c_str()); |
| 596 ASSERT_TRUE(WaitForProcessCountToBe(2, max_workers_per_tab+1)); | 597 ASSERT_TRUE(WaitForProcessCountToBe(2, max_workers_per_tab+1)); |
| 597 } | 598 } |
| OLD | NEW |