| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/test/layout_browsertest.h" | 5 #include "content/test/layout_browsertest.h" |
| 6 | 6 |
| 7 namespace content { | 7 namespace content { |
| 8 | 8 |
| 9 class BlobLayoutTest : public InProcessBrowserLayoutTest { | 9 class BlobLayoutTest : public InProcessBrowserLayoutTest { |
| 10 public: | 10 public: |
| 11 BlobLayoutTest() : | 11 BlobLayoutTest() : |
| 12 InProcessBrowserLayoutTest( | 12 InProcessBrowserLayoutTest( |
| 13 FilePath(), | 13 FilePath(), |
| 14 FilePath(FILE_PATH_LITERAL("fast/files")).NormalizePathSeparators()) { | 14 FilePath(FILE_PATH_LITERAL("fast/files")).NormalizePathSeparators()) { |
| 15 } | 15 } |
| 16 }; | 16 }; |
| 17 | 17 |
| 18 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, SliceTests) { | 18 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, SliceTests) { |
| 19 RunLayoutTest("blob-slice-test.html"); | 19 RunLayoutTest("blob-slice-test.html"); |
| 20 } | 20 } |
| 21 | 21 |
| 22 #if defined(OS_WIN) | 22 // crbug.com/169240 for disabling on Windows, crbug.com/173079 for temporary |
| 23 // http://crbug/169240 | 23 // disabling everywhere. |
| 24 # define MAYBE_ApplyBlobUrlToImg DISABLED_ApplyBlobUrlToImg | 24 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_ApplyBlobUrlToImg) { |
| 25 #else | |
| 26 # define MAYBE_ApplyBlobUrlToImg ApplyBlobUrlToImg | |
| 27 #endif | |
| 28 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, MAYBE_ApplyBlobUrlToImg) { | |
| 29 RunLayoutTest("apply-blob-url-to-img.html"); | 25 RunLayoutTest("apply-blob-url-to-img.html"); |
| 30 } | 26 } |
| 31 | 27 |
| 32 #if defined(OS_WIN) | 28 // crbug.com/169240 for disabling on Windows, crbug.com/173079 for temporary |
| 33 // http://crbug/169240 | 29 // disabling everywhere. |
| 34 # define MAYBE_ApplyBlobUrlToXhr DISABLED_ApplyBlobUrlToXhr | 30 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_ApplyBlobUrlToXhr) { |
| 35 #else | |
| 36 # define MAYBE_ApplyBlobUrlToXhr ApplyBlobUrlToXhr | |
| 37 #endif | |
| 38 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, MAYBE_ApplyBlobUrlToXhr) { | |
| 39 RunLayoutTest("apply-blob-url-to-xhr.html"); | 31 RunLayoutTest("apply-blob-url-to-xhr.html"); |
| 40 } | 32 } |
| 41 | 33 |
| 42 // webkit.org/b/85174 | 34 // webkit.org/b/85174 |
| 43 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_BlobConstructor) { | 35 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_BlobConstructor) { |
| 44 RunLayoutTest("blob-constructor.html"); | 36 RunLayoutTest("blob-constructor.html"); |
| 45 } | 37 } |
| 46 | 38 |
| 47 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, BlobSliceOverflow) { | 39 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, BlobSliceOverflow) { |
| 48 RunLayoutTest("blob-slice-overflow.html"); | 40 RunLayoutTest("blob-slice-overflow.html"); |
| 49 } | 41 } |
| 50 | 42 |
| 51 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, BlobSliceTest) { | 43 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, BlobSliceTest) { |
| 52 RunLayoutTest("blob-slice-test.html"); | 44 RunLayoutTest("blob-slice-test.html"); |
| 53 } | 45 } |
| 54 | 46 |
| 55 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, CreateBlobUrlCrash) { | 47 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, CreateBlobUrlCrash) { |
| 56 RunLayoutTest("create-blob-url-crash.html"); | 48 RunLayoutTest("create-blob-url-crash.html"); |
| 57 } | 49 } |
| 58 | 50 |
| 59 // crbug.com/170155 | 51 // crbug.com/170155 |
| 60 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, | 52 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, |
| 61 DISABLED_DomurlScriptExecutionContextCrash) { | 53 DISABLED_DomurlScriptExecutionContextCrash) { |
| 62 RunLayoutTest("domurl-script-execution-context-crash.html"); | 54 RunLayoutTest("domurl-script-execution-context-crash.html"); |
| 63 } | 55 } |
| 64 | 56 |
| 65 #if defined(OS_WIN) | 57 // crbug.com/169240 for disabling on Windows, crbug.com/173079 for temporary |
| 66 // http://crbug/169240 | 58 // disabling everywhere. |
| 67 # define MAYBE_FileListTest DISABLED_FileListTest | 59 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_FileListTest) { |
| 68 #else | |
| 69 # define MAYBE_FileListTest FileListTest | |
| 70 #endif | |
| 71 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, MAYBE_FileListTest) { | |
| 72 RunLayoutTest("file-list-test.html"); | 60 RunLayoutTest("file-list-test.html"); |
| 73 } | 61 } |
| 74 | 62 |
| 75 #if defined(OS_WIN) | 63 // crbug.com/169240 for disabling on Windows, crbug.com/173079 for temporary |
| 76 // http://crbug/169240 | 64 // disabling everywhere. |
| 77 # define MAYBE_FileReaderAbort DISABLED_FileReaderAbort | 65 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_FileReaderAbort) { |
| 78 #else | |
| 79 # define MAYBE_FileReaderAbort FileReaderAbort | |
| 80 #endif | |
| 81 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, MAYBE_FileReaderAbort) { | |
| 82 RunLayoutTest("file-reader-abort.html"); | 66 RunLayoutTest("file-reader-abort.html"); |
| 83 } | 67 } |
| 84 | 68 |
| 85 #if defined(OS_WIN) | 69 // crbug.com/169240 for disabling on Windows, crbug.com/173079 for temporary |
| 86 // http://crbug/169240 | 70 // disabling everywhere. |
| 87 # define MAYBE_FileReaderDirectoryCrash DISABLED_FileReaderDirectoryCrash | 71 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_FileReaderDirectoryCrash) { |
| 88 #else | |
| 89 # define MAYBE_FileReaderDirectoryCrash FileReaderDirectoryCrash | |
| 90 #endif | |
| 91 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, MAYBE_FileReaderDirectoryCrash) { | |
| 92 RunLayoutTest("file-reader-directory-crash.html"); | 72 RunLayoutTest("file-reader-directory-crash.html"); |
| 93 } | 73 } |
| 94 | 74 |
| 95 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, FileReaderDoneReadingAbort) { | 75 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, FileReaderDoneReadingAbort) { |
| 96 RunLayoutTest("file-reader-done-reading-abort.html"); | 76 RunLayoutTest("file-reader-done-reading-abort.html"); |
| 97 } | 77 } |
| 98 | 78 |
| 99 #if defined(OS_WIN) | 79 // crbug.com/169240 for disabling on Windows, crbug.com/173079 for temporary |
| 100 // http://crbug/169240 | 80 // disabling everywhere. |
| 101 # define MAYBE_FileReaderEventListener DISABLED_FileReaderEventListener | 81 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_FileReaderEventListener) { |
| 102 #else | |
| 103 # define MAYBE_FileReaderEventListener FileReaderEventListener | |
| 104 #endif | |
| 105 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, MAYBE_FileReaderEventListener) { | |
| 106 RunLayoutTest("file-reader-event-listener.html"); | 82 RunLayoutTest("file-reader-event-listener.html"); |
| 107 } | 83 } |
| 108 | 84 |
| 109 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, FileReaderFffd) { | 85 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, FileReaderFffd) { |
| 110 RunLayoutTest("file-reader-fffd.html"); | 86 RunLayoutTest("file-reader-fffd.html"); |
| 111 } | 87 } |
| 112 | 88 |
| 113 // crbug.com/170154 | 89 // crbug.com/170154 |
| 114 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_FileReaderFileUrl) { | 90 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_FileReaderFileUrl) { |
| 115 RunLayoutTest("file-reader-file-url.html"); | 91 RunLayoutTest("file-reader-file-url.html"); |
| 116 } | 92 } |
| 117 | 93 |
| 118 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, FileReaderImmediateAbort) { | 94 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, FileReaderImmediateAbort) { |
| 119 RunLayoutTest("file-reader-immediate-abort.html"); | 95 RunLayoutTest("file-reader-immediate-abort.html"); |
| 120 } | 96 } |
| 121 | 97 |
| 122 // crbug.com/170154 | 98 // crbug.com/170154 |
| 123 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_FileReaderSandboxIframe) { | 99 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_FileReaderSandboxIframe) { |
| 124 RunLayoutTest("file-reader-sandbox-iframe.html"); | 100 RunLayoutTest("file-reader-sandbox-iframe.html"); |
| 125 } | 101 } |
| 126 | 102 |
| 127 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, NotEnoughArguments) { | 103 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, NotEnoughArguments) { |
| 128 RunLayoutTest("not-enough-arguments.html"); | 104 RunLayoutTest("not-enough-arguments.html"); |
| 129 } | 105 } |
| 130 | 106 |
| 131 #if defined(OS_WIN) | 107 // crbug.com/169240 for disabling on Windows, crbug.com/173079 for temporary |
| 132 // http://crbug/169240 | 108 // disabling everywhere. |
| 133 # define MAYBE_NullOriginString DISABLED_NullOriginString | 109 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_NullOriginString) { |
| 134 #else | |
| 135 # define MAYBE_NullOriginString NullOriginString | |
| 136 #endif | |
| 137 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, MAYBE_NullOriginString) { | |
| 138 RunLayoutTest("null-origin-string.html"); | 110 RunLayoutTest("null-origin-string.html"); |
| 139 } | 111 } |
| 140 | 112 |
| 141 #if defined(OS_WIN) | 113 // crbug.com/169240 for disabling on Windows, crbug.com/173079 for temporary |
| 142 // http://crbug/169240 | 114 // disabling everywhere. |
| 143 # define MAYBE_ReadBlobAsync DISABLED_ReadBlobAsync | 115 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_ReadBlobAsync) { |
| 144 #else | |
| 145 # define MAYBE_ReadBlobAsync ReadBlobAsync | |
| 146 #endif | |
| 147 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, MAYBE_ReadBlobAsync) { | |
| 148 RunLayoutTest("read-blob-async.html"); | 116 RunLayoutTest("read-blob-async.html"); |
| 149 } | 117 } |
| 150 | 118 |
| 151 #if defined(OS_WIN) | 119 // crbug.com/169240 for disabling on Windows, crbug.com/173079 for temporary |
| 152 // http://crbug/169240 | 120 // disabling everywhere. |
| 153 # define MAYBE_ReadFileAsync DISABLED_ReadFileAsync | 121 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_ReadFileAsync) { |
| 154 #else | |
| 155 # define MAYBE_ReadFileAsync ReadFileAsync | |
| 156 #endif | |
| 157 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, MAYBE_ReadFileAsync) { | |
| 158 RunLayoutTest("read-file-async.html"); | 122 RunLayoutTest("read-file-async.html"); |
| 159 } | 123 } |
| 160 | 124 |
| 161 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, RevokeBlobUrl) { | 125 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, RevokeBlobUrl) { |
| 162 RunLayoutTest("revoke-blob-url.html"); | 126 RunLayoutTest("revoke-blob-url.html"); |
| 163 } | 127 } |
| 164 | 128 |
| 165 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, UrlNull) { | 129 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, UrlNull) { |
| 166 RunLayoutTest("url-null.html"); | 130 RunLayoutTest("url-null.html"); |
| 167 } | 131 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_WorkersWorkerReadFileAsync) { | 163 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_WorkersWorkerReadFileAsync) { |
| 200 RunLayoutTest("workers/worker-read-file-async.html"); | 164 RunLayoutTest("workers/worker-read-file-async.html"); |
| 201 } | 165 } |
| 202 | 166 |
| 203 // crbug.com/170152 | 167 // crbug.com/170152 |
| 204 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_WorkersWorkerReadFileSync) { | 168 IN_PROC_BROWSER_TEST_F(BlobLayoutTest, DISABLED_WorkersWorkerReadFileSync) { |
| 205 RunLayoutTest("workers/worker-read-file-sync.html"); | 169 RunLayoutTest("workers/worker-read-file-sync.html"); |
| 206 } | 170 } |
| 207 | 171 |
| 208 } // namespace content | 172 } // namespace content |
| OLD | NEW |