Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / selection-change-in-blur-event-by-remove-children.html
blob8f468295b4e81c73eb6c9903c81ad352ed4154b9
1 <div id="container">
2 <p id="description"></p>
3 <div id="sample"><span contenteditable="true">foobar</span></div>
4 </div>
5 <div id="console"></div>
6 <script src="../../resources/js-test.js"></script>
7 <script>
8 description('Selection should be updated after set innerHTML.');
10 function $(id) { return document.getElementById(id); }
12 var selection = window.getSelection();
13 document.addEventListener('blur', function () {
14 selection.selectAllChildren($('sample').firstChild);
15 }, true);
17 selection.selectAllChildren($('sample').firstChild);
18 $('sample').firstChild.focus();
19 $('sample').innerHTML = '';
21 shouldBe('selection.anchorOffset', '0');
22 shouldBe('selection.focusOffset', '0');
24 if (window.testRunner)
25 $('container').outerHTML = '';
26 </script>