| <html> |
| <head> |
| |
| <style> |
| .editing { |
| border: 2px solid red; |
| font-size: 24px; |
| } |
| .explanation { |
| border: 2px solid blue; |
| padding: 12px; |
| font-size: 24px; |
| margin-bottom: 24px; |
| } |
| .scenario { margin-bottom: 16px;} |
| .scenario:first-line { font-weight: bold; margin-bottom: 16px;} |
| .expected-results:first-line { font-weight: bold } |
| </style> |
| <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script> |
| |
| <script> |
| |
| function editingTest() { |
| for (i = 0; i < 4; i++) |
| moveSelectionForwardByCharacterCommand(); |
| for (i = 0; i < 3; i++) |
| extendSelectionForwardByCharacterCommand(); |
| copyCommand(); |
| for (i = 0; i < 4; i++) |
| moveSelectionForwardByCharacterCommand(); |
| moveSelectionForwardByCharacterCommand(); |
| pasteAndMatchStyleCommand(); |
| } |
| |
| </script> |
| |
| <title>Editing Test</title> |
| </head> |
| <body> |
| <div class="explanation"> |
| <div class="scenario"> |
| Tests: |
| <br> |
| Fix for this bug: |
| <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=3429"><http://bugzilla.opendarwin.org/show_bug.cgi?id=3429></a> Text transformed with text-transform does not copy with transform applied |
| </div> |
| <div class="expected-results"> |
| Expected Results: |
| <br> |
| Should see the string <pre>Foo Bar baz Bar</pre> (case sensitive). |
| </div> |
| </div> |
| <div contenteditable id="root" class="editing"> |
| <span id="test"><span style="text-transform: capitalize;">foo bar</span> baz</span> |
| </div> |
| |
| <script> |
| runEditingTest(); |
| </script> |
| |
| </body> |
| </html> |