author Justin Lebar <>
Fri, 27 Aug 2010 14:19:45 -0700
changeset 51604 f87dcd8ad8e8b766c589f5a4d3385ae4d3eec388
parent 34614 77512fa7701e7bf4a534fa226704608c27076c77
child 75086 95496a360748609134a5c666d57c7f48aa23393e
permissions -rw-r--r--
Bug 589306 - mozconfig* files shouldn't be hgignored. r=ted, a=npotb

<html xmlns="" style="display: none">
  <title>Test for Bug 526178</title>
  <script type="application/javascript" src="/MochiKit/packed.js"></script>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  <style id="sheet">
    #content * {
      display: block;
      -moz-binding: url("#binding");
  <bindings xmlns="">
    <binding id="binding">
          window.logString += this.localName;
<a target="_blank" href="">Mozilla Bug 526178</a>
<div id="content">
    <e style="display: inline">
      <f style="display: inline">
        <g style="display: inline"/>
        <h style="display: none"/>
        <i style="display: inline"/>
      <j style="display: none"/>
      <k style="display: inline">
        <l style="display: inline"/>
        <n style="display: inline"/>
    <o style="display: none"/>
<p id="display">
<pre id="test">
<script type="application/javascript">

/** Test for Bug 526178 **/
var logString = "";
// Add one for the root
var pendingBindings = $("content").getElementsByTagName("*").length + 1;
function bindingDone() {
  if (--pendingBindings == 0) {
    is(logString, "apoeknmljfihgdbchtml");


// Have to add the rule for the root dynamically so the binding doesn't try
//  to load before bindingDone() is defined.
$("sheet").sheet.insertRule(':root { -moz-binding: url("#binding"); }', 0); = "";