<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>
