JS Test Harness: Insert the stylesheet dynamically
[WebKit-https.git] / LayoutTests / fast / dom / Element / id-in-deletebutton.html
1 <html>
2 <head>
3 <script src="../../js/resources/js-test-pre.js"></script>
4 </head>
5 <body>
6
7 <div contenteditable="true">
8 <ul class="needsDeletionUI"><li>1</li><li id="li">2</li></ul>
9
10 <script>
11 description('Test document.getElementById("WebKit-Editing-Delete-Button")');
12
13 sel = window.getSelection();
14 li = document.getElementById("li");
15 sel.setPosition(li, 0);
16
17 if (window.layoutTestController) {
18     deleteButton = document.getElementById("WebKit-Editing-Delete-Button");
19     shouldBeNonNull('deleteButton');
20 }
21
22 var successfullyParsed = true;
23 </script>
24 <script src="../../js/resources/js-test-post.js"></script>
25 </body>
26 </html>