blob: af1170d5a0de75a082072c3e255b749a1441bf14 [file] [log] [blame]
<body contentEditable="true"><font face="Arial">There should only be one font tag.</font></body>
<script src="../editing.js"></script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var fontNode = document.getElementsByTagName("font")[0];
setSelectionCommand(fontNode, 0, fontNode, 0);
execExtendSelectionForwardBySentenceCommand();
document.execCommand("fontname", false, "Courier");
var numFontNodes = document.getElementsByTagName("font").length;
var result = numFontNodes == 1 ? "SUCCESS" : "FAILED";
document.body.innerHTML += "<p>" + result + "</p>";
</script>