plain-text-paste.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2. "http://www.w3.org/TR/html4/strict.dtd">
  3. <html lang="en">
  4. <head>
  5. </head>
  6. <body>
  7. <p><b>BUG ID:</b> <a href="http://bugs.webkit.org/show_bug.cgi?id=8276">Bugzilla bug 8276</a> REGRESSION (NativeTextField): Pasting a Finder item into a text field results in a file: URL being pasted instead of just the file name
  8. <br><i>and</i><br> <b>BUG ID:</b> <a href="http://bugs.webkit.org/show_bug.cgi?id=8283">Bugzilla bug 8283</a> REGRESSION: File's path doesn't appear after dragging file into input field</p>
  9. <p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b><br>
  10. 1. Double-click <a href="resources/plain-text-paste.dmg">this disk image</a> in the Finder.<br>
  11. 2. Drag each item from the Finder window into the corresponding field below.<br>
  12. 3. Select item 5 in the Finder window and choose Copy &ldquo;5&rdquo; from the Finder&rsquo;s Edit menu.<br>
  13. 4. Back in Safari, click inside the &ldquo;Paste item 5 here&rdquo; field and choose Paste from the Edit menu.<br>
  14. 5. Eject the disk image.
  15. </p>
  16. <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b>
  17. The fields&rsquo; contents will match the Expected Contents.
  18. </p>
  19. <p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>
  20. The fields&rsquo; contents will NOT match the Expected Contents.
  21. </p>
  22. Plain text clipping
  23. <table cellspacing="0" cellpadding="5">
  24. <col><col style="background: #ffc;">
  25. <tr>
  26. <td></td>
  27. <td><b>Expected Contents</b></td>
  28. </tr>
  29. <tr>
  30. <td>Drag item 1 here: <input></td>
  31. <td>Plain text clipping</td>
  32. </tr>
  33. <tr>
  34. <td>Drag item 2 here: <input></td>
  35. <td>Styled text clipping</td>
  36. </tr>
  37. <tr>
  38. <td>Drag item 3 here: <input></td>
  39. <td><i>full path to 3.gif, starting with a / character</i></td>
  40. </tr>
  41. <tr>
  42. <td>Drag item 4 here: <input></td>
  43. <td><i>full path to 4.txt, starting with a / character</i></td>
  44. </tr>
  45. <tr>
  46. <td>Drag item 5 here: <input></td>
  47. <td>http://www.ibm.com/</td>
  48. </tr>
  49. <tr>
  50. <td>Paste item 5 here: <input></td>
  51. <td>5</td>
  52. </tr>
  53. </body>
  54. </html>