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

Unified Diff: LayoutTests/imported/web-platform-tests/webstorage/resources/local_set_item_clear_iframe.html

Issue 1220543007: Import web-platform-tests/webstorage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 5 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: LayoutTests/imported/web-platform-tests/webstorage/resources/local_set_item_clear_iframe.html
diff --git a/LayoutTests/imported/web-platform-tests/webstorage/resources/local_set_item_clear_iframe.html b/LayoutTests/imported/web-platform-tests/webstorage/resources/local_set_item_clear_iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..742b7dad1a323d931b9623a11c97f4e4ed423ea1
--- /dev/null
+++ b/LayoutTests/imported/web-platform-tests/webstorage/resources/local_set_item_clear_iframe.html
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML>
+<html>
+ <body>
+ <script>
+ if (('localStorage' in window) && window.localStorage !== null){
+ try {
+ localStorage.setItem("name", "user1");
+ } catch (e) {
+ parent.fail("setItem method is failed.");
+ }
+ localStorage.clear();
+ } else {
+ parent.fail("localStorage is not supported.");
+ }
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698