dom/imported-tests/webapps/WebStorage/tests/submissions/Infraware/iframe/local_set_item_iframe.html
author Ms2ger <ms2ger@gmail.com>
Sat, 05 May 2012 11:00:04 +0200
changeset 93233 2352cf17e5d40195a3b6a8d176dded7de121bdd1
permissions -rw-r--r--
Bug 740357 - Import W3C WebStorage tests; r=mayhemer

<!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>