| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/test/test_timeouts.h" | 7 #include "base/test/test_timeouts.h" |
| 8 #include "base/threading/platform_thread.h" | 8 #include "base/threading/platform_thread.h" |
| 9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
| 10 #include "chrome/test/automation/automation_proxy.h" | 10 #include "chrome/test/automation/automation_proxy.h" |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 279 |
| 280 // Flaky (on XP), http://crbug.com/84203. | 280 // Flaky (on XP), http://crbug.com/84203. |
| 281 TEST_F(WorkerTest, FLAKY_WorkerConstructor) { | 281 TEST_F(WorkerTest, FLAKY_WorkerConstructor) { |
| 282 RunWorkerFastLayoutTest("worker-constructor.html"); | 282 RunWorkerFastLayoutTest("worker-constructor.html"); |
| 283 } | 283 } |
| 284 | 284 |
| 285 TEST_F(WorkerTest, WorkerContextGc) { | 285 TEST_F(WorkerTest, WorkerContextGc) { |
| 286 RunWorkerFastLayoutTest("worker-context-gc.html"); | 286 RunWorkerFastLayoutTest("worker-context-gc.html"); |
| 287 } | 287 } |
| 288 | 288 |
| 289 TEST_F(WorkerTest, WorkerContextMultiPort) { | 289 // Started flaking on Linux with WebKit roll 98537:98582. |
| 290 // crbug.com/101996 |
| 291 #if defined(OS_LINUX) |
| 292 #define MAYBE_WorkerContextMultiPort FLAKY_WorkerContextMultiPort |
| 293 #else |
| 294 #define MAYBE_WorkerContextMultiPort WorkerContextMultiPort |
| 295 #endif |
| 296 TEST_F(WorkerTest, MAYBE_WorkerContextMultiPort) { |
| 290 RunWorkerFastLayoutTest("worker-context-multi-port.html"); | 297 RunWorkerFastLayoutTest("worker-context-multi-port.html"); |
| 291 } | 298 } |
| 292 | 299 |
| 293 TEST_F(WorkerTest, WorkerEventListener) { | 300 TEST_F(WorkerTest, WorkerEventListener) { |
| 294 RunWorkerFastLayoutTest("worker-event-listener.html"); | 301 RunWorkerFastLayoutTest("worker-event-listener.html"); |
| 295 } | 302 } |
| 296 | 303 |
| 297 TEST_F(WorkerTest, WorkerGC) { | 304 TEST_F(WorkerTest, WorkerGC) { |
| 298 RunWorkerFastLayoutTest("worker-gc.html"); | 305 RunWorkerFastLayoutTest("worker-gc.html"); |
| 299 } | 306 } |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 | 779 |
| 773 // Navigate to a blank page so that any workers are cleaned up. | 780 // Navigate to a blank page so that any workers are cleaned up. |
| 774 // This helps leaks trackers do a better job of reporting. | 781 // This helps leaks trackers do a better job of reporting. |
| 775 scoped_refptr<TabProxy> tab(GetActiveTab()); | 782 scoped_refptr<TabProxy> tab(GetActiveTab()); |
| 776 ASSERT_TRUE(tab.get()); | 783 ASSERT_TRUE(tab.get()); |
| 777 GURL about_url(chrome::kAboutBlankURL); | 784 GURL about_url(chrome::kAboutBlankURL); |
| 778 EXPECT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(about_url)); | 785 EXPECT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(about_url)); |
| 779 } | 786 } |
| 780 }; | 787 }; |
| 781 | 788 |
| 782 TEST_F(WorkerFileSystemTest, Temporary) { | 789 // Started flaking on Linux with WebKit roll 98537:98582. |
| 790 // crbug.com/101996 |
| 791 #if defined(OS_LINUX) |
| 792 #define MAYBE_Temporary FLAKY_Temporary |
| 793 #define MAYBE_Persistent FLAKY_Persistent |
| 794 #define MAYBE_SyncTemporary FLAKY_SyncTemporary |
| 795 #define MAYBE_AsyncOperations FLAKY_AsyncOperations |
| 796 #define MAYBE_SyncOperations FLAKY_SyncOperations |
| 797 #define MAYBE_FileEntryToURISync FLAKY_FileEntryToURISync |
| 798 #else |
| 799 #define MAYBE_Temporary Temporary |
| 800 #define MAYBE_Persistent Persistent |
| 801 #define MAYBE_SyncTemporary SyncTemporary |
| 802 #define MAYBE_AsyncOperations AsyncOperations |
| 803 #define MAYBE_SyncOperations SyncOperations |
| 804 #define MAYBE_FileEntryToURISync FileEntryToURISync |
| 805 #endif |
| 806 TEST_F(WorkerFileSystemTest, MAYBE_Temporary) { |
| 783 RunWorkerFileSystemLayoutTest("simple-temporary.html"); | 807 RunWorkerFileSystemLayoutTest("simple-temporary.html"); |
| 784 } | 808 } |
| 785 | 809 |
| 786 TEST_F(WorkerFileSystemTest, Persistent) { | 810 TEST_F(WorkerFileSystemTest, MAYBE_Persistent) { |
| 787 RunWorkerFileSystemLayoutTest("simple-persistent.html"); | 811 RunWorkerFileSystemLayoutTest("simple-persistent.html"); |
| 788 } | 812 } |
| 789 | 813 |
| 790 TEST_F(WorkerFileSystemTest, SyncTemporary) { | 814 TEST_F(WorkerFileSystemTest, MAYBE_SyncTemporary) { |
| 791 RunWorkerFileSystemLayoutTest("simple-temporary-sync.html"); | 815 RunWorkerFileSystemLayoutTest("simple-temporary-sync.html"); |
| 792 } | 816 } |
| 793 | 817 |
| 794 // TODO(dpranke): This started failing in the webkit roll 84046:84325. | 818 // TODO(dpranke): This started failing in the webkit roll 84046:84325. |
| 795 // The upstream expectation needs to be updated. | 819 // The upstream expectation needs to be updated. |
| 796 TEST_F(WorkerFileSystemTest, FAILS_SyncPersistent) { | 820 TEST_F(WorkerFileSystemTest, FAILS_SyncPersistent) { |
| 797 RunWorkerFileSystemLayoutTest("simple-persistent-sync.html"); | 821 RunWorkerFileSystemLayoutTest("simple-persistent-sync.html"); |
| 798 } | 822 } |
| 799 | 823 |
| 800 TEST_F(WorkerFileSystemTest, AsyncOperations) { | 824 TEST_F(WorkerFileSystemTest, MAYBE_AsyncOperations) { |
| 801 RunWorkerFileSystemLayoutTest("async-operations.html"); | 825 RunWorkerFileSystemLayoutTest("async-operations.html"); |
| 802 } | 826 } |
| 803 | 827 |
| 804 TEST_F(WorkerFileSystemTest, SyncOperations) { | 828 TEST_F(WorkerFileSystemTest, MAYBE_SyncOperations) { |
| 805 RunWorkerFileSystemLayoutTest("sync-operations.html"); | 829 RunWorkerFileSystemLayoutTest("sync-operations.html"); |
| 806 } | 830 } |
| 807 | 831 |
| 808 TEST_F(WorkerFileSystemTest, FileEntryToURISync) { | 832 TEST_F(WorkerFileSystemTest, MAYBE_FileEntryToURISync) { |
| 809 RunWorkerFileSystemLayoutTest("file-entry-to-uri-sync.html"); | 833 RunWorkerFileSystemLayoutTest("file-entry-to-uri-sync.html"); |
| 810 } | 834 } |
| 811 | 835 |
| 812 // http://crbug.com/77442 | 836 // http://crbug.com/77442 |
| 813 TEST_F(WorkerFileSystemTest, FLAKY_ResolveURLHttpTests) { | 837 TEST_F(WorkerFileSystemTest, FLAKY_ResolveURLHttpTests) { |
| 814 static const char* kLayoutTests[] = { | 838 static const char* kLayoutTests[] = { |
| 815 "resolve-url.html", | 839 "resolve-url.html", |
| 816 "resolve-url-sync.html" | 840 "resolve-url-sync.html" |
| 817 }; | 841 }; |
| 818 RunWorkerFileSystemLayoutHttpTests(kLayoutTests, arraysize(kLayoutTests)); | 842 RunWorkerFileSystemLayoutHttpTests(kLayoutTests, arraysize(kLayoutTests)); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 839 RunWorkerFileSystemLayoutTest("file-writer-truncate-extend.html"); | 863 RunWorkerFileSystemLayoutTest("file-writer-truncate-extend.html"); |
| 840 } | 864 } |
| 841 | 865 |
| 842 TEST_F(WorkerFileSystemTest, FileWriterSyncTruncateExtend) { | 866 TEST_F(WorkerFileSystemTest, FileWriterSyncTruncateExtend) { |
| 843 RunWorkerFileSystemLayoutTest("file-writer-sync-truncate-extend.html"); | 867 RunWorkerFileSystemLayoutTest("file-writer-sync-truncate-extend.html"); |
| 844 } | 868 } |
| 845 | 869 |
| 846 TEST_F(WorkerFileSystemTest, FileWriterSyncWriteOverlapped) { | 870 TEST_F(WorkerFileSystemTest, FileWriterSyncWriteOverlapped) { |
| 847 RunWorkerFileSystemLayoutTest("file-writer-sync-write-overlapped.html"); | 871 RunWorkerFileSystemLayoutTest("file-writer-sync-write-overlapped.html"); |
| 848 } | 872 } |
| OLD | NEW |