gecko/layout/reftests/forms/textarea-setvalue-framereconstruction-1.html
Robert O'Callahan 978503655c Bug 810470. Part 9: Fix reftests. r=mattwoodrow
We seem to be invalidating less and some issues with overflowing Cocoa
native widget themes have appeared. We've worked around these issues
elsewhere, e.g. by getting rid of scrollbars, so I'm doing it here too.
The test 745025-1.html dynamically updates a print reftest, which seems
to cause problems on Mac with the page shadow drawing. This is not
important and is already a known intermittent failure.

--HG--
extra : rebase_source : d0700a709b44d0e5abd14fc4b8e6c26f8692279c
2012-11-14 22:36:49 -08:00

51 lines
1.0 KiB
HTML

<!--
This test is mostly a copy of layout/forms/crashtests/373586-1.xhtml,
and it makes sure that the value setter works correctly when setting
the value causes the frame to be reconstructed.
-->
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="foo">
<content>
<children xmlns="http://www.mozilla.org/xbl" />
</content>
</binding>
</bindings>
<script>
function boom()
{
document.getElementById("div").style.MozBinding = "url('#foo')";
var opt1 = document.getElementById("opt1");
opt1.removeChild(opt1.firstChild);
document.getElementById("textarea").value += " y";
document.getElementById("div").style.MozBinding = "";
document.documentElement.removeAttribute("class")
}
window.addEventListener("MozReftestInvalidate", boom, false);
</script>
</head>
<body>
<div id="div">
<textarea rows="3" cols="5" id="textarea">x</textarea>
</div>
<select style="-moz-appearance:none">
<option id="opt1">opt1</option>
</select>
</body>
</html>