Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (40 sloc) 1.205 kb
cf81450 @Ms2ger Remove carriage returns from WebStorage tests.
Ms2ger authored
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Web Storage</title>
5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script>
7 <script>
8 function fail(msg) {
9 t.step(function() {
83fa30b @zqzhang s/assert_notreached/assert_unreached/g
zqzhang authored
10 assert_unreached(msg);
cf81450 @Ms2ger Remove carriage returns from WebStorage tests.
Ms2ger authored
11 });
12 t.done();
13 }
14 </script>
15 </head>
16 <body>
17 <h1>event_local_oldValue</h1>
18 <div id="log"></div>
19 <script>
20 test(function() {
21 localStorage.clear();
22 var t = async_test("oldValue property test of local event");
23 var expected = [null, 'user1', null]
24 function onStorageEvent(event) {
25 t.step(function() {
26 assert_equals(event.oldValue, expected.shift());
27 });
28 if (!expected.length) {
29 t.done();
30 }
31 }
32
33 window.addEventListener('storage', onStorageEvent, false);
34
35 var el = document.createElement("iframe");
36 el.setAttribute('id', 'ifrm');
37 el.setAttribute('src', 'iframe/local_change_item_iframe.html');
38 document.body.appendChild(el);
39 });
40 </script>
41 </body>
42 </html>
Something went wrong with that request. Please try again.