Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: content/browser/in_process_webkit/indexed_db_uitest.cc

Issue 9585031: IndexedDB: Run basics-shared-workers layout test as ui test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698