| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 | |
| 4 <style> | |
| 5 .editing { | |
| 6 border: 2px solid red; | |
| 7 font-size: 24px; | |
| 8 } | |
| 9 .explanation { | |
| 10 border: 2px solid blue; | |
| 11 padding: 12px; | |
| 12 font-size: 24px; | |
| 13 margin-bottom: 24px; | |
| 14 } | |
| 15 .scenario { margin-bottom: 16px;} | |
| 16 .scenario:first-line { font-weight: bold; margin-bottom: 16px;} | |
| 17 .expected-results:first-line { font-weight: bold } | |
| 18 </style> | |
| 19 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script
> | |
| 20 | |
| 21 <script> | |
| 22 | |
| 23 function editingTest() { | |
| 24 for (i = 0; i < 4; i++) | |
| 25 moveSelectionForwardByCharacterCommand(); | |
| 26 for (i = 0; i < 3; i++) | |
| 27 extendSelectionForwardByCharacterCommand(); | |
| 28 copyCommand(); | |
| 29 for (i = 0; i < 4; i++) | |
| 30 moveSelectionForwardByCharacterCommand(); | |
| 31 moveSelectionForwardByCharacterCommand(); | |
| 32 pasteAndMatchStyleCommand(); | |
| 33 } | |
| 34 | |
| 35 </script> | |
| 36 | |
| 37 <title>Editing Test</title> | |
| 38 </head> | |
| 39 <body> | |
| 40 <div class="explanation"> | |
| 41 <div class="scenario"> | |
| 42 Tests: | |
| 43 <br> | |
| 44 Fix for this bug: | |
| 45 <a href="https://bugs.webkit.org/show_bug.cgi?id=3429"><http://bugzilla.opend
arwin.org/show_bug.cgi?id=3429></a> Text transformed with text-transform does
not copy with transform applied | |
| 46 </div> | |
| 47 <div class="expected-results"> | |
| 48 Expected Results: | |
| 49 <br> | |
| 50 Should see the string <pre>Foo Bar baz Bar</pre> (case sensitive). | |
| 51 </div> | |
| 52 </div> | |
| 53 <div contenteditable id="root" class="editing"> | |
| 54 <span id="test"><span style="text-transform: capitalize;">foo bar</span> baz</sp
an> | |
| 55 </div> | |
| 56 | |
| 57 <script> | |
| 58 runEditingTest(); | |
| 59 </script> | |
| 60 | |
| 61 </body> | |
| 62 </html> | |
| OLD | NEW |