dom/tests/mochitest/storageevent/frameLocalStorageSlaveNotEqual.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial