1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/editor/libeditor/html/crashtests/759748.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,58 @@ 1.4 +<!doctype html> 1.5 +<body> 1.6 +<script> 1.7 +var cmds = { 1.8 + bold: "", 1.9 + italic: "", 1.10 + underline: "", 1.11 + strikethrough: "", 1.12 + subscript: "", 1.13 + superscript: "", 1.14 + cut: "", 1.15 + copy: "", 1.16 + paste: "", 1.17 + delete: "", 1.18 + forwarddelete: "", 1.19 + selectall: "", 1.20 + undo: "", 1.21 + redo: "", 1.22 + indent: "", 1.23 + outdent: "", 1.24 + backcolor: "#888888", 1.25 + forecolor: "#888888", 1.26 + hilitecolor: "#888888", 1.27 + fontname: "Courier", 1.28 + fontsize: "6", 1.29 + increasefontsize: "", 1.30 + decreasefontsize: "", 1.31 + inserthorizontalrule: "", 1.32 + createlink: "foo", 1.33 + insertimage: "foo", 1.34 + inserthtml: "foo", 1.35 + inserttext: "foo", 1.36 + insertparagraph: "", 1.37 + gethtml: "", 1.38 + justifyleft: "", 1.39 + justifyright: "", 1.40 + justifycenter: "", 1.41 + justifyfull: "", 1.42 + removeformat: "", 1.43 + unlink: "", 1.44 + insertorderedlist: "", 1.45 + insertunorderedlist: "", 1.46 + formatblock: "h1", 1.47 + heading: "h1", 1.48 + stylewithcss: "true", 1.49 + usecss: "true", 1.50 + contentreadonly: "true", 1.51 + readonly: "true", 1.52 + insertbronreturn: "true", 1.53 + enableobjectresizing: "true", 1.54 + enableinlinetableediting: "true", 1.55 +}; 1.56 +for (var k in cmds) { 1.57 + document.body.innerHTML = "<div contenteditable>abc</div>"; 1.58 + getSelection().removeAllRanges(); 1.59 + try { document.execCommand(k, false, cmds[k]) } catch(e) {} 1.60 +} 1.61 +</script>