Fix the test to handle one-pixel clipping near the left edge that can happen if invalidates happen in a different order. No bug.

This commit is contained in:
Boris Zbarsky 2011-11-18 17:07:56 +13:00
parent a2790024e4
commit 7062899f5e
3 changed files with 28 additions and 26 deletions

View File

@ -6,10 +6,12 @@
</head>
<body>
<div>
<span>test</span>
<!-- Need the non-breaking spaces to avoid some reftest badness due to
the 't' extending outside its nominal metrics -->
<span>&#xA0;test</span>
</div>
<div>
<span>test</span>
<span>&#xA0;test</span>
</div>
</body>
</html>

View File

@ -15,7 +15,7 @@
<script src="data:text/javascript,document.body.offsetWidth;"/>
<!-- The whitespace here is important... or this comment will do
the trick too -->
<span>test</span>
<span>&#xA0;test</span>
</div>
<script>
function runTest() {
@ -28,7 +28,7 @@
function makeSpan() {
var s = document.createElementNS("http://www.w3.org/1999/xhtml",
"span");
s.appendChild(document.createTextNode("test"));
s.appendChild(document.createTextNode("&#xA0;test"));
return s;
}
</script>

View File

@ -1,22 +1,22 @@
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="test">
<content>
<html:div xmlns:html="http://www.w3.org/1999/xhtml"
style="color: red; -moz-binding: url(403962-1xbl.xml#test-base)">
<children/>
</html:div>
</content>
</binding>
<binding id="test-base">
<content>
<html:div xmlns:html="http://www.w3.org/1999/xhtml" style="color: green">
<children includes="span"/>
</html:div>
<html:div xmlns:html="http://www.w3.org/1999/xhtml" style="color: red">
<children/>
</html:div>
</content>
</binding>
</bindings>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="test">
<content>
<html:div xmlns:html="http://www.w3.org/1999/xhtml"
style="color: red; -moz-binding: url(403962-1xbl.xml#test-base)">
<children/>
</html:div>
</content>
</binding>
<binding id="test-base">
<content>
<html:div xmlns:html="http://www.w3.org/1999/xhtml" style="color: green">
<children includes="span"/>
</html:div>
<html:div xmlns:html="http://www.w3.org/1999/xhtml" style="color: red">
<children/>
</html:div>
</content>
</binding>
</bindings>