dom/tests/mochitest/sessionstorage/frameNotEqual.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <html xmlns="http://www.w3.org/1999/xhtml">
     2 <head>
     3 <title>slave for sessionStorage test</title>
     5 <script type="text/javascript" src="interOriginSlave.js"></script>
     6 <script type="text/javascript">
     8 var currentStep = 2;
    10 function doStep()
    11 {
    12   switch (currentStep)
    13   {
    14     case 2:
    15       is(sessionStorage.length, 0, "Num of items is 0");
    17       sessionStorage.setItem("C", "3");
    18       is(sessionStorage.getItem("C"), "3", "C is 3 in the slave");
    19       is(sessionStorage.length, 1, "Num of items is 1");
    20       break;
    22     case 4:
    23       is(sessionStorage.getItem("C"), "3", "C is 3 in the slave");
    24       is(sessionStorage.length, 1, "Num of items is 1");
    25       break;
    27     case 6:
    28       return finishTest();
    29   }
    31   ++currentStep;
    32   ++currentStep;
    34   return true;
    35 }
    37 </script>
    39 </head>
    41 <body onload="postMsg('frame loaded');">
    42 </body>
    43 </html>

mercurial