Skip to content

Commit

Permalink
localStorage and document.domain test
Browse files Browse the repository at this point in the history
According to https://bugzilla.mozilla.org/show_bug.cgi?id=952467 this
did not always used to work in Gecko and it currently fails in Chrome
so this seems like a good thing to be testing.
  • Loading branch information
annevk committed Nov 16, 2015
1 parent 623c153 commit ac4fb38
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 ac4fb38

Please sign in to comment.