Chromium Code Reviews| Index: LayoutTests/imported/web-platform-tests/webstorage/iframe/local_set_item_iframe.html |
| diff --git a/LayoutTests/imported/web-platform-tests/webstorage/iframe/local_set_item_iframe.html b/LayoutTests/imported/web-platform-tests/webstorage/iframe/local_set_item_iframe.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0693824e5db00e7c5dd06778ce037b4f2d38f4e9 |
| --- /dev/null |
| +++ b/LayoutTests/imported/web-platform-tests/webstorage/iframe/local_set_item_iframe.html |
| @@ -0,0 +1,16 @@ |
| +<!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."); |
| + } |
| + } else { |
| + parent.fail("localStorage is not supported."); |
| + } |
| + </script> |
| + </body> |
| +</html> |