Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(774)

Side by Side Diff: LayoutTests/editing/style/font-face-unquote.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <script> 5 <script>
6 description('Test to make sure WebKit doesn\'t quote face attribute of font elem ents.'); 6 description('Test to make sure WebKit doesn\'t quote face attribute of font elem ents.');
7 7
8 var testContainer = document.createElement('div'); 8 var testContainer = document.createElement('div');
9 testContainer.contentEditable = true; 9 testContainer.contentEditable = true;
10 document.body.appendChild(testContainer); 10 document.body.appendChild(testContainer);
11 11
12 testContainer.innerHTML = 'Hello WebKit'; 12 testContainer.innerHTML = 'Hello WebKit';
13 window.getSelection().selectAllChildren(testContainer); 13 window.getSelection().selectAllChildren(testContainer);
14 document.execCommand('fontName', false, 'courier new'); 14 document.execCommand('fontName', false, 'courier new');
15 15
16 var expected = '<font face="courier new">Hello WebKit</font>'; 16 var expected = '<font face="courier new">Hello WebKit</font>';
17 if (expected == testContainer.innerHTML) 17 if (expected == testContainer.innerHTML)
18 testPassed('Font face is unquoted.'); 18 testPassed('Font face is unquoted.');
19 else 19 else
20 testFailed('Font face is quoted, expected: ' + expected + ', actual: ' + tes tContainer.innerHTML); 20 testFailed('Font face is quoted, expected: ' + expected + ', actual: ' + tes tContainer.innerHTML);
21 21
22 document.body.removeChild(testContainer); 22 document.body.removeChild(testContainer);
23 var successfullyParsed = true; 23 var successfullyParsed = true;
24 </script> 24 </script>
25 </body> 25 </body>
26 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698