browser/components/feeds/test/test_bug494328.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=494328
     5 -->
     6 <head>
     7   <title>Test for bug 494328</title>
     8   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     9   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    10 </head>
    11 <body>
    12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=494328">Mozilla Bug 494328</a>
    13 <p id="display"><iframe id="testFrame" src="bug494328-data.xml"></iframe></p>
    14 <div id="content" style="display: none">
    16 </div>
    17 <pre id="test">
    18 <script class="testbody" type="text/javascript">
    20 /** Test for Bug 494328 **/
    21 SimpleTest.waitForExplicitFinish();
    23 addLoadEvent(function() {
    24   var links = SpecialPowers.wrap($("testFrame")).contentDocument.getElementById("feedContent").querySelectorAll("div.enclosure > a");
    25   is(links[0].textContent, "Episode 1", "filename decoded incorrectly");
    26   is(links[1].textContent, "Episode #2", "filename decoded incorrectly");
    27   is(links[2].textContent, "http://www.example.com/podcasts/Episode #3/", "filename decoded incorrectly");
    28   is(links[3].textContent, "Is This Episode #4?", "filename decoded incorrectly");
    29 });
    30 addLoadEvent(SimpleTest.finish);
    32 </script>
    33 </pre>
    34 </body>
    35 </html>

mercurial