Home | History | Annotate | Download | only in ManualTests
      1 <html> 
      2 <head> 
      3 <script type="text/javascript"> 
      4 function test() {
      5     if (window.layoutTestController)
      6         layoutTestController.dumpAsText();
      7 
      8     var element = document.documentElement;
      9     var showAlert = function() {
     10         alert('Click OK button.');
     11     };
     12  
     13     if (element.addEventListener)
     14         element.addEventListener('dragenter', showAlert, false);
     15     else
     16         element.attachEvent('ondragenter', showAlert);
     17 }
     18 </script> 
     19  
     20 </head>
     21 <body onload="test()">
     22     <p>Do the following and see if Webkit crashes.</p>
     23     <ul>
     24       <li>Drag the image</li> 
     25       <li>Click the OK button on the alert box</li> 
     26     </ul>
     27     <img id="dragimage" src="resources/drag-image.png" width="32px" height="32px"> 
     28 </body>
     29 </html> 
     30