summaryrefslogtreecommitdiffstats
path: root/layout/reftests/forms/textarea/setvalue-framereconstruction-1.html
blob: dd8f1d2c0b75e8276fa22bf9f185f476b0615a7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!--

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>