WebCore/manual-tests/drag-enter-alert.html
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 01:32:07 +0300
changeset 2 303757a437d3
parent 0 4f2f89ce4247
permissions -rw-r--r--
Revision: 201037 Kit: 201039

<html> 
<head> 
<script type="text/javascript"> 
function test() {
    if (window.layoutTestController)
        layoutTestController.dumpAsText();

    var element = document.documentElement;
    var showAlert = function() {
        alert('Click OK button.');
    };
 
    if (element.addEventListener)
        element.addEventListener('dragenter', showAlert, false);
    else
        element.attachEvent('ondragenter', showAlert);
}
</script> 
 
</head>
<body onload="test()">
    <p>Do the following and see if Webkit crashes.</p>
    <ul>
      <li>Drag the image</li> 
      <li>Click the OK button on the alert box</li> 
    </ul>
    <img id="dragimage" src="resources/drag-image.png" width="32px" height="32px"> 
</body>
</html>