Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / resources / standalone-image-drag-to-editable-frame.html
blob138d08fae8ca11637a9ad6cb409e43460d8780cc
1 <html><body style='margin: 0 0 0 0;'><div style='height: 100px; border: solid 1px black;' contenteditable=true>
2 This layout test is checks that we don't crash when a stand alone image is dragged into a content editable div. <br />
3 <a href='rdar://problem/5021127'>rdar://problem/5021127</a>
4 </div></body>
5 <script>
6 function finish()
8 window.parent.finish();
11 function waitForImageLoad()
13 if (!window.testRunner)
14 return;
16 var img = document.body.getElementsByTagName("img")[0];
17 if (img.width != 0)
18 finish();
19 else {
20 img.addEventListener("load", function() {
21 finish();
22 }, false);
25 </script>
26 </html>