|
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"> |
|
15 |
|
16 </div> |
|
17 <pre id="test"> |
|
18 <script class="testbody" type="text/javascript"> |
|
19 |
|
20 /** Test for Bug 494328 **/ |
|
21 SimpleTest.waitForExplicitFinish(); |
|
22 |
|
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); |
|
31 |
|
32 </script> |
|
33 </pre> |
|
34 </body> |
|
35 </html> |
|
36 |