| 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/file_path.h" | 5 #include "base/file_path.h" |
| 6 #include "base/string_util.h" | 6 #include "base/string_util.h" |
| 7 #include "chrome/app/chrome_dll_resource.h" | 7 #include "chrome/app/chrome_dll_resource.h" |
| 8 #include "chrome/browser/worker_host/worker_service.h" | 8 #include "chrome/browser/worker_host/worker_service.h" |
| 9 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
| 10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 // worker-lifecycle.html relies on layoutTestController.workerThreadCount | 274 // worker-lifecycle.html relies on layoutTestController.workerThreadCount |
| 275 // which is not currently implemented. http://crbug.com/45168 | 275 // which is not currently implemented. http://crbug.com/45168 |
| 276 TEST_F(WorkerTest, DISABLED_WorkerLifecycle) { | 276 TEST_F(WorkerTest, DISABLED_WorkerLifecycle) { |
| 277 RunWorkerFastLayoutTest("worker-lifecycle.html"); | 277 RunWorkerFastLayoutTest("worker-lifecycle.html"); |
| 278 } | 278 } |
| 279 | 279 |
| 280 TEST_F(WorkerTest, WorkerLocation) { | 280 TEST_F(WorkerTest, WorkerLocation) { |
| 281 RunWorkerFastLayoutTest("worker-location.html"); | 281 RunWorkerFastLayoutTest("worker-location.html"); |
| 282 } | 282 } |
| 283 | 283 |
| 284 TEST_F(WorkerTest, WorkerMapGc) { | 284 // http://crbug.com/48082 |
| 285 TEST_F(WorkerTest, FAILS_WorkerMapGc) { |
| 285 RunWorkerFastLayoutTest("wrapper-map-gc.html"); | 286 RunWorkerFastLayoutTest("wrapper-map-gc.html"); |
| 286 } | 287 } |
| 287 | 288 |
| 288 TEST_F(WorkerTest, FAILS_WorkerMessagePort) { | 289 TEST_F(WorkerTest, WorkerMessagePort) { |
| 289 RunWorkerFastLayoutTest("worker-messageport.html"); | 290 RunWorkerFastLayoutTest("worker-messageport.html"); |
| 290 } | 291 } |
| 291 | 292 |
| 292 TEST_F(WorkerTest, WorkerMessagePortGC) { | 293 // http://crbug.com/48082 |
| 294 TEST_F(WorkerTest, FAILS_WorkerMessagePortGC) { |
| 293 RunWorkerFastLayoutTest("worker-messageport-gc.html"); | 295 RunWorkerFastLayoutTest("worker-messageport-gc.html"); |
| 294 } | 296 } |
| 295 | 297 |
| 296 TEST_F(WorkerTest, WorkerMultiPort) { | 298 TEST_F(WorkerTest, WorkerMultiPort) { |
| 297 RunWorkerFastLayoutTest("worker-multi-port.html"); | 299 RunWorkerFastLayoutTest("worker-multi-port.html"); |
| 298 } | 300 } |
| 299 | 301 |
| 300 TEST_F(WorkerTest, WorkerNavigator) { | 302 TEST_F(WorkerTest, WorkerNavigator) { |
| 301 RunWorkerFastLayoutTest("worker-navigator.html"); | 303 RunWorkerFastLayoutTest("worker-navigator.html"); |
| 302 } | 304 } |
| 303 | 305 |
| 304 TEST_F(WorkerTest, WorkerReplaceGlobalConstructor) { | 306 TEST_F(WorkerTest, WorkerReplaceGlobalConstructor) { |
| 305 RunWorkerFastLayoutTest("worker-replace-global-constructor.html"); | 307 RunWorkerFastLayoutTest("worker-replace-global-constructor.html"); |
| 306 } | 308 } |
| 307 | 309 |
| 308 TEST_F(WorkerTest, WorkerReplaceSelf) { | 310 TEST_F(WorkerTest, WorkerReplaceSelf) { |
| 309 RunWorkerFastLayoutTest("worker-replace-self.html"); | 311 RunWorkerFastLayoutTest("worker-replace-self.html"); |
| 310 } | 312 } |
| 311 | 313 |
| 312 // See bug 44457. | 314 // See bug 44457. |
| 313 #if defined(OS_MACOSX) | 315 #if defined(OS_MACOSX) |
| 314 #define WorkerScriptError FLAKY_WorkerScriptError | 316 #define WorkerScriptError FLAKY_WorkerScriptError |
| 315 #endif | 317 #endif |
| 316 | 318 |
| 319 // http://crbug.com/48082 |
| 317 TEST_F(WorkerTest, FAILS_WorkerScriptError) { | 320 TEST_F(WorkerTest, FAILS_WorkerScriptError) { |
| 318 RunWorkerFastLayoutTest("worker-script-error.html"); | 321 RunWorkerFastLayoutTest("worker-script-error.html"); |
| 319 } | 322 } |
| 320 | 323 |
| 321 TEST_F(WorkerTest, WorkerTerminate) { | 324 TEST_F(WorkerTest, WorkerTerminate) { |
| 322 RunWorkerFastLayoutTest("worker-terminate.html"); | 325 RunWorkerFastLayoutTest("worker-terminate.html"); |
| 323 } | 326 } |
| 324 | 327 |
| 325 TEST_F(WorkerTest, WorkerTimeout) { | 328 TEST_F(WorkerTest, WorkerTimeout) { |
| 326 RunWorkerFastLayoutTest("worker-timeout.html"); | 329 RunWorkerFastLayoutTest("worker-timeout.html"); |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 FilePath(kSingleSharedWorkersFile)); | 661 FilePath(kSingleSharedWorkersFile)); |
| 659 url2 = GURL(url2.spec() + StringPrintf("?id=%d", max_workers_per_tab)); | 662 url2 = GURL(url2.spec() + StringPrintf("?id=%d", max_workers_per_tab)); |
| 660 ASSERT_TRUE(window->AppendTab(url2)); | 663 ASSERT_TRUE(window->AppendTab(url2)); |
| 661 | 664 |
| 662 std::string value = WaitUntilCookieNonEmpty(tab.get(), url, | 665 std::string value = WaitUntilCookieNonEmpty(tab.get(), url, |
| 663 kTestCompleteCookie, action_max_timeout_ms()); | 666 kTestCompleteCookie, action_max_timeout_ms()); |
| 664 ASSERT_STREQ(kTestCompleteSuccess, value.c_str()); | 667 ASSERT_STREQ(kTestCompleteSuccess, value.c_str()); |
| 665 ASSERT_TRUE(WaitForProcessCountToBe(2, max_workers_per_tab+1)); | 668 ASSERT_TRUE(WaitForProcessCountToBe(2, max_workers_per_tab+1)); |
| 666 } | 669 } |
| 667 | 670 |
| 668 TEST_F(WorkerTest, OpenDatabaseSyncInputs) { | 671 // http://crbug.com/48082 |
| 672 TEST_F(WorkerTest, FAILS_OpenDatabaseSyncInputs) { |
| 669 RunWorkerStorageLayoutTest("open-database-sync-inputs.html"); | 673 RunWorkerStorageLayoutTest("open-database-sync-inputs.html"); |
| 670 } | 674 } |
| OLD | NEW |