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

Unified Diff: chrome/test/data/extensions/api_test/clear/api/background.html

Issue 7551008: Strawman proposal for chrome.experimental.clear.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: License presubmit check. :( Created 9 years, 4 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
Index: chrome/test/data/extensions/api_test/clear/api/background.html
diff --git a/chrome/test/data/extensions/api_test/clear/api/background.html b/chrome/test/data/extensions/api_test/clear/api/background.html
new file mode 100644
index 0000000000000000000000000000000000000000..ce65bdc478b4dc445953ae8de5def2b4264901cd
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/clear/api/background.html
@@ -0,0 +1,40 @@
+<script>
+ var allTypes = {
+ cache: true,
+ cookies: true,
+ downloads: true,
+ formData: true,
+ history: true,
+ passwords: true
+ };
+ chrome.test.runTests([
+ function testClearEverything() {
+ chrome.experimental.clear.browsingData("everything", allTypes,
+ chrome.test.callbackPass());
+ },
+ function testClearCache() {
+ chrome.experimental.clear.cache(
+ "everything", chrome.test.callbackPass());
+ },
+ function testClearCookies() {
+ chrome.experimental.clear.cookies(
+ "everything", chrome.test.callbackPass());
+ },
+ function testClearHistory() {
+ chrome.experimental.clear.history(
+ "everything", chrome.test.callbackPass());
+ },
+ function testClearPasswords() {
+ chrome.experimental.clear.passwords(
+ "everything", chrome.test.callbackPass());
+ },
+ function testClearDownloads() {
+ chrome.experimental.clear.downloads(
+ "everything", chrome.test.callbackPass());
+ },
+ function testClearFormData() {
+ chrome.experimental.clear.formData(
+ "everything", chrome.test.callbackPass());
+ }
+ ]);
+</script>
« no previous file with comments | « chrome/renderer/resources/renderer_extension_bindings.js ('k') | chrome/test/data/extensions/api_test/clear/api/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698