1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/editor/libeditor/html/crashtests/336081-1.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,52 @@ 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 foop(targetWindow) 1.10 +{ 1.11 + var targetDocument = targetWindow.document; 1.12 + 1.13 + var r1 = targetDocument.createRange(); 1.14 + r1.setStart(targetDocument.getElementById("out1"), 0); 1.15 + r1.setEnd (targetDocument.getElementById("out2"), 0); 1.16 + targetWindow.getSelection().addRange(r1); 1.17 + 1.18 + var r2 = targetDocument.createRange(); 1.19 + r2.setStart(targetDocument.getElementById("in1"), 0); 1.20 + r2.setEnd (targetDocument.getElementById("in2"), 0); 1.21 + targetWindow.getSelection().addRange(r2); 1.22 + 1.23 + targetDocument.execCommand('removeformat', false, null); 1.24 + targetDocument.execCommand('outdent', false, null); 1.25 +} 1.26 + 1.27 +function init() 1.28 +{ 1.29 + setTimeout(function() 1.30 + { 1.31 + var fd = window.frames[0].document; 1.32 + fd.body.appendChild(fd.importNode(document.getElementById('rootish'), true)); 1.33 + fd.designMode = 'on'; 1.34 + foop(window.frames[0]); 1.35 + document.documentElement.removeAttribute("class"); 1.36 + }, 100); 1.37 +} 1.38 + 1.39 +]]> 1.40 +</script> 1.41 +</head> 1.42 + 1.43 +<body onload="init()"> 1.44 + 1.45 +<iframe src="data:text/html," style="width: 95%; height: 500px;"/> 1.46 + 1.47 +<div id="rootish"> 1.48 +<div id="out1"/> 1.49 +<div id="in1"/> 1.50 +<div id="in2"/> 1.51 +<div id="out2"/> 1.52 +</div> 1.53 + 1.54 +</body> 1.55 +</html> 1.56 \ No newline at end of file