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_9587 merge_pr_9585 merge_pr_9582 merge_pr_9579 merge_pr_9577 merge_pr_9576 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_9561 merge_pr_9560 merge_pr_9558 merge_pr_9556 merge_pr_9555 merge_pr_9554 merge_pr_9549 merge_pr_9541 merge_pr_9540 merge_pr_9539 merge_pr_9538 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 merge_pr_9527 merge_pr_9525 merge_pr_9524 merge_pr_9518 merge_pr_9516 merge_pr_9515 merge_pr_9514 merge_pr_9513 merge_pr_9512 merge_pr_9511 merge_pr_9509 merge_pr_9508 merge_pr_9507 merge_pr_9505 merge_pr_9503 merge_pr_9502 merge_pr_9501 merge_pr_9500 merge_pr_9499 merge_pr_9498 merge_pr_9494 merge_pr_9492 merge_pr_9491 merge_pr_9489 merge_pr_9487 merge_pr_9486 merge_pr_9485 merge_pr_9484 merge_pr_9483 merge_pr_9482 merge_pr_9480 merge_pr_9479 merge_pr_9478 merge_pr_9477 merge_pr_9476 merge_pr_9475 merge_pr_9474 merge_pr_9471 merge_pr_9470 merge_pr_9469 merge_pr_9468 merge_pr_9466 merge_pr_9462 merge_pr_9461 merge_pr_9460 merge_pr_9458 merge_pr_9457
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (37 sloc) 1.39 KB
<!DOCTYPE HTML>
<html>
<head>
<title>WebStorage Test: sessionStorage event - url</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<h1>event_session_url</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();
});
function onStorageEvent(event) {
var url = window.location.href;
var pos = url.lastIndexOf("/");
if (pos != -1) {
url = url.substr(0, pos + 1);
url = url + "resources/session_set_item_iframe.html";
}
assert_equals(event.url, url);
t.done();
}
window.addEventListener('storage', t.step_func(onStorageEvent), false);
var el = document.createElement("iframe");
el.setAttribute('id', 'ifrm');
el.setAttribute('src', 'resources/session_set_item_iframe.html');
document.body.appendChild(el);
}, "url property test of session event - Session event is fired due to an invocation of the setItem() method.");
</script>
</body>
</html>