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

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: var renames 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
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..05a6af13e2abd12b986e2f81bf4eb27e3c986741
--- /dev/null
+++ b/content/browser/in_process_webkit/indexed_db_layout_browsertest.cc
@@ -0,0 +1,36 @@
+// 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/browser/in_process_webkit/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]);
+}

Powered by Google App Engine
This is Rietveld 408576698