dom/xbl/test/test_bug401907.xhtml

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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="/tests/SimpleTest/SimpleTest.js"></script>
     9   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    10   <bindings xmlns="http://www.mozilla.org/xbl">
    11     <binding id="binding">
    12       <implementation>
    13         <constructor>
    14           var win = XPCNativeWrapper.unwrap(window);
    15           win.ok(true, "First binding with ID 'binding' should be used!");
    16           win.testRun = true;
    17           if (win.needsFinish) {
    18             win.SimpleTest.finish();
    19           }
    20         </constructor>
    21       </implementation>
    22     </binding>
    23     <binding id="binding">
    24       <implementation>
    25         <constructor>
    26           var win = XPCNativeWrapper.unwrap(window);
    27           win.ok(false, "First binding with ID 'binding' should be used!");
    28           win.testRun = true;
    29           if (win.needsFinish) {
    30             win.SimpleTest.finish();
    31           }
    32         </constructor>
    33       </implementation>
    34     </binding>
    35   </bindings>
    36 </head>
    37 <body>
    38 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=401907">Mozilla Bug 401907</a>
    39 <p id="display"></p>
    40 <div id="content">
    41   <div style="-moz-binding: url(#binding)">Bound element</div>
    42 </div>
    43 <pre id="test">
    44 <script class="testbody" type="text/javascript">
    45 <![CDATA[
    47 /** Test for Bug 401907 **/
    48 if (!window.testRun) {
    49   window.needsFinish = true;
    50   SimpleTest.waitForExplicitFinish();
    51 }
    53 ]]>
    54 </script>
    55 </pre>
    56 </body>
    57 </html>

mercurial