dom/tests/mochitest/storageevent/frameSessionStorageSlaveNotEqual.html

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:30113fa59367
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <title>slave for storage event propagation</title>
4
5 <script type="text/javascript" src="interOriginFrame.js"></script>
6 <script type="text/javascript">
7
8 var currentStep = 2;
9 var gotEvent = false;
10
11 window.addEventListener("storage", function(event)
12 {
13 gotEvent = true;
14 }, false);
15
16 function doStep()
17 {
18 switch (currentStep)
19 {
20 case 10:
21 is(gotEvent, false, "Expected no events");
22 break;
23 }
24
25 // Increase by two to distinguish each test step order
26 // in both master doStep and slave doStep functions.
27 ++currentStep;
28 ++currentStep;
29
30 return true;
31 }
32
33 </script>
34
35 </head>
36
37 <body onload="postMsg('frame loaded');">
38 </body>
39 </html>

mercurial