Commit ed8282b7 authored by Christian Dullweber's avatar Christian Dullweber Committed by Commit Bot

Test session storage deletion

Session Storage is currently not properly tested by
BrowsingDataRemoverBrowserTest because it is not supported by the
SiteDataCounter and the CookieTreeModel. This Cl adds an integration
test for its web-visible behavior.

Bug: 843995
Change-Id: I3eac6903995e4b4773bbcc08bc3f551001a4cdbb
Reviewed-on: https://chromium-review.googlesource.com/1113306
Commit-Queue: Christian Dullweber <dullweber@chromium.org>
Reviewed-by: default avatarMartin Šrámek <msramek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#572144}
parent 974f8904
...@@ -642,6 +642,21 @@ IN_PROC_BROWSER_TEST_P(BrowsingDataRemoverBrowserTestP, ...@@ -642,6 +642,21 @@ IN_PROC_BROWSER_TEST_P(BrowsingDataRemoverBrowserTestP,
TestSiteData("SessionStorage", GetParam()); TestSiteData("SessionStorage", GetParam());
} }
// SessionStorage is not supported by site data counting and the cookie tree
// model but we can test the web visible behavior.
IN_PROC_BROWSER_TEST_P(BrowsingDataRemoverBrowserTestP,
SessionStorageDeletion) {
GURL url = embedded_test_server()->GetURL("/browsing_data/site_data.html");
ui_test_utils::NavigateToURL(browser(), url);
const std::string type = "SessionStorage";
EXPECT_FALSE(HasDataForType(type));
SetDataForType(type);
EXPECT_TRUE(HasDataForType(type));
RemoveAndWait(ChromeBrowsingDataRemoverDelegate::DATA_TYPE_SITE_DATA,
GetParam());
EXPECT_FALSE(HasDataForType(type));
}
// Test that session storage is not counted until crbug.com/772337 is fixed. // Test that session storage is not counted until crbug.com/772337 is fixed.
IN_PROC_BROWSER_TEST_F(BrowsingDataRemoverBrowserTest, SessionStorageCounting) { IN_PROC_BROWSER_TEST_F(BrowsingDataRemoverBrowserTest, SessionStorageCounting) {
EXPECT_EQ(0, GetSiteDataCount()); EXPECT_EQ(0, GetSiteDataCount());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment