|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=589543 |
|
5 --> |
|
6 <head> |
|
7 <title>Test feed preview subscribe UI</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=589543">Mozilla Bug 589543</a> |
|
13 <p id="display"><iframe id="testFrame" src="bug589543-data.xml"></iframe></p> |
|
14 <div id="content" style="display: none"> |
|
15 </div> |
|
16 <pre id="test"> |
|
17 <script class="testbody" type="text/javascript"> |
|
18 |
|
19 /** Test for Bug 589543 **/ |
|
20 SimpleTest.waitForExplicitFinish(); |
|
21 |
|
22 addLoadEvent(function() { |
|
23 var doc = SpecialPowers.wrap($("testFrame")).contentDocument; |
|
24 var daddy = doc.getElementById("feedSubscribeLine"); |
|
25 var popup = doc.getAnonymousElementByAttribute(daddy, "anonid", "handlersMenuPopup"); |
|
26 isnot(popup, null, "Feed preview should have a handlers popup"); |
|
27 }); |
|
28 addLoadEvent(SimpleTest.finish); |
|
29 |
|
30 </script> |
|
31 </pre> |
|
32 </body> |
|
33 </html> |