4 <script src=
"../../fast/dom/resources/event-sender-util.js"></script>
6 <p>Pressing enter on the last character of
<li
> element in Shadow DOM was triggering assertion,
7 becasue modifying Shadow DOM removes the renderer in Shadow DOM and desendant of shadow host.
</p>
8 <p>This tests confirms it won't happen any more.
</p>
11 <ol id=
"host" contenteditable
>
13 <li id=
"list2">LIST
2</li>
19 if (window
.testRunner
)
20 testRunner
.dumpAsText();
22 var shadowRoot
= host
.createShadowRoot();
23 var li
= document
.createElement('li');
24 li
.innerHTML
= 'inside shadow';
25 shadowRoot
.appendChild(li
);
26 shadowRoot
.appendChild(document
.createElement('shadow'));
28 eventSender
.mouseMoveTo(list2
.offsetLeft
+ list2
.offsetWidth
- 10, list2
.offsetTop
+ list2
.offsetHeight
/ 2);
29 eventSender
.mouseDown();
30 eventSender
.mouseUp();
32 eventSender
.keyDown('\n');
34 container
.innerHTML
= "PASS";