| <script src="resources/polyfill.js"></script> |
| <script src="../resources/event-sender-util.js"></script> |
| <script src="../../../resources/js-test-pre.js"></script> |
| function createBox(name) { |
| var div = document.createElement('div'); |
| div.style.width = '100px'; |
| div.style.height = '100px'; |
| div.style.resize = 'both'; |
| div.style.overflow = 'hidden'; |
| div.style.background = 'red'; |
| var shadowRoot = host.webkitCreateShadowRoot(); |
| var box = createBox('dark'); |
| shadowRoot.appendChild(box); |
| var x = box.offsetLeft + box.offsetWidth; |
| var y = box.offsetLeft + box.offsetWidth; |
| eventSender.mouseMoveTo(x - 7, y - 7); |
| eventSender.mouseMoveTo(x + 7, y + 7); |
| shouldBe('box.offsetWidth', '114'); |
| shouldBe('box.offsetHeight', '114'); |
| var successfullyParsed = true; |
| <script src="../../../resources/js-test-post.js"></script> |