mirror of
https://github.com/servo/servo.git
synced 2025-08-26 15:48:22 +01:00
Update web-platform-tests to revision ee40b886c701ffa25a673240cabdedd59ee3ace4
This commit is contained in:
parent
a00f2d6310
commit
3a79c9b53f
44 changed files with 631 additions and 75 deletions
20
tests/wpt/web-platform-tests/webstorage/document-domain.html
Normal file
20
tests/wpt/web-platform-tests/webstorage/document-domain.html
Normal file
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue