summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/plain-text-paste.html
blob: 89ef45141759604643340454ac23fc2f62ed17c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
</head>
<body>
<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
<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>

<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b><br>
1. Double-click <a href="resources/plain-text-paste.dmg">this disk image</a> in the Finder.<br>
2. Drag each item from the Finder window into the corresponding field below.<br>
3. Select item 5 in the Finder window and choose Copy &ldquo;5&rdquo; from the Finder&rsquo;s Edit menu.<br>
4. Back in Safari, click inside the &ldquo;Paste item 5 here&rdquo; field and choose Paste from the Edit menu.<br>
5. Eject the disk image.
</p>

<p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
The fields&rsquo; contents will match the Expected Contents.
</p>

<p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>  
The fields&rsquo; contents will NOT match the Expected Contents.
</p>
Plain text clipping
<table cellspacing="0" cellpadding="5">
    <col><col style="background: #ffc;">
    <tr>
        <td></td>
        <td><b>Expected Contents</b></td>
    </tr>
    <tr>
        <td>Drag item 1 here: <input></td>
        <td>Plain text clipping</td>
    </tr>
    <tr>
        <td>Drag item 2 here: <input></td>
        <td>Styled text clipping</td>
    </tr>
    <tr>
        <td>Drag item 3 here: <input></td>
        <td><i>full path to 3.gif, starting with a / character</i></td>
    </tr>
    <tr>
        <td>Drag item 4 here: <input></td>
        <td><i>full path to 4.txt, starting with a / character</i></td>
    </tr>
    <tr>
        <td>Drag item 5 here: <input></td>
        <td>http://www.ibm.com/</td>
    </tr>
    <tr>
        <td>Paste item 5 here: <input></td>
        <td>5</td>
    </tr>
</body>
</html>