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

Side by Side Diff: LayoutTests/editing/execCommand/default-paragraph-separator.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 <head> 3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <div id=editor contenteditable></div> 7 <div id=editor contenteditable></div>
8 <script> 8 <script>
9 shouldBeTrue("document.queryCommandEnabled('DefaultParagraphSeparator')"); 9 shouldBeTrue("document.queryCommandEnabled('DefaultParagraphSeparator')");
10 shouldBeEqualToString("document.queryCommandValue('DefaultParagraphSeparator ')", "div"); // Default is div. 10 shouldBeEqualToString("document.queryCommandValue('DefaultParagraphSeparator ')", "div"); // Default is div.
11 evalAndLog("document.execCommand('DefaultParagraphSeparator', false, 'p')"); 11 evalAndLog("document.execCommand('DefaultParagraphSeparator', false, 'p')");
12 shouldBeEqualToString("document.queryCommandValue('DefaultParagraphSeparator ')", "p"); 12 shouldBeEqualToString("document.queryCommandValue('DefaultParagraphSeparator ')", "p");
13 evalAndLog("document.execCommand('DefaultParagraphSeparator', false, 'br')") ; 13 evalAndLog("document.execCommand('DefaultParagraphSeparator', false, 'br')") ;
14 shouldBeEqualToString("document.queryCommandValue('DefaultParagraphSeparator ')", "p"); 14 shouldBeEqualToString("document.queryCommandValue('DefaultParagraphSeparator ')", "p");
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 debug('document.execCommand("InsertHTML", false, "&lt;cite>a&lt;cite>bc&lt;/ cite>&lt;/cite>")'); 70 debug('document.execCommand("InsertHTML", false, "&lt;cite>a&lt;cite>bc&lt;/ cite>&lt;/cite>")');
71 document.execCommand("InsertHTML", false, "<cite>a<cite>bc</cite></cite>"); 71 document.execCommand("InsertHTML", false, "<cite>a<cite>bc</cite></cite>");
72 evalAndLog('window.getSelection().modify("move", "backward", "character")'); 72 evalAndLog('window.getSelection().modify("move", "backward", "character")');
73 evalAndLog("document.execCommand('InsertParagraph')"); 73 evalAndLog("document.execCommand('InsertParagraph')");
74 shouldBeEqualToString("div.innerHTML", "<cite>a<cite>b</cite></cite><p><cite ><cite>c</cite></cite></p>"); 74 shouldBeEqualToString("div.innerHTML", "<cite>a<cite>b</cite></cite><p><cite ><cite>c</cite></cite></p>");
75 75
76 div.innerHTML = ""; 76 div.innerHTML = "";
77 </script> 77 </script>
78 </body> 78 </body>
79 </html> 79 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698