| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 TEST_F(WorkerTest, WorkerMapGc) { |
| 285 RunWorkerFastLayoutTest("wrapper-map-gc.html"); | 285 RunWorkerFastLayoutTest("wrapper-map-gc.html"); |
| 286 } | 286 } |
| 287 | 287 |
| 288 TEST_F(WorkerTest, WorkerMessagePort) { | 288 TEST_F(WorkerTest, FAILS_WorkerMessagePort) { |
| 289 RunWorkerFastLayoutTest("worker-messageport.html"); | 289 RunWorkerFastLayoutTest("worker-messageport.html"); |
| 290 } | 290 } |
| 291 | 291 |
| 292 TEST_F(WorkerTest, WorkerMessagePortGC) { | 292 TEST_F(WorkerTest, WorkerMessagePortGC) { |
| 293 RunWorkerFastLayoutTest("worker-messageport-gc.html"); | 293 RunWorkerFastLayoutTest("worker-messageport-gc.html"); |
| 294 } | 294 } |
| 295 | 295 |
| 296 TEST_F(WorkerTest, WorkerMultiPort) { | 296 TEST_F(WorkerTest, WorkerMultiPort) { |
| 297 RunWorkerFastLayoutTest("worker-multi-port.html"); | 297 RunWorkerFastLayoutTest("worker-multi-port.html"); |
| 298 } | 298 } |
| 299 | 299 |
| 300 TEST_F(WorkerTest, WorkerNavigator) { | 300 TEST_F(WorkerTest, WorkerNavigator) { |
| 301 RunWorkerFastLayoutTest("worker-navigator.html"); | 301 RunWorkerFastLayoutTest("worker-navigator.html"); |
| 302 } | 302 } |
| 303 | 303 |
| 304 TEST_F(WorkerTest, WorkerReplaceGlobalConstructor) { | 304 TEST_F(WorkerTest, WorkerReplaceGlobalConstructor) { |
| 305 RunWorkerFastLayoutTest("worker-replace-global-constructor.html"); | 305 RunWorkerFastLayoutTest("worker-replace-global-constructor.html"); |
| 306 } | 306 } |
| 307 | 307 |
| 308 TEST_F(WorkerTest, WorkerReplaceSelf) { | 308 TEST_F(WorkerTest, WorkerReplaceSelf) { |
| 309 RunWorkerFastLayoutTest("worker-replace-self.html"); | 309 RunWorkerFastLayoutTest("worker-replace-self.html"); |
| 310 } | 310 } |
| 311 | 311 |
| 312 // See bug 44457. | 312 // See bug 44457. |
| 313 #if defined(OS_MACOSX) | 313 #if defined(OS_MACOSX) |
| 314 #define WorkerScriptError FLAKY_WorkerScriptError | 314 #define WorkerScriptError FLAKY_WorkerScriptError |
| 315 #endif | 315 #endif |
| 316 | 316 |
| 317 TEST_F(WorkerTest, WorkerScriptError) { | 317 TEST_F(WorkerTest, FAILS_WorkerScriptError) { |
| 318 RunWorkerFastLayoutTest("worker-script-error.html"); | 318 RunWorkerFastLayoutTest("worker-script-error.html"); |
| 319 } | 319 } |
| 320 | 320 |
| 321 TEST_F(WorkerTest, WorkerTerminate) { | 321 TEST_F(WorkerTest, WorkerTerminate) { |
| 322 RunWorkerFastLayoutTest("worker-terminate.html"); | 322 RunWorkerFastLayoutTest("worker-terminate.html"); |
| 323 } | 323 } |
| 324 | 324 |
| 325 TEST_F(WorkerTest, WorkerTimeout) { | 325 TEST_F(WorkerTest, WorkerTimeout) { |
| 326 RunWorkerFastLayoutTest("worker-timeout.html"); | 326 RunWorkerFastLayoutTest("worker-timeout.html"); |
| 327 } | 327 } |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 | 661 |
| 662 std::string value = WaitUntilCookieNonEmpty(tab.get(), url, | 662 std::string value = WaitUntilCookieNonEmpty(tab.get(), url, |
| 663 kTestCompleteCookie, action_max_timeout_ms()); | 663 kTestCompleteCookie, action_max_timeout_ms()); |
| 664 ASSERT_STREQ(kTestCompleteSuccess, value.c_str()); | 664 ASSERT_STREQ(kTestCompleteSuccess, value.c_str()); |
| 665 ASSERT_TRUE(WaitForProcessCountToBe(2, max_workers_per_tab+1)); | 665 ASSERT_TRUE(WaitForProcessCountToBe(2, max_workers_per_tab+1)); |
| 666 } | 666 } |
| 667 | 667 |
| 668 TEST_F(WorkerTest, OpenDatabaseSyncInputs) { | 668 TEST_F(WorkerTest, OpenDatabaseSyncInputs) { |
| 669 RunWorkerStorageLayoutTest("open-database-sync-inputs.html"); | 669 RunWorkerStorageLayoutTest("open-database-sync-inputs.html"); |
| 670 } | 670 } |
| OLD | NEW |