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

Unified Diff: LayoutTests/storage/domstorage/localstorage/delete-removal.html

Issue 106853005: Implement platform deleters per spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switch to DeleteResult enum + extend scheme to indexed deleters Created 7 years 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: LayoutTests/storage/domstorage/localstorage/delete-removal.html
diff --git a/LayoutTests/storage/domstorage/localstorage/delete-removal.html b/LayoutTests/storage/domstorage/localstorage/delete-removal.html
index 0eb43fbd53dd98ee4aa7aa1bbefa49737d29dd16..d268f1d8cd82c3a8bb0391a2e6d9a323edc3f970 100644
--- a/LayoutTests/storage/domstorage/localstorage/delete-removal.html
+++ b/LayoutTests/storage/domstorage/localstorage/delete-removal.html
@@ -18,7 +18,7 @@ function runTest()
return;
}
localStorage.clear();
-
+
log("foo (before anything) is: " + localStorage.foo);
localStorage.foo = "bar";
log("foo (after a named property settter set) is: " + localStorage.foo);
@@ -40,6 +40,16 @@ function runTest()
log("foo (after an implicit settter set) is: " + localStorage.foo);
delete localStorage["foo"];
log("foo (after an indexed delete) is: " + localStorage.foo);
+
+ Object.defineProperty(localStorage, "bar", {value: "present", configurable: true});
+ log("bar (before an indexed delete) is present: " + ("bar" in localStorage));
+ delete localStorage["bar"];
+ log("bar (after an indexed delete) is present: " + ("bar" in localStorage));
+
+ Object.defineProperty(localStorage, "1", {value: "present", configurable: true});
+ log("Indexed property '1' (before delete) is present: " + (1 in localStorage));
+ delete localStorage[1];
+ log("Indexed property '1' (after delete) is present: " + (1 in localStorage));
}
</script>

Powered by Google App Engine
This is Rietveld 408576698