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

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: Created 8 years, 11 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..91112981cf69377e27ca824b90471c7cdbf96ba4 100644
--- a/content/browser/in_process_webkit/indexed_db_uitest.cc
+++ b/content/browser/in_process_webkit/indexed_db_uitest.cc
@@ -14,6 +14,12 @@
static const char* kLayoutTestFileNames[] = {
// TODO(dgrogan): Put the other IDB layout tests here.
"prefetch-bugfix-108071.html",
+ "basics.html",
+// "index-basics.html", // Too big.
jsbell 2012/01/20 22:59:09 Add a link to the "stop using cookies to return te
dgrogan 2012/01/20 23:43:12 Done.
+};
+
+static const char* kWorkerTestFileNames[] = {
+ "basics-workers.html",
};
class IndexedDBUILayoutTest : public UILayoutTest {
@@ -28,9 +34,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(
jsbell 2012/01/20 22:59:09 +1 - The new version is much more readable
+ FilePath().AppendASCII("fast").AppendASCII("js"),
+ FilePath().AppendASCII("resources"));
+ AddResourceForLayoutTest(
+ FilePath().AppendASCII("fast").AppendASCII("filesystem"),
+ FilePath().AppendASCII("resources"));
}
FilePath test_dir_;
@@ -43,3 +52,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