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

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

Issue 9269021: IndexedDB: Start running worker layout tests as ui tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add new workers test, but it's too big Created 8 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/in_process_webkit/indexed_db_uitest.cc
diff --git a/content/browser/in_process_webkit/indexed_db_uitest.cc b/content/browser/in_process_webkit/indexed_db_uitest.cc
index 99750c51dad23b73ded123ba60593f0a8cb91042..5c0f78215a036b195c2c0acfe2e6075293bcf210 100644
--- a/content/browser/in_process_webkit/indexed_db_uitest.cc
+++ b/content/browser/in_process_webkit/indexed_db_uitest.cc
@@ -14,6 +14,14 @@
static const char* kLayoutTestFileNames[] = {
// TODO(dgrogan): Put the other IDB layout tests here.
"prefetch-bugfix-108071.html",
+ "basics.html",
+// "objectstore-basics.html", // Too big: crbug.com/33472
+// "index-basics.html", // Too big.
+};
+
+static const char* kWorkerTestFileNames[] = {
+ "basics-workers.html",
+// "objectstore-basics-workers.html", // Too big.
};
class IndexedDBUILayoutTest : public UILayoutTest {
@@ -28,9 +36,12 @@ class IndexedDBUILayoutTest : public UILayoutTest {
void AddJSTestResources() {
// Add other paths our tests require.
- FilePath js_dir = FilePath().
- AppendASCII("fast").AppendASCII("js");
- AddResourceForLayoutTest(js_dir, FilePath().AppendASCII("resources"));
+ AddResourceForLayoutTest(
+ FilePath().AppendASCII("fast").AppendASCII("js"),
+ FilePath().AppendASCII("resources"));
+ AddResourceForLayoutTest(
+ FilePath().AppendASCII("fast").AppendASCII("filesystem"),
+ FilePath().AppendASCII("resources"));
}
FilePath test_dir_;
@@ -43,3 +54,11 @@ TEST_F(IndexedDBUILayoutTest, LayoutTests) {
for (size_t i = 0; i < arraysize(kLayoutTestFileNames); ++i)
RunLayoutTest(kLayoutTestFileNames[i], port);
}
+
+TEST_F(IndexedDBUILayoutTest, WorkerLayoutTests) {
+ const int port = kNoHttpPort;
+ InitializeForLayoutTest(test_dir_, FilePath(), port);
+ AddJSTestResources();
+ for (size_t i = 0; i < arraysize(kWorkerTestFileNames); ++i)
+ RunLayoutTest(kWorkerTestFileNames[i], port);
+}
« 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