tor-browser

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

test_mixed_case_mime.html (755B)


      1 <body>
      2 <head>
      3  <title>Test mixed case mimetype for plugins</title>
      4  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      5  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
      6 <script>
      7  SimpleTest.expectAssertions(0, 1);
      8 
      9  SimpleTest.waitForExplicitFinish();
     10 
     11  function frameLoaded() {
     12    var contentDocument = document.getElementById("testframe").contentDocument;
     13    ok(contentDocument.body.innerHTML.length, "Frame content shouldn't be empty.");
     14    ok(contentDocument.images.length, "Frame content should have an image.");
     15    SimpleTest.finish();
     16  }
     17 </script>
     18 </head>
     19 <body>
     20  <p id="display"></p>
     21 
     22  <iframe id="testframe" name="testframe" onload="frameLoaded()" src="mixed_case_mime.sjs"></iframe>
     23 
     24 </body>
     25 </html>