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