Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-svg-001.html
blobc72de0fbab9ccae71ec25cb17a6bbc5063e293de
2 <div id="container">
3 <p id="description"></p>
4 Manual steps (run in assertion enabled binary)
5 <ol>
6 <li>Place caret before "X".</li>
7 <li>Hit Delete key</li>
8 <li>See no assertion at Range constructor.</li>
9 </ol>
10 <div contenteditable="true">hello<span style="width: 10px; height: 10px;" id="sample">
11 <svg viewBox="0 0 100 100" width="20" height="20" version="1.1" xmlns="http://www.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>
13 <script src="../../resources/js-test.js"></script>
14 <script>
15 description('Delete SVG element without assertion');
16 function $(id) { return document.getElementById(id); }
18 var sample = $('sample');
19 var range = document.createRange();
20 range.setStart(sample.firstChild, 1);
21 getSelection().addRange(range);
22 document.execCommand('forwardDelete');
23 shouldBe('sample.textContent.charCodeAt(0)', '160'); // U+00A0 &nbsp;
25 if (window.testRunner)
26 $('container').outerHTML = '';
27 </script>