browser/components/feeds/test/chrome/test_maxSniffing.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 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=739040
     5 -->
     6 <head>
     7   <title>Test that we only sniff 512 bytes</title>
     8   <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
     9   <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
    10 </head>
    11 <body>
    12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=739040">Mozilla Bug 739040</a>
    13 <p id="display">
    14   <iframe id="validTestFrame" src="http://mochi.test:8888/tests/browser/components/feeds/test/valid-feed.xml"></iframe>
    15   <iframe id="unsniffableTestFrame" src="http://mochi.test:8888/tests/browser/components/feeds/test/valid-unsniffable-feed.xml"></iframe>
    16 </p>
    17 <div id="content" style="display: none">
    19 </div>
    20 <pre id="test">
    21 <script class="testbody" type="text/javascript">
    23 /** Test for Bug 739040 **/
    24 SimpleTest.waitForExplicitFinish();
    26 addLoadEvent(function() {
    27   is($("validTestFrame").contentDocument.documentElement.id, "feedHandler",
    28      "valid feed should be sniffed");
    29   isnot($("unsniffableTestFrame").contentDocument.documentElement.id, "feedHandler",
    30         "unsniffable feed should not be sniffed");
    31 });
    32 addLoadEvent(SimpleTest.finish);
    34 </script>
    35 </pre>
    36 </body>
    37 </html>

mercurial