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

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

Issue 10941011: Rewrite layout_browsertests to use content_shell --dump-render-tree to execute layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 3 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
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 "content/test/layout_browsertest.h" 5 #include "content/test/layout_browsertest.h"
6 6
7 class IndexedDBLayoutTest : public InProcessBrowserLayoutTest { 7 class IndexedDBLayoutTest : public InProcessBrowserLayoutTest {
8 public: 8 public:
9 IndexedDBLayoutTest() : InProcessBrowserLayoutTest( 9 IndexedDBLayoutTest() : InProcessBrowserLayoutTest(
10 FilePath(), FilePath().AppendASCII("storage").AppendASCII("indexeddb")) { 10 FilePath(), FilePath().AppendASCII("storage").AppendASCII("indexeddb")) {
11 } 11 }
12 12
13 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
14 InProcessBrowserLayoutTest::SetUpInProcessBrowserTestFixture();
15 AddResourceForLayoutTest(
16 FilePath().AppendASCII("fast").AppendASCII("js"),
17 FilePath().AppendASCII("resources"));
18 }
19
20 void RunLayoutTests(const char* file_names[]) { 13 void RunLayoutTests(const char* file_names[]) {
21 for (size_t i = 0; file_names[i]; i++) 14 for (size_t i = 0; file_names[i]; i++)
22 RunLayoutTest(file_names[i]); 15 RunLayoutTest(file_names[i]);
23 } 16 }
24 }; 17 };
25 18
26 namespace { 19 namespace {
27 20
28 static const char* kBasicTests[] = { 21 static const char* kBasicTests[] = {
29 "basics.html", 22 "basics.html",
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } 125 }
133 126
134 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IntVersionTests) { 127 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IntVersionTests) {
135 RunLayoutTests(kIntVersionTests); 128 RunLayoutTests(kIntVersionTests);
136 } 129 }
137 130
138 // Frequent flaky timeouts. http://crbug.com/123685 131 // Frequent flaky timeouts. http://crbug.com/123685
139 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, RegressionTests) { 132 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, RegressionTests) {
140 RunLayoutTests(kRegressionTests); 133 RunLayoutTests(kRegressionTests);
141 } 134 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698