Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / change-font.html
blobaf1170d5a0de75a082072c3e255b749a1441bf14
1 <body contentEditable="true"><font face="Arial">There should only be one font tag.</font></body>
2 <script src="../editing.js"></script>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
6 var fontNode = document.getElementsByTagName("font")[0];
7 setSelectionCommand(fontNode, 0, fontNode, 0);
8 execExtendSelectionForwardBySentenceCommand();
9 document.execCommand("fontname", false, "Courier");
10 var numFontNodes = document.getElementsByTagName("font").length;
11 var result = numFontNodes == 1 ? "SUCCESS" : "FAILED";
12 document.body.innerHTML += "<p>" + result + "</p>";
13 </script>