| background-image:url(resources/bookmark.gif); |
| window.ondragstart = function() { |
| window.ondragend = function() { |
| document.getElementById('results').innerHTML = 'Test passed.'; |
| document.getElementById('results').innerHTML = 'Test failed.'; |
| testRunner.waitUntilDone(); |
| var testBookmark = document.getElementById('testBookmark'); |
| var x = testBookmark.offsetLeft + testBookmark.offsetWidth / 2; |
| var y = testBookmark.offsetTop + testBookmark.offsetHeight / 2; |
| eventSender.mouseMoveTo(x, y); |
| eventSender.mouseMoveTo(x + 100, y + 100); |
| <p>This tests a parent node (has child nodes) is draggable. |
| You should be able to drag the bookmark image below and drop it to bookmarks bar. |
| <a id="testBookmark" href="http://testbookmark" title="Bookmark" class="bookmark">Bookmark</a> |