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

Unified Diff: content/browser/in_process_webkit/indexed_db_layout_browsertest.cc

Issue 9693065: Run IDB layout test suite as browser tests instead of ui tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix some style stuff 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/automation/dom_element_proxy.cc ('k') | content/browser/in_process_webkit/indexed_db_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/in_process_webkit/indexed_db_layout_browsertest.cc
diff --git a/content/browser/in_process_webkit/indexed_db_layout_browsertest.cc b/content/browser/in_process_webkit/indexed_db_layout_browsertest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..73c9834e6465c8c28167c10f31df6c7b8cb89fdf
--- /dev/null
+++ b/content/browser/in_process_webkit/indexed_db_layout_browsertest.cc
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/file_path.h"
+#include "content/test/layout_browsertest.h"
+
+class IndexedDBLayoutTest : public InProcessBrowserLayoutTest {
+ public:
+ IndexedDBLayoutTest() : InProcessBrowserLayoutTest(
+ FilePath().AppendASCII("storage").AppendASCII("indexeddb")) {
+ }
+ virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
+ InProcessBrowserLayoutTest::SetUpInProcessBrowserTestFixture();
+ AddResourceForLayoutTest(
+ FilePath().AppendASCII("fast").AppendASCII("js"),
+ FilePath().AppendASCII("resources"));
+ }
+};
+
+namespace {
+
+static const char* kLayoutTestFileNames[] = {
+ "basics.html",
+ "basics-shared-workers.html",
+ "basics-workers.html",
+ "index-basics.html",
+ "objectstore-basics.html",
+ "prefetch-bugfix-108071.html",
+};
+
+}
+
+IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, FirstTest) {
+ for (size_t i = 0; i < arraysize(kLayoutTestFileNames); ++i)
+ RunLayoutTest(kLayoutTestFileNames[i]);
+}
« no previous file with comments | « chrome/test/automation/dom_element_proxy.cc ('k') | content/browser/in_process_webkit/indexed_db_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698