Bug 470165 - Cleanup the GTK nsFilePicker code; r+sr=roc
[wine-gecko.git] / content / xbl / test / test_bug401907.xhtml
blob8a43da27c232f0ae0f076c8787c425b9d10070ec
1 <?xml version="1.0"?>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=401907
5 -->
6 <head>
7 <title>Test for Bug 401907</title>
8 <script type="text/javascript" src="/MochiKit/packed.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 <bindings xmlns="http://www.mozilla.org/xbl">
12 <binding id="binding">
13 <implementation>
14 <constructor>
15 ok(true, "First binding with ID 'binding' should be used!");
16 window.testRun = true;
17 if (window.needsFinish) {
18 SimpleTest.finish();
20 </constructor>
21 </implementation>
22 </binding>
23 <binding id="binding">
24 <implementation>
25 <constructor>
26 ok(false, "First binding with ID 'binding' should be used!");
27 window.testRun = true;
28 if (window.needsFinish) {
29 SimpleTest.finish();
31 </constructor>
32 </implementation>
33 </binding>
34 </bindings>
35 </head>
36 <body>
37 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=401907">Mozilla Bug 401907</a>
38 <p id="display"></p>
39 <div id="content">
40 <div style="-moz-binding: url(#binding)">Bound element</div>
41 </div>
42 <pre id="test">
43 <script class="testbody" type="text/javascript">
44 <![CDATA[
46 /** Test for Bug 401907 **/
47 if (!window.testRun) {
48 window.needsFinish = true;
49 SimpleTest.waitForExplicitFinish();
52 ]]>
53 </script>
54 </pre>
55 </body>
56 </html>