author Gene Lian <>
Fri, 28 Sep 2012 14:02:28 +0800
changeset 108418 cba5ba69091f52840af3d8f738ac43bbcc256e6d
parent 74314 95496a360748609134a5c666d57c7f48aa23393e
child 121306 cc884677ee404a23298109794843bf2c71ec8cd3
permissions -rw-r--r--
Bug 789973 - B2G system time: adjust system clock after receiving NITZ timestamp (part 1). r=jlebar

<html xmlns="" style="display: none">
  <title>Test for Bug 526178</title>
  <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); = "";