tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_memory_census.html (850B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 Bug 1067491 - Test taking a census over the RDP.
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Memory monitoring actor test</title>
      9  <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
     10  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css">
     11 </head>
     12 <body>
     13 <pre id="test">
     14 <script src="memory-helpers.js" type="application/javascript"></script>
     15 <script>
     16 "use strict";
     17 
     18 window.onload = function() {
     19  SimpleTest.waitForExplicitFinish();
     20 
     21  (async function() {
     22    const { memory, target } = await startServerAndGetSelectedTabMemory();
     23    await memory.attach();
     24 
     25    const census = await memory.takeCensus();
     26    is(typeof census, "object");
     27 
     28    await memory.detach();
     29    destroyServerAndFinish(target);
     30  })();
     31 };
     32 </script>
     33 </pre>
     34 </body>
     35 </html>