|
1 <!-- |
|
2 |
|
3 This test is mostly a copy of layout/forms/crashtests/373586-1.xhtml, |
|
4 and it makes sure that the value setter works correctly when setting |
|
5 the value causes the frame to be reconstructed. |
|
6 |
|
7 --> |
|
8 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> |
|
9 <head> |
|
10 |
|
11 <bindings xmlns="http://www.mozilla.org/xbl"> |
|
12 <binding id="foo"> |
|
13 <content> |
|
14 <children xmlns="http://www.mozilla.org/xbl" /> |
|
15 </content> |
|
16 </binding> |
|
17 </bindings> |
|
18 |
|
19 <script> |
|
20 function boom() |
|
21 { |
|
22 document.getElementById("div").style.MozBinding = "url('#foo')"; |
|
23 |
|
24 var opt1 = document.getElementById("opt1"); |
|
25 opt1.removeChild(opt1.firstChild); |
|
26 |
|
27 document.getElementById("textarea").value += " y"; |
|
28 |
|
29 document.getElementById("div").style.MozBinding = ""; |
|
30 document.documentElement.removeAttribute("class") |
|
31 } |
|
32 |
|
33 window.addEventListener("MozReftestInvalidate", boom, false); |
|
34 </script> |
|
35 |
|
36 </head> |
|
37 |
|
38 <body> |
|
39 |
|
40 <div id="div"> |
|
41 <textarea rows="3" cols="5" id="textarea">x</textarea> |
|
42 </div> |
|
43 |
|
44 <select style="-moz-appearance:none"> |
|
45 <option id="opt1">opt1</option> |
|
46 </select> |
|
47 |
|
48 </body> |
|
49 </html> |
|
50 |