blob: afbae33e5f49db11de656d58b6945a18e83ca692 [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.layoutTestController)
layoutTestController.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>