| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 | 3 |
| 4 <style> | 4 <style> |
| 5 .editing { | 5 .editing { |
| 6 border: 2px solid red; | 6 border: 2px solid red; |
| 7 font-size: 24px; | 7 font-size: 24px; |
| 8 } | 8 } |
| 9 .explanation { | 9 .explanation { |
| 10 border: 2px solid blue; | 10 border: 2px solid blue; |
| 11 padding: 12px; | 11 padding: 12px; |
| 12 font-size: 24px; | 12 font-size: 24px; |
| 13 margin-bottom: 24px; | 13 margin-bottom: 24px; |
| 14 } | 14 } |
| 15 .scenario { margin-bottom: 16px;} | 15 .scenario { margin-bottom: 16px;} |
| 16 .scenario:first-line { font-weight: bold; margin-bottom: 16px;} | 16 .scenario:first-line { font-weight: bold; margin-bottom: 16px;} |
| 17 .expected-results:first-line { font-weight: bold } | 17 .expected-results:first-line { font-weight: bold } |
| 18 </style> | 18 </style> |
| 19 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script
> | 19 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script
> |
| 20 | 20 |
| 21 <script> | 21 <script> |
| 22 | 22 |
| 23 function editingTest() { | 23 function editingTest() { |
| 24 window.getSelection().collapse(test.firstChild, 1); |
| 24 doubleClickAtSelectionStart(); | 25 doubleClickAtSelectionStart(); |
| 25 deleteCommand(); | 26 deleteCommand(); |
| 26 } | 27 } |
| 27 | 28 |
| 28 </script> | 29 </script> |
| 29 | 30 |
| 30 <title>Editing Test</title> | 31 <title>Editing Test</title> |
| 31 </head> | 32 </head> |
| 32 <body> | 33 <body> |
| 33 | 34 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 51 foo bar baz | 52 foo bar baz |
| 52 </div> | 53 </div> |
| 53 </div> | 54 </div> |
| 54 | 55 |
| 55 <script> | 56 <script> |
| 56 runEditingTest(); | 57 runEditingTest(); |
| 57 </script> | 58 </script> |
| 58 | 59 |
| 59 </body> | 60 </body> |
| 60 </html> | 61 </html> |
| OLD | NEW |