| <script> |
| if (window.testRunner) { |
| testRunner.dumpAsText(); |
| |
| var dataURL = "<a id='anchor' href='#foo'>Hello</a><br><div id='foo'></div><s" + "cript>" + |
| "var evt = document.createEvent('MouseEvent');" + |
| "evt.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);" + |
| "document.getElementById('anchor').dispatchEvent(evt);" + |
| "</s" + "cript>"; |
| |
| testRunner.apiTestNewWindowDataLoadBaseURL(dataURL, "http://example.com/example.html"); |
| } |
| </script> |
| <body> |
| <pre>This test only runs in DRT. |
| It creates a new WebView using WebKit API, populates it using "loadData" and gives it a base URL, then clicks on a fragment anchor within it. |
| If it doesn't crash, it passed.</pre> |
| </body> |
| |
| |
| |
| |
| |