content/xbl/test/test_bug296375.xul
author Igor Bukanov <igor@mir2.org>
Fri, 20 Jun 2008 11:46:36 +0200
changeset 15452 056158a4c1e84b8621d066d1d4f1fc92db37ae06
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 71371 a6f07adca5d5f740fb40d7c08f65980416d67cd1
permissions -rwxr-xr-x
Backed out changeset 97977f224aff due to build breakage

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<?xml-stylesheet href="/tests/SimpleTest/test.css" type="text/css"?>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=296375
-->
<window title="Mozilla Bug 296375"
  xmlns:html="http://www.w3.org/1999/xhtml"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <title>Test for Bug 296375</title>
  <script type="application/javascript" src="/MochiKit/packed.js"></script>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>      

<body  xmlns="http://www.w3.org/1999/xhtml">
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=296375">Mozilla Bug 296375</a>
<p id="display"></p>
<div id="content" style="display: none">
  
</div>
<pre id="test">
</pre>
</body>

<button id="b" label="crash"/>

<script class="testbody" type="application/javascript">
<![CDATA[

/** Test for Bug 296375 **/

SimpleTest.waitForExplicitFinish();
addLoadEvent(function () {
  document.addBinding(document.getElementById("b"),
                      "chrome://global/content/bindings/checkbox.xml#checkbox");
  ok(true, "addBinding didn't cause a crash");
});
addLoadEvent(SimpleTest.finish);
]]>
</script>

</window>