Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / font-face-unquote.html
blobb285d6d91c5ed440d6406c3baf93a8b950fff7b5
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../resources/js-test.js"></script>
5 <script>
6 description('Test to make sure WebKit doesn\'t quote face attribute of font elements.');
8 var testContainer = document.createElement('div');
9 testContainer.contentEditable = true;
10 document.body.appendChild(testContainer);
12 testContainer.innerHTML = 'Hello WebKit';
13 window.getSelection().selectAllChildren(testContainer);
14 document.execCommand('fontName', false, 'courier new');
16 var expected = '<font face="courier new">Hello WebKit</font>';
17 if (expected == testContainer.innerHTML)
18 testPassed('Font face is unquoted.');
19 else
20 testFailed('Font face is quoted, expected: ' + expected + ', actual: ' + testContainer.innerHTML);
22 document.body.removeChild(testContainer);
23 var successfullyParsed = true;
24 </script>
25 </body>
26 </html>