| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/file_path.h" | 5 #include "base/file_path.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/test/test_timeouts.h" | 7 #include "base/test/test_timeouts.h" |
| 8 #include "chrome/test/automation/tab_proxy.h" | 8 #include "chrome/test/automation/tab_proxy.h" |
| 9 #include "chrome/test/base/ui_test_utils.h" | 9 #include "chrome/test/base/ui_test_utils.h" |
| 10 #include "chrome/test/ui/ui_layout_test.h" | 10 #include "chrome/test/ui/ui_layout_test.h" |
| 11 #include "content/public/common/content_switches.h" | 11 #include "content/public/common/content_switches.h" |
| 12 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
| 13 #include "webkit/dom_storage/dom_storage_types.h" |
| 14 |
| 15 #ifdef ENABLE_NEW_DOM_STORAGE_BACKEND |
| 16 // No longer applicable. |
| 17 #else |
| 13 | 18 |
| 14 static const char* kRootFiles[] = { | 19 static const char* kRootFiles[] = { |
| 15 "clear.html", | 20 "clear.html", |
| 16 // "complex-keys.html", // Output too big for a cookie. crbug.com/33472 | 21 // "complex-keys.html", // Output too big for a cookie. crbug.com/33472 |
| 17 // "complex-values.html", // crbug.com/33472 | 22 // "complex-values.html", // crbug.com/33472 |
| 18 "quota.html", | 23 "quota.html", |
| 19 "remove-item.html", | 24 "remove-item.html", |
| 20 "window-attributes-exist.html", | 25 "window-attributes-exist.html", |
| 21 NULL | 26 NULL |
| 22 }; | 27 }; |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 NavigateToURL(GURL("javascript:set()")); | 208 NavigateToURL(GURL("javascript:set()")); |
| 204 QuitBrowser(); | 209 QuitBrowser(); |
| 205 EXPECT_FALSE(StorageDirIsEmpty()); | 210 EXPECT_FALSE(StorageDirIsEmpty()); |
| 206 | 211 |
| 207 LaunchBrowserAndServer(); | 212 LaunchBrowserAndServer(); |
| 208 NavigateToURL(TestUrl()); | 213 NavigateToURL(TestUrl()); |
| 209 NavigateToURL(GURL("javascript:clear()")); | 214 NavigateToURL(GURL("javascript:clear()")); |
| 210 QuitBrowser(); | 215 QuitBrowser(); |
| 211 EXPECT_TRUE(StorageDirIsEmpty()); | 216 EXPECT_TRUE(StorageDirIsEmpty()); |
| 212 } | 217 } |
| 218 |
| 219 #endif // ENABLE_NEW_DOM_STORAGE_BACKEND |
| OLD | NEW |