content/xbl/test/file_bug379959_cross.html
author Joel Maher <jmaher@mozilla.com>
Fri, 12 Mar 2010 13:53:36 -0800
changeset 39363 29810a1281ee680225c5b810ff1a4071ec03f5ae
parent 39183 72f8d4f19dc7610afbba1f7338ed165fb371f6e7
child 145620 d15d14b1e637f751d3fdeeb092129ad0e8ac3532
permissions -rw-r--r--
Bug 544097 Chaning mochitests to run against mochi.test instead of localhost r=ted, waldo, dwitte p=jmaher. Landed on CLOSED TREE

<!DOCTYPE HTML>
<html>
<head>
<style>
#div1 {
  color: green;
  -moz-binding: url(file_bug379959_xbl.xml#xbltest);
}
#div2 {
  color: green;
  -moz-binding: url(http://example.com/tests/content/xbl/test/file_bug379959_xbl.xml#xbltest);
}
</style>
<body>
<div id="div1"></div>
<div id="div2"></div>
<script>
onload = function() {
  nodes = document.getAnonymousNodes(document.getElementById('div1'));
  parent.postMessage(nodes ? nodes.length : 0, "http://mochi.test:8888");
  nodes = document.getAnonymousNodes(document.getElementById('div2'));
  parent.postMessage(nodes ? nodes.length : 0, "http://mochi.test:8888");
}
</script>
</html>