|
1 <?xml version="1.0"?> |
|
2 <?xml-stylesheet type="text/css" href="chrome://global/skin"?> |
|
3 <?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?> |
|
4 <!-- |
|
5 https://bugzilla.mozilla.org/show_bug.cgi?id=950909 |
|
6 --> |
|
7 <window title="Mozilla Bug 950909" |
|
8 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
|
9 <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/> |
|
10 |
|
11 <!-- test results are displayed in the html:body --> |
|
12 <body xmlns="http://www.w3.org/1999/xhtml"> |
|
13 <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=950909" |
|
14 target="_blank">Mozilla Bug 950909</a> |
|
15 </body> |
|
16 |
|
17 <!-- test code goes here --> |
|
18 <script type="application/javascript"> |
|
19 <![CDATA[ |
|
20 |
|
21 /* |
|
22 * Test for bug 950909. This has to be a chrome tests because content needs |
|
23 * to apply a chrome binding (file_bug950909.xml), which will only be registered |
|
24 * as a chrome:// URI during mochitest-chrome runs. And the binding has to be |
|
25 * served from a chrome origin, because otherwise implements="nsIFoo" attributes |
|
26 * are ignored. So this test needs 3 files, all told. Ugh. |
|
27 */ |
|
28 |
|
29 // Just wait. When the iframe loads, it'll apply the binding, which will |
|
30 // trigger the constructor for the binding. |
|
31 SimpleTest.waitForExplicitFinish(); |
|
32 |
|
33 ]]> |
|
34 </script> |
|
35 <iframe src="http://example.com/tests/dom/xbl/test/file_bug950909.html"/> |
|
36 </window> |