Permalink
Switch branches/tags
untagged-ece26298d175e2845dac untagged-cbfa363133c92ac30128 untagged-ca88a2b610efe1001dd2 untagged-c81ee9ff70c06f8fbedd untagged-ab5a084c0fbcd3c782db untagged-a20d305fa9da7147efbe untagged-a6fd6add2b3af573e391 untagged-5492550cf21b3a3be674 untagged-8574e4d0e96e1dd61bf2 untagged-901ce30517662c9208de untagged-783b4ab6cf6dda05ce2a untagged-781d2f7768c5c0cf7fed untagged-57ca1318de4bffe8769a untagged-32a73aecf4ed98c1f0d8 untagged-15fd42d92e5fe088f8fe untagged-3aab7b718735449d3243 untagged-2f263b2dfc506e7c7aec test_tag_1 test_tag merge_pr_9645 merge_pr_9640 merge_pr_9639 merge_pr_9638 merge_pr_9637 merge_pr_9634 merge_pr_9631 merge_pr_9629 merge_pr_9627 merge_pr_9626 merge_pr_9625 merge_pr_9623 merge_pr_9622 merge_pr_9621 merge_pr_9620 merge_pr_9618 merge_pr_9616 merge_pr_9614 merge_pr_9612 merge_pr_9608 merge_pr_9607 merge_pr_9606 merge_pr_9604 merge_pr_9603 merge_pr_9601 merge_pr_9600 merge_pr_9598 merge_pr_9597 merge_pr_9596 merge_pr_9595 merge_pr_9594 merge_pr_9593 merge_pr_9592 merge_pr_9590 merge_pr_9589 merge_pr_9587 merge_pr_9585 merge_pr_9584 merge_pr_9583 merge_pr_9582 merge_pr_9581 merge_pr_9580 merge_pr_9579 merge_pr_9577 merge_pr_9576 merge_pr_9575 merge_pr_9573 merge_pr_9572 merge_pr_9571 merge_pr_9569 merge_pr_9568 merge_pr_9567 merge_pr_9566 merge_pr_9564 merge_pr_9563 merge_pr_9562 merge_pr_9561 merge_pr_9560 merge_pr_9559 merge_pr_9558 merge_pr_9557 merge_pr_9556 merge_pr_9555 merge_pr_9554 merge_pr_9549 merge_pr_9548 merge_pr_9547 merge_pr_9541 merge_pr_9540 merge_pr_9539 merge_pr_9538 merge_pr_9537 merge_pr_9536 merge_pr_9535 merge_pr_9534 merge_pr_9533 merge_pr_9532 merge_pr_9531 merge_pr_9530 merge_pr_9529 merge_pr_9528
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (33 sloc) 1.24 KB
<!DOCTYPE HTML>
<html>
<head>
<title>WebStorage Test: sessionStorage event - StorageEventInit</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<h1>event_session_StorageEventInit</h1>
<div id="log"></div>
<script>
async_test(function(t) {
function onStorageEvent(event) {
assert_equals(event.key, 'key');
assert_equals(event.oldValue, 'oldValue');
assert_equals(event.newValue, 'newValue');
assert_equals(event.url, window.location.href);
assert_equals(event.storageArea, window.sessionStorage);
t.done();
}
window.addEventListener('storage', t.step_func(onStorageEvent), false);
var event = new StorageEvent('storage', {
key: 'key',
oldValue: 'oldValue',
newValue: 'newValue',
url: window.location.href,
storageArea: window.sessionStorage
});
window.dispatchEvent(event);
}, "storageeventinit test - Storage event is fired due to set values for StorageEventInit.");
</script>
</body>
</html>