Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(572)

Side by Side Diff: LayoutTests/editing/deleting/delete-svg-001.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 <div id="container"> 2 <div id="container">
3 <p id="description"></p> 3 <p id="description"></p>
4 Manual steps (run in assertion enabled binary) 4 Manual steps (run in assertion enabled binary)
5 <ol> 5 <ol>
6 <li>Place caret before "X".</li> 6 <li>Place caret before "X".</li>
7 <li>Hit Delete key</li> 7 <li>Hit Delete key</li>
8 <li>See no assertion at Range constructor.</li> 8 <li>See no assertion at Range constructor.</li>
9 </ol> 9 </ol>
10 <div contenteditable="true">hello<span style="width: 10px; height: 10px;" id="sa mple"> 10 <div contenteditable="true">hello<span style="width: 10px; height: 10px;" id="sa mple">
11 <svg viewBox="0 0 100 100" width="20" height="20" version="1.1" xmlns="http://ww w.w3.org/2000/svg"><text x="10" y="70" font-size="80">X</text><line x1="0" y1="2 .5" x2="100" y2="2.5" stroke="red" stroke-width="5" color="yellow"></line><line x1="0" y1="97.5" x2="100" y2="97.5" stroke="red" stroke-width="5" color="yellow" ></line></svg></span>world</div> 11 <svg viewBox="0 0 100 100" width="20" height="20" version="1.1" xmlns="http://ww w.w3.org/2000/svg"><text x="10" y="70" font-size="80">X</text><line x1="0" y1="2 .5" x2="100" y2="2.5" stroke="red" stroke-width="5" color="yellow"></line><line x1="0" y1="97.5" x2="100" y2="97.5" stroke="red" stroke-width="5" color="yellow" ></line></svg></span>world</div>
12 </div> 12 </div>
13 <script src="../../fast/js/resources/js-test-pre.js"></script> 13 <script src="../../fast/js/resources/js-test-pre.js"></script>
14 <script> 14 <script>
15 description('Delete SVG element without assertion'); 15 description('Delete SVG element without assertion');
16 function $(id) { return document.getElementById(id); } 16 function $(id) { return document.getElementById(id); }
17 17
18 var sample = $('sample'); 18 var sample = $('sample');
19 var range = document.createRange(); 19 var range = document.createRange();
20 range.setStart(sample.firstChild, 1); 20 range.setStart(sample.firstChild, 1);
21 getSelection().addRange(range); 21 getSelection().addRange(range);
22 document.execCommand('forwardDelete'); 22 document.execCommand('forwardDelete');
23 shouldBe('sample.textContent.charCodeAt(0)', '160'); // U+00A0 &nbsp; 23 shouldBe('sample.textContent.charCodeAt(0)', '160'); // U+00A0 &nbsp;
24 24
25 if (window.testRunner) 25 if (window.testRunner)
26 $('container').outerHTML = ''; 26 $('container').outerHTML = '';
27 </script> 27 </script>
28 <script src="../../fast/js/resources/js-test-post.js"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698