Bug 668849 - Sporadic TEST-UNEXPECTED-FAIL | reftests/text-overflow/selection.html. r=test-only

This commit is contained in:
Mats Palmgren 2011-07-02 23:50:02 +02:00
parent 0e059967ea
commit fbc99e4595
2 changed files with 4 additions and 2 deletions

View File

@ -88,7 +88,8 @@ function selectText() {
addRange(t1.firstChild);
var t2 = document.getElementById('t2');
addRange(t2.firstChild);
document.documentElement.removeAttribute('class');
document.body.offsetHeight;
setTimeout(function(){document.documentElement.removeAttribute('class')},1000);
}
</script>
</head><body onload="selectText();">

View File

@ -86,7 +86,8 @@ function selectText() {
for (i = 0; i < divs.length; ++i) {
addRange(divs[i]);
}
document.documentElement.removeAttribute('class');
document.body.offsetHeight;
setTimeout(function(){document.documentElement.removeAttribute('class')},1000);
}
</script>
</head><body onload="selectText();">