| Index: trunk/LayoutTests/fast/dom/HTMLSelectElement/remove-element-from-within-focus-handler-crash.html
|
| ===================================================================
|
| --- trunk/LayoutTests/fast/dom/HTMLSelectElement/remove-element-from-within-focus-handler-crash.html (revision 197019)
|
| +++ trunk/LayoutTests/fast/dom/HTMLSelectElement/remove-element-from-within-focus-handler-crash.html (working copy)
|
| @@ -2,15 +2,13 @@
|
| <option>Clicking on this select element should not crash</option>
|
| </select>
|
| <h2>Layout test for <a href='https://bugs.webkit.org/show_bug.cgi?id=23858'>bug 23858</a></h2>
|
| -<p>If the select can be clicked without crashing then the test has passed.</p>
|
| +<p>If this page is displayed without crashing then the test has passed.</p>
|
| <script>
|
| - if (window.testRunner)
|
| + if (window.testRunner)
|
| testRunner.dumpAsText();
|
|
|
| var select = document.getElementById('bomb');
|
| - var rect = select.getBoundingClientRect();
|
| - if (window.eventSender) {
|
| - eventSender.mouseMoveTo(rect.left + 1, rect.top + 1);
|
| - eventSender.mouseDown(0);
|
| - }
|
| + var mouseEvent = document.createEvent("MouseEvents");
|
| + mouseEvent.initMouseEvent("mousedown", true, true, document.defaultView, 1, select.offsetLeft + 1, select.offsetTop + 1, select.offsetLeft + 1, select.offsetTop + 1, false, false, false, false, 0, document);
|
| + select.dispatchEvent(mouseEvent);
|
| </script>
|
|
|
| Property changes on: trunk/LayoutTests/fast/dom/HTMLSelectElement/remove-element-from-within-focus-handler-crash.html
|
| ___________________________________________________________________
|
| Deleted: svn:mime-type
|
| ## -1 +0,0 ##
|
| -text/html
|
| \ No newline at end of property
|
| Deleted: svn:eol-style
|
| ## -1 +0,0 ##
|
| -LF
|
| \ No newline at end of property
|
|
|