Changeset 87495 in webkit


Ignore:
Timestamp:
May 27, 2011 4:38:49 AM (13 years ago)
Author:
rniwa@webkit.org
Message:

2011-05-27 Ryosuke Niwa <rniwa@webkit.org>

Reviewed by Kent Tamura.

Convert smart-paste-001.html through smart-paste-003.html to dumpAsText tests
https://bugs.webkit.org/show_bug.cgi?id=61617

Converted smart-paste-001.html, smart-paste-002.html, and smart-paste-003.html to dumpAsText tests.

  • editing/pasteboard/smart-paste-001-expected.txt: Added.
  • editing/pasteboard/smart-paste-001.html:
  • editing/pasteboard/smart-paste-002-expected.txt: Added.
  • editing/pasteboard/smart-paste-002.html:
  • editing/pasteboard/smart-paste-003-expected.txt: Added.
  • editing/pasteboard/smart-paste-003.html:
  • platform/chromium-linux/editing/pasteboard/smart-paste-001-expected.png: Removed.
  • platform/chromium-linux/editing/pasteboard/smart-paste-002-expected.png: Removed.
  • platform/chromium-linux/editing/pasteboard/smart-paste-003-expected.png: Removed.
  • platform/chromium-linux/editing/pasteboard/smart-paste-003-expected.txt: Removed.
  • platform/chromium-win/editing/pasteboard/smart-paste-001-expected.png: Removed.
  • platform/chromium-win/editing/pasteboard/smart-paste-001-expected.txt: Removed.
  • platform/chromium-win/editing/pasteboard/smart-paste-002-expected.png: Removed.
  • platform/chromium-win/editing/pasteboard/smart-paste-002-expected.txt: Removed.
  • platform/chromium-win/editing/pasteboard/smart-paste-003-expected.png: Removed.
  • platform/chromium-win/editing/pasteboard/smart-paste-003-expected.txt: Removed.
  • platform/gtk/editing/pasteboard/smart-paste-001-expected.png: Removed.
  • platform/gtk/editing/pasteboard/smart-paste-001-expected.txt: Removed.
  • platform/gtk/editing/pasteboard/smart-paste-002-expected.png: Removed.
  • platform/gtk/editing/pasteboard/smart-paste-002-expected.txt: Removed.
  • platform/gtk/editing/pasteboard/smart-paste-003-expected.png: Removed.
  • platform/gtk/editing/pasteboard/smart-paste-003-expected.txt: Removed.
  • platform/mac/editing/pasteboard/smart-paste-001-expected.png: Removed.
  • platform/mac/editing/pasteboard/smart-paste-001-expected.txt: Removed.
  • platform/mac/editing/pasteboard/smart-paste-002-expected.png: Removed.
  • platform/mac/editing/pasteboard/smart-paste-002-expected.txt: Removed.
  • platform/mac/editing/pasteboard/smart-paste-003-expected.png: Removed.
  • platform/mac/editing/pasteboard/smart-paste-003-expected.txt: Removed.
  • platform/qt/editing/pasteboard/smart-paste-001-expected.txt: Removed.
  • platform/qt/editing/pasteboard/smart-paste-002-expected.png: Removed.
  • platform/qt/editing/pasteboard/smart-paste-002-expected.txt: Removed.
  • platform/qt/editing/pasteboard/smart-paste-003-expected.png: Removed.
  • platform/qt/editing/pasteboard/smart-paste-003-expected.txt: Removed.
Location:
trunk/LayoutTests
Files:
3 added
27 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r87493 r87495  
     12011-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
    1442011-05-27  Ryosuke Niwa  <rniwa@webkit.org>
    245
  • trunk/LayoutTests/editing/pasteboard/smart-paste-001.html

    r55913 r87495  
     1<!DOCTYPE html>
    12<html>
    23<head>
    3 
    44<style>
    55.editing {
     
    1717.expected-results:first-line { font-weight: bold }
    1818</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>
    3319</head>
    3420<body>
    35 
    3621<div class="explanation">
    3722<div class="scenario">
     
    4328Expected Results:
    4429<br>
    45 A space should be added between the preexisting word and the word that's pasted. It should like this this:
     30A space should be added between the preexisting word and the word that's pasted. It should like this:
    4631<BR>
    4732test test
     
    5439</div>
    5540</div>
     41<script src="../editing.js"></script>
     42<script>
    5643
    57 <script>
    58 runEditingTest();
     44function editingTest() {
     45    doubleClickAtSelectionStart();
     46    copyCommand();
     47    moveSelectionForwardByCharacterCommand();
     48    pasteCommand();
     49}
     50
     51runDumpAsTextEditingTest(true);
    5952</script>
    60 
    6153</body>
    6254</html>
  • trunk/LayoutTests/editing/pasteboard/smart-paste-002.html

    r56089 r87495  
    1 <html>
     1<!DOCTYPE html>
     2<html>
    23<head>
    3 
    44<style>
    55.editing {
     
    1717.expected-results:first-line { font-weight: bold }
    1818</style>
    19 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
     19</head>
     20<body>
     21<div class="explanation">
     22<div class="scenario">
     23Tests:
     24<br>
     25Smart paste when pasting at the beginning of a line before a word.
     26</div>
     27<div class="expected-results">
     28Expected Results:
     29<br>
     30A space should be added after the pasted word before the preexising word. It should like this:
     31<BR>
     32test test
     33</div>
     34</div>
    2035
     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">
     38test
     39</div>
     40</div>
     41<script src="../editing.js"></script>
    2142<script>
    2243
     
    3152}
    3253
     54runDumpAsTextEditingTest(true);
    3355</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 test
    51 </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 test
    57 </div>
    58 </div>
    59 
    60 <script>
    61 runEditingTest();
    62 </script>
    63 
    6456</body>
    6557</html>
  • trunk/LayoutTests/editing/pasteboard/smart-paste-003.html

    r55913 r87495  
    1 <html>
     1<!DOCTYPE html>
     2<html>
    23<head>
    3 
     4<script src="../../../resources/dump-as-markup.js"></script>
    45<style>
    56.editing {
     
    1718.expected-results:first-line { font-weight: bold }
    1819</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>
    3320</head>
    3421<body>
    35 
    3622<div class="explanation">
    3723<div class="scenario">
     
    4329Expected Results:
    4430<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:
     31A 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:
    4632<BR>
    4733test test test
     
    5440</div>
    5541</div>
     42<script src="../editing.js"></script>
     43<script>
    5644
    57 <script>
    58 runEditingTest();
     45function editingTest() {
     46    doubleClickAtSelectionStart();
     47    copyCommand();
     48    moveSelectionForwardByCharacterCommand();
     49    pasteCommand();
     50}
     51
     52runDumpAsTextEditingTest(true);
    5953</script>
    60 
    6154</body>
    6255</html>
Note: See TracChangeset for help on using the changeset viewer.