summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-25 00:51:38 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-25 00:51:38 +0000
commit10dd7531c0eace81434783ddb9b7c224dbe0e9f9 (patch)
tree2eee185378800586e8f2e71275ea4c3708ca2e5c /chrome/browser
parent0407b5c4a9af9baf7f82caaf86b04299c2d5a9fe (diff)
downloadchromium_src-10dd7531c0eace81434783ddb9b7c224dbe0e9f9.zip
chromium_src-10dd7531c0eace81434783ddb9b7c224dbe0e9f9.tar.gz
chromium_src-10dd7531c0eace81434783ddb9b7c224dbe0e9f9.tar.bz2
Run appcache layout tests in chrome using the ui test harness.
BUG=39365 TEST=yes Review URL: http://codereview.chromium.org/2822007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50798 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/appcache/appcache_ui_test.cc75
1 files changed, 75 insertions, 0 deletions
diff --git a/chrome/browser/appcache/appcache_ui_test.cc b/chrome/browser/appcache/appcache_ui_test.cc
new file mode 100644
index 0000000..23afd8b
--- /dev/null
+++ b/chrome/browser/appcache/appcache_ui_test.cc
@@ -0,0 +1,75 @@
+// Copyright (c) 2010 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 "chrome/test/ui/ui_layout_test.h"
+
+class AppCacheUITest : public UILayoutTest {
+ protected:
+ virtual ~AppCacheUITest() {}
+};
+
+TEST_F(AppCacheUITest, FLAKY_AppCacheLayoutTests) {
+ static const char* kLayoutTestFiles[] = {
+ "404-manifest.html",
+ "404-resource.html",
+ "auth.html",
+ "cyrillic-uri.html",
+ "deferred-events-delete-while-raising.html",
+ "deferred-events.html",
+ "destroyed-frame.html",
+ "detached-iframe.html",
+ "different-origin-manifest.html",
+ "different-scheme.html",
+ "empty-manifest.html",
+ "fallback.html",
+ "foreign-iframe-main.html",
+ "main-resource-hash.html",
+ "manifest-containing-itself.html",
+ "manifest-parsing.html",
+ "manifest-redirect-2.html",
+ "manifest-redirect.html",
+ "manifest-with-empty-file.html",
+ "navigating-away-while-cache-attempt-in-progress.html",
+ "offline-access.html",
+ "online-whitelist.html",
+ "reload.html",
+ "remove-cache.html",
+ "resource-redirect-2.html",
+ "resource-redirect.html",
+ "simple.html",
+ "top-frame-1.html",
+ "top-frame-2.html",
+ "top-frame-3.html",
+ "top-frame-4.html",
+ "whitelist-wildcard.html",
+ "wrong-content-type.html",
+ "wrong-signature-2.html",
+ "wrong-signature.html",
+ "xhr-foreign-resource.html",
+
+ // TOOD(michaeln): investigate these more closely
+ // "crash-when-navigating-away-then-back.html",
+ // "credential-url.html",
+ // "different-https-origin-resource-main.html",
+ // "fail-on-update.html",
+ // "idempotent-update.html", not sure this is a valid test
+ // "local-content.html",
+ // "max-size.html", we use a different quota scheme
+ // "update-cache.html", bug 38006
+ };
+
+ FilePath http_test_dir;
+ http_test_dir = http_test_dir.AppendASCII("http");
+ http_test_dir = http_test_dir.AppendASCII("tests");
+
+ FilePath appcache_test_dir;
+ appcache_test_dir = appcache_test_dir.AppendASCII("appcache");
+ InitializeForLayoutTest(http_test_dir, appcache_test_dir, kHttpPort);
+
+ StartHttpServer(new_http_root_dir_);
+ for (size_t i = 0; i < arraysize(kLayoutTestFiles); ++i)
+ RunLayoutTest(kLayoutTestFiles[i], kHttpPort);
+ StopHttpServer();
+}