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 "base/file_path.h" | 5 #include "base/file_path.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/test/test_timeouts.h" | 7 #include "base/test/test_timeouts.h" |
8 #include "chrome/test/automation/tab_proxy.h" | 8 #include "chrome/test/automation/tab_proxy.h" |
9 #include "chrome/test/base/ui_test_utils.h" | 9 #include "chrome/test/base/ui_test_utils.h" |
10 #include "chrome/test/ui/ui_layout_test.h" | 10 #include "chrome/test/ui/ui_layout_test.h" |
11 #include "content/public/common/content_switches.h" | 11 #include "content/public/common/content_switches.h" |
12 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
13 | 13 |
14 static const char* kLayoutTestFileNames[] = { | 14 static const char* kLayoutTestFileNames[] = { |
15 // TODO(dgrogan): Put the other IDB layout tests here. | 15 // TODO(dgrogan): Put the other IDB layout tests here. |
16 "prefetch-bugfix-108071.html", | 16 "prefetch-bugfix-108071.html", |
17 "basics.html", | 17 "basics.html", |
18 // "objectstore-basics.html", // Too big: crbug.com/33472 | 18 // "objectstore-basics.html", // Too big: crbug.com/33472 |
19 // "index-basics.html", // Too big. | 19 // "index-basics.html", // Too big. |
20 }; | 20 }; |
21 | 21 |
22 static const char* kWorkerTestFileNames[] = { | 22 static const char* kWorkerTestFileNames[] = { |
23 "basics-workers.html", | 23 "basics-workers.html", |
| 24 "basics-shared-workers.html", |
24 // "objectstore-basics-workers.html", // Too big. | 25 // "objectstore-basics-workers.html", // Too big. |
25 }; | 26 }; |
26 | 27 |
27 class IndexedDBUILayoutTest : public UILayoutTest { | 28 class IndexedDBUILayoutTest : public UILayoutTest { |
28 protected: | 29 protected: |
29 IndexedDBUILayoutTest() | 30 IndexedDBUILayoutTest() |
30 : UILayoutTest(), | 31 : UILayoutTest(), |
31 test_dir_(FilePath(). | 32 test_dir_(FilePath(). |
32 AppendASCII("storage").AppendASCII("indexeddb")) { | 33 AppendASCII("storage").AppendASCII("indexeddb")) { |
33 } | 34 } |
(...skipping 21 matching lines...) Expand all Loading... |
55 RunLayoutTest(kLayoutTestFileNames[i], port); | 56 RunLayoutTest(kLayoutTestFileNames[i], port); |
56 } | 57 } |
57 | 58 |
58 TEST_F(IndexedDBUILayoutTest, WorkerLayoutTests) { | 59 TEST_F(IndexedDBUILayoutTest, WorkerLayoutTests) { |
59 const int port = kNoHttpPort; | 60 const int port = kNoHttpPort; |
60 InitializeForLayoutTest(test_dir_, FilePath(), port); | 61 InitializeForLayoutTest(test_dir_, FilePath(), port); |
61 AddJSTestResources(); | 62 AddJSTestResources(); |
62 for (size_t i = 0; i < arraysize(kWorkerTestFileNames); ++i) | 63 for (size_t i = 0; i < arraysize(kWorkerTestFileNames); ++i) |
63 RunLayoutTest(kWorkerTestFileNames[i], port); | 64 RunLayoutTest(kWorkerTestFileNames[i], port); |
64 } | 65 } |
OLD | NEW |