Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1397)

Side by Side Diff: LayoutTests/fast/events/resources/standalone-image-drag-to-editable-frame.html

Issue 17225002: Make user-select:none not to affect editability (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-06-19T18:10:01 Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698