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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 TEST_F(WorkerTest, SingleSharedWorker) { | 196 TEST_F(WorkerTest, SingleSharedWorker) { |
197 RunTest(FilePath(FILE_PATH_LITERAL("single_worker.html?shared=true"))); | 197 RunTest(FilePath(FILE_PATH_LITERAL("single_worker.html?shared=true"))); |
198 } | 198 } |
199 | 199 |
200 TEST_F(WorkerTest, MultipleSharedWorkers) { | 200 TEST_F(WorkerTest, MultipleSharedWorkers) { |
201 RunTest(FilePath(FILE_PATH_LITERAL("multi_worker.html?shared=true"))); | 201 RunTest(FilePath(FILE_PATH_LITERAL("multi_worker.html?shared=true"))); |
202 } | 202 } |
203 | 203 |
204 #if defined(OS_LINUX) | 204 #if defined(OS_LINUX) |
| 205 // http://crbug.com/30021 |
205 #define IncognitoSharedWorkers FLAKY_IncognitoSharedWorkers | 206 #define IncognitoSharedWorkers FLAKY_IncognitoSharedWorkers |
206 #endif | 207 #endif |
207 | 208 |
208 // Incognito windows should not share workers with non-incognito windows | 209 // Incognito windows should not share workers with non-incognito windows |
209 TEST_F(WorkerTest, IncognitoSharedWorkers) { | 210 TEST_F(WorkerTest, IncognitoSharedWorkers) { |
210 // Load a non-incognito tab and have it create a shared worker | 211 // Load a non-incognito tab and have it create a shared worker |
211 RunTest(FilePath(FILE_PATH_LITERAL("incognito_worker.html"))); | 212 RunTest(FilePath(FILE_PATH_LITERAL("incognito_worker.html"))); |
212 // Incognito worker should not share with non-incognito | 213 // Incognito worker should not share with non-incognito |
213 RunIncognitoTest(FilePath(FILE_PATH_LITERAL("incognito_worker.html"))); | 214 RunIncognitoTest(FilePath(FILE_PATH_LITERAL("incognito_worker.html"))); |
214 } | 215 } |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 RunWorkerFileSystemLayoutTest("simple-persistent-sync.html"); | 711 RunWorkerFileSystemLayoutTest("simple-persistent-sync.html"); |
711 } | 712 } |
712 | 713 |
713 TEST_F(WorkerTest, DISABLED_WorkerFileSystemAsyncOperationsTest) { | 714 TEST_F(WorkerTest, DISABLED_WorkerFileSystemAsyncOperationsTest) { |
714 RunWorkerFileSystemLayoutTest("async-operations.html"); | 715 RunWorkerFileSystemLayoutTest("async-operations.html"); |
715 } | 716 } |
716 | 717 |
717 TEST_F(WorkerTest, DISABLED_WorkerFileSystemSyncOperationsTest) { | 718 TEST_F(WorkerTest, DISABLED_WorkerFileSystemSyncOperationsTest) { |
718 RunWorkerFileSystemLayoutTest("sync-operations.html"); | 719 RunWorkerFileSystemLayoutTest("sync-operations.html"); |
719 } | 720 } |
OLD | NEW |