Changeset 87495 in webkit
- Timestamp:
- May 27, 2011 4:38:49 AM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 added
- 27 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r87493 r87495 1 2011-05-27 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Kent Tamura. 4 5 Convert smart-paste-001.html through smart-paste-003.html to dumpAsText tests 6 https://bugs.webkit.org/show_bug.cgi?id=61617 7 8 Converted smart-paste-001.html, smart-paste-002.html, and smart-paste-003.html to dumpAsText tests. 9 10 * editing/pasteboard/smart-paste-001-expected.txt: Added. 11 * editing/pasteboard/smart-paste-001.html: 12 * editing/pasteboard/smart-paste-002-expected.txt: Added. 13 * editing/pasteboard/smart-paste-002.html: 14 * editing/pasteboard/smart-paste-003-expected.txt: Added. 15 * editing/pasteboard/smart-paste-003.html: 16 * platform/chromium-linux/editing/pasteboard/smart-paste-001-expected.png: Removed. 17 * platform/chromium-linux/editing/pasteboard/smart-paste-002-expected.png: Removed. 18 * platform/chromium-linux/editing/pasteboard/smart-paste-003-expected.png: Removed. 19 * platform/chromium-linux/editing/pasteboard/smart-paste-003-expected.txt: Removed. 20 * platform/chromium-win/editing/pasteboard/smart-paste-001-expected.png: Removed. 21 * platform/chromium-win/editing/pasteboard/smart-paste-001-expected.txt: Removed. 22 * platform/chromium-win/editing/pasteboard/smart-paste-002-expected.png: Removed. 23 * platform/chromium-win/editing/pasteboard/smart-paste-002-expected.txt: Removed. 24 * platform/chromium-win/editing/pasteboard/smart-paste-003-expected.png: Removed. 25 * platform/chromium-win/editing/pasteboard/smart-paste-003-expected.txt: Removed. 26 * platform/gtk/editing/pasteboard/smart-paste-001-expected.png: Removed. 27 * platform/gtk/editing/pasteboard/smart-paste-001-expected.txt: Removed. 28 * platform/gtk/editing/pasteboard/smart-paste-002-expected.png: Removed. 29 * platform/gtk/editing/pasteboard/smart-paste-002-expected.txt: Removed. 30 * platform/gtk/editing/pasteboard/smart-paste-003-expected.png: Removed. 31 * platform/gtk/editing/pasteboard/smart-paste-003-expected.txt: Removed. 32 * platform/mac/editing/pasteboard/smart-paste-001-expected.png: Removed. 33 * platform/mac/editing/pasteboard/smart-paste-001-expected.txt: Removed. 34 * platform/mac/editing/pasteboard/smart-paste-002-expected.png: Removed. 35 * platform/mac/editing/pasteboard/smart-paste-002-expected.txt: Removed. 36 * platform/mac/editing/pasteboard/smart-paste-003-expected.png: Removed. 37 * platform/mac/editing/pasteboard/smart-paste-003-expected.txt: Removed. 38 * platform/qt/editing/pasteboard/smart-paste-001-expected.txt: Removed. 39 * platform/qt/editing/pasteboard/smart-paste-002-expected.png: Removed. 40 * platform/qt/editing/pasteboard/smart-paste-002-expected.txt: Removed. 41 * platform/qt/editing/pasteboard/smart-paste-003-expected.png: Removed. 42 * platform/qt/editing/pasteboard/smart-paste-003-expected.txt: Removed. 43 1 44 2011-05-27 Ryosuke Niwa <rniwa@webkit.org> 2 45 -
trunk/LayoutTests/editing/pasteboard/smart-paste-001.html
r55913 r87495 1 <!DOCTYPE html> 1 2 <html> 2 3 <head> 3 4 4 <style> 5 5 .editing { … … 17 17 .expected-results:first-line { font-weight: bold } 18 18 </style> 19 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>20 21 <script>22 23 function editingTest() {24 doubleClickAtSelectionStart();25 copyCommand();26 moveSelectionForwardByCharacterCommand();27 pasteCommand();28 }29 30 </script>31 32 <title>Editing Test</title>33 19 </head> 34 20 <body> 35 36 21 <div class="explanation"> 37 22 <div class="scenario"> … … 43 28 Expected Results: 44 29 <br> 45 A space should be added between the preexisting word and the word that's pasted. It should like this this:30 A space should be added between the preexisting word and the word that's pasted. It should like this: 46 31 <BR> 47 32 test test … … 54 39 </div> 55 40 </div> 41 <script src="../editing.js"></script> 42 <script> 56 43 57 <script> 58 runEditingTest(); 44 function editingTest() { 45 doubleClickAtSelectionStart(); 46 copyCommand(); 47 moveSelectionForwardByCharacterCommand(); 48 pasteCommand(); 49 } 50 51 runDumpAsTextEditingTest(true); 59 52 </script> 60 61 53 </body> 62 54 </html> -
trunk/LayoutTests/editing/pasteboard/smart-paste-002.html
r56089 r87495 1 <html> 1 <!DOCTYPE html> 2 <html> 2 3 <head> 3 4 4 <style> 5 5 .editing { … … 17 17 .expected-results:first-line { font-weight: bold } 18 18 </style> 19 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script> 19 </head> 20 <body> 21 <div class="explanation"> 22 <div class="scenario"> 23 Tests: 24 <br> 25 Smart paste when pasting at the beginning of a line before a word. 26 </div> 27 <div class="expected-results"> 28 Expected Results: 29 <br> 30 A space should be added after the pasted word before the preexising word. It should like this: 31 <BR> 32 test test 33 </div> 34 </div> 20 35 36 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;"> 37 <div id="test" class="editing"> 38 test 39 </div> 40 </div> 41 <script src="../editing.js"></script> 21 42 <script> 22 43 … … 31 52 } 32 53 54 runDumpAsTextEditingTest(true); 33 55 </script> 34 35 <title>Editing Test</title>36 </head>37 <body>38 39 <div class="explanation">40 <div class="scenario">41 Tests:42 <br>43 Smart paste when pasting at the beginning of a line before a word.44 </div>45 <div class="expected-results">46 Expected Results:47 <br>48 A space should be added after the pasted word before the preexising word. It should like this this:49 <BR>50 test test51 </div>52 </div>53 54 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">55 <div id="test" class="editing">56 test57 </div>58 </div>59 60 <script>61 runEditingTest();62 </script>63 64 56 </body> 65 57 </html> -
trunk/LayoutTests/editing/pasteboard/smart-paste-003.html
r55913 r87495 1 <html> 1 <!DOCTYPE html> 2 <html> 2 3 <head> 3 4 <script src="../../../resources/dump-as-markup.js"></script> 4 5 <style> 5 6 .editing { … … 17 18 .expected-results:first-line { font-weight: bold } 18 19 </style> 19 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>20 21 <script>22 23 function editingTest() {24 doubleClickAtSelectionStart();25 copyCommand();26 moveSelectionForwardByCharacterCommand();27 pasteCommand();28 }29 30 </script>31 32 <title>Editing Test</title>33 20 </head> 34 21 <body> 35 36 22 <div class="explanation"> 37 23 <div class="scenario"> … … 43 29 Expected Results: 44 30 <br> 45 A space should be added between the preexisting word and the word that's pasted. No space should be added after the pasted word. It should like this this:31 A space should be added between the preexisting word and the word that's pasted. No space should be added after the pasted word. It should like this: 46 32 <BR> 47 33 test test test … … 54 40 </div> 55 41 </div> 42 <script src="../editing.js"></script> 43 <script> 56 44 57 <script> 58 runEditingTest(); 45 function editingTest() { 46 doubleClickAtSelectionStart(); 47 copyCommand(); 48 moveSelectionForwardByCharacterCommand(); 49 pasteCommand(); 50 } 51 52 runDumpAsTextEditingTest(true); 59 53 </script> 60 61 54 </body> 62 55 </html>
Note: See TracChangeset
for help on using the changeset viewer.