| OLD | NEW | 
|   1 <html><body style='margin: 0 0 0 0;'><div style='height: 100px; border: solid 1p
    x black;' contenteditable=true> |   1 <html><body style='margin: 0 0 0 0;'><div style='height: 100px; border: solid 1p
    x black;' contenteditable=true> | 
|   2 This layout test is checks that we don't crash when a stand alone image is dragg
    ed into a content editable div. <br /> |   2 This layout test is checks that we don't crash when a stand alone image is dragg
    ed into a content editable div. <br /> | 
|   3 <a href='rdar://problem/5021127'>rdar://problem/5021127</a> |   3 <a href='rdar://problem/5021127'>rdar://problem/5021127</a> | 
|   4 </div></body> |   4 </div></body> | 
|   5 <script> |   5 <script> | 
 |   6 function finish() | 
 |   7 { | 
 |   8     window.parent.finish(); | 
 |   9 } | 
 |  10  | 
|   6 function waitForImageLoad() |  11 function waitForImageLoad() | 
|   7 { |  12 { | 
|   8     if (!window.testRunner) |  13     if (!window.testRunner) | 
|   9         return; |  14         return; | 
|  10  |  15  | 
|  11     var img = document.body.getElementsByTagName("img")[0]; |  16     var img = document.body.getElementsByTagName("img")[0]; | 
|  12     if (img.width != 0) |  17     if (img.width != 0) | 
|  13         testRunner.notifyDone(); |  18         finish(); | 
|  14     else { |  19     else { | 
|  15         img.addEventListener("load", function() { |  20         img.addEventListener("load", function() { | 
|  16             testRunner.notifyDone(); |  21             finish(); | 
|  17         }, false); |  22         }, false); | 
|  18     } |  23     } | 
|  19 } |  24 } | 
|  20 </script> |  25 </script> | 
|  21 </html> |  26 </html> | 
| OLD | NEW |