Skip to content

Commit

Permalink
Merge pull request #2334 from w3c/storage-document-domain
Browse files Browse the repository at this point in the history
localStorage and document.domain test; r=zcorpan
  • Loading branch information
Ms2ger committed Nov 17, 2015
2 parents 5a754b4 + ac4fb38 commit ca18435
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions webstorage/document-domain.html
@@ -0,0 +1,20 @@
<!doctype html>
<title>localStorage and document.domain</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<iframe></iframe>
<script>
async_test(function(t) {
frames[0].addEventListener("storage", function(e) {
t.step(function() {
localStorage.clear()
t.done()
})
})
frames[0].document.domain = document.domain
localStorage.setItem("test", "test")
})
</script>

0 comments on commit ca18435

Please sign in to comment.