Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / inspector / duplicate-resource-urls.html
blob7a9be7edeae2d9c99a40ef22f291f3ae0e4f9e3e
1 <html>
2 <head>
3 <title>Tests for Bug 30079</title>
4 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
5 </head>
7 <body>
8 <p>Tests for
9 <ul>
10 <li><p><a href="https://bugs.webkit.org/show_bug.cgi?id=30079">Bug 30079: unselectable resources in resource panel</a>
11 </ul>
13 <p>To test, open the Inspector on this page, go to the Resources panel.
15 <p>First off, you should be able to actually select each "abc" resource to see
16 the HTTP info / content. Bug 30079 didn't allow you to select all of these.
18 <p>For each of the "abc" resources open the <b>HTTP Information</b> and
19 <b>Request Payload</b> tree elements above the content. One of the resources
20 will not have a <b>Request Payload</b>.
22 <p>There should be one each of the following resources:
24 <ul>
25 <li><p>One with a Request Method: GET and no Request Payload
26 <li><p>One with a Request Method: POST and Request Payload of "123"
27 <li><p>One with a Request Method: POST and Request Payload of "456"
28 </ul>
30 <p>Another change made by this bug was to change the way the drag/drop of
31 the resource itself worked. The previous method of handling drag/drop of
32 the resource was actually causing the unselectability. So the drag/drop
33 of the resources needs to be tested as well.
35 <ul>
36 <li><p>Select one of the resources.
37 <li><p>Drag it to an application that can accept text or a link
38 <li><p>The application should provide some feedback indicating it will accept
39 the drop, but may not
40 <li>Drop, and the URL for the resource should be rendered appropriately.
42 <script>
44 var xhr;
46 xhr = new XMLHttpRequest();
47 xhr.open("POST", "http://example.org/abc");
48 xhr.send("123");
50 xhr = new XMLHttpRequest();
51 xhr.open("POST", "http://example.org/abc");
52 xhr.send("456");
54 xhr = new XMLHttpRequest();
55 xhr.open("GET", "http://example.org/abc");
56 xhr.send();
58 </script>
60 </body>
61 </html>