Permalink
Switch branches/tags
merge_pr_11077 merge_pr_11074 merge_pr_11068 merge_pr_11067 merge_pr_11065 merge_pr_11061 merge_pr_11060 merge_pr_11059 merge_pr_11056 merge_pr_11055 merge_pr_11053 merge_pr_11052 merge_pr_11047 merge_pr_11045 merge_pr_11042 merge_pr_11041 merge_pr_11040 merge_pr_11036 merge_pr_11032 merge_pr_11031 merge_pr_11028 merge_pr_11027 merge_pr_11026 merge_pr_11021 merge_pr_11018 merge_pr_11017 merge_pr_11014 merge_pr_11013 merge_pr_11008 merge_pr_11004 merge_pr_11003 merge_pr_11002 merge_pr_11001 merge_pr_11000 merge_pr_10999 merge_pr_10998 merge_pr_10997 merge_pr_10996 merge_pr_10994 merge_pr_10991 merge_pr_10985 merge_pr_10984 merge_pr_10983 merge_pr_10980 merge_pr_10979 merge_pr_10978 merge_pr_10976 merge_pr_10974 merge_pr_10973 merge_pr_10971 merge_pr_10969 merge_pr_10968 merge_pr_10965 merge_pr_10964 merge_pr_10961 merge_pr_10960 merge_pr_10957 merge_pr_10956 merge_pr_10955 merge_pr_10954 merge_pr_10952 merge_pr_10951 merge_pr_10950 merge_pr_10949 merge_pr_10947 merge_pr_10946 merge_pr_10945 merge_pr_10944 merge_pr_10943 merge_pr_10941 merge_pr_10940 merge_pr_10939 merge_pr_10938 merge_pr_10937 merge_pr_10935 merge_pr_10934 merge_pr_10932 merge_pr_10930 merge_pr_10929 merge_pr_10925 merge_pr_10916 merge_pr_10910 merge_pr_10905 merge_pr_10903 merge_pr_10902 merge_pr_10901 merge_pr_10900 merge_pr_10897 merge_pr_10896 merge_pr_10895 merge_pr_10894 merge_pr_10893 merge_pr_10892 merge_pr_10891 merge_pr_10889 merge_pr_10887 merge_pr_10886 merge_pr_10885 merge_pr_10884 merge_pr_10883
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (34 sloc) 1.27 KB
<!DOCTYPE HTML>
<html>
<head>
<title>WebStorage Test: sessionStorage event - oldValue</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<h1>event_session_oldValue</h1>
<div id="log"></div>
<script>
async_test(function(t) {
sessionStorage.clear();
t.add_cleanup(function() { sessionStorage.clear() });
self.fail = t.step_func(function(msg) {
assert_unreached(msg);
t.done();
});
var expected = [null, 'user1', null]
function onStorageEvent(event) {
assert_equals(event.oldValue, expected.shift());
if (!expected.length) {
t.done();
}
}
window.addEventListener('storage', t.step_func(onStorageEvent), false);
var el = document.createElement("iframe");
el.setAttribute('id', 'ifrm');
el.setAttribute('src', 'resources/session_change_item_iframe.html');
document.body.appendChild(el);
}, "oldvalue property test of session event - Session event is fired due to an invocation of the setItem(), clear() methods.");
</script>
</body>
</html>