gfx/tests/crashtests/372094-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/tests/crashtests/372094-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     1.5 +<head>
     1.6 +<script>
     1.7 +<![CDATA[
     1.8 +
     1.9 +function init()
    1.10 +{
    1.11 +  setTimeout(function()
    1.12 +  {
    1.13 +    targetWindow = window.frames[0];
    1.14 +    targetDocument = targetWindow.document;
    1.15 +    targetDocument.body.appendChild(targetDocument.importNode(document.getElementById('rootish'), true));
    1.16 +    targetDocument.designMode = 'on';
    1.17 +    setTimeout(boom, 30);
    1.18 +  }, 30); 
    1.19 +}
    1.20 +
    1.21 +function boom()
    1.22 +{
    1.23 +  var r = targetDocument.createRange();
    1.24 +  r.setStart(targetDocument.getElementById("bar"), 0);
    1.25 +  r.setEnd(targetDocument.getElementById("baz").firstChild, 0);
    1.26 +  targetWindow.getSelection().addRange(r);
    1.27 +  
    1.28 +  targetDocument.execCommand("indent", false, null);
    1.29 +  
    1.30 +  document.documentElement.removeAttribute("class");
    1.31 +}
    1.32 +
    1.33 +]]>
    1.34 +</script>
    1.35 +</head>
    1.36 +
    1.37 +<body onload="init()">
    1.38 +
    1.39 +<iframe src="data:text/html," style="width: 95%; height: 500px;"/>
    1.40 +
    1.41 +<div id="rootish">
    1.42 +  <div>Foo</div>
    1.43 +  <div id="bar">Bar</div>
    1.44 +  <div><select><option id="baz">baz</option></select></div>
    1.45 +</div>
    1.46 +
    1.47 +</body>
    1.48 +</html>
    1.49 \ No newline at end of file

mercurial