Title: [148500] trunk/LayoutTests
Revision
148500
Author
[email protected]
Date
2013-04-16 01:15:34 -0700 (Tue, 16 Apr 2013)

Log Message

Web Inspector: [Network] Cover the type of preflight xhr.
https://bugs.webkit.org/show_bug.cgi?id=113471.

Patch by Pan Deng <[email protected]> on 2013-04-16
Reviewed by Vsevolod Vlasov.

Add the Network resource type test to make sure the xhr-preflight is "xhr".

* http/tests/inspector/network-preflight-options-expected.txt:
* http/tests/inspector/network-preflight-options.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (148499 => 148500)


--- trunk/LayoutTests/ChangeLog	2013-04-16 07:55:15 UTC (rev 148499)
+++ trunk/LayoutTests/ChangeLog	2013-04-16 08:15:34 UTC (rev 148500)
@@ -1,3 +1,15 @@
+2013-04-16  Pan Deng  <[email protected]>
+
+        Web Inspector: [Network] Cover the type of preflight xhr.
+        https://bugs.webkit.org/show_bug.cgi?id=113471.
+
+        Reviewed by Vsevolod Vlasov.
+
+        Add the Network resource type test to make sure the xhr-preflight is "xhr".
+
+        * http/tests/inspector/network-preflight-options-expected.txt:
+        * http/tests/inspector/network-preflight-options.html:
+
 2013-04-16  Ádám Kallai  <[email protected]>
 
         [Qt] Unreviewed gardening.

Modified: trunk/LayoutTests/http/tests/inspector/network-preflight-options-expected.txt (148499 => 148500)


--- trunk/LayoutTests/http/tests/inspector/network-preflight-options-expected.txt	2013-04-16 07:55:15 UTC (rev 148499)
+++ trunk/LayoutTests/http/tests/inspector/network-preflight-options-expected.txt	2013-04-16 08:15:34 UTC (rev 148500)
@@ -5,12 +5,12 @@
 Tests that preflight OPTIONS requests appear in Network resources
 
 Bug 63712
-0:POST http://localhost:8000/inspector/resources/cors-target.php?id=0&deny=yes
-1:OPTIONS http://localhost:8000/inspector/resources/cors-target.php?id=1&deny=yes
-2:OPTIONS http://localhost:8000/inspector/resources/cors-target.php?id=2
-2:POST http://localhost:8000/inspector/resources/cors-target.php?id=2
-3:POST http://localhost:8000/inspector/resources/cors-target.php?id=3&deny=yes
-4:OPTIONS http://localhost:8000/inspector/resources/cors-target.php?id=4&deny=yes
-5:OPTIONS http://localhost:8000/inspector/resources/cors-target.php?id=5
-5:POST http://localhost:8000/inspector/resources/cors-target.php?id=5
+0 xhr:POST http://localhost:8000/inspector/resources/cors-target.php?id=0&deny=yes
+1 xhr:OPTIONS http://localhost:8000/inspector/resources/cors-target.php?id=1&deny=yes
+2 xhr:OPTIONS http://localhost:8000/inspector/resources/cors-target.php?id=2
+2 xhr:POST http://localhost:8000/inspector/resources/cors-target.php?id=2
+3 other:POST http://localhost:8000/inspector/resources/cors-target.php?id=3&deny=yes
+4 xhr:OPTIONS http://localhost:8000/inspector/resources/cors-target.php?id=4&deny=yes
+5 xhr:OPTIONS http://localhost:8000/inspector/resources/cors-target.php?id=5
+5 xhr:POST http://localhost:8000/inspector/resources/cors-target.php?id=5
 

Modified: trunk/LayoutTests/http/tests/inspector/network-preflight-options.html (148499 => 148500)


--- trunk/LayoutTests/http/tests/inspector/network-preflight-options.html	2013-04-16 07:55:15 UTC (rev 148499)
+++ trunk/LayoutTests/http/tests/inspector/network-preflight-options.html	2013-04-16 08:15:34 UTC (rev 148500)
@@ -68,7 +68,7 @@
         var request = event.data;
         var idMatch = /\?id=([0-9]*)&/.exec(request.url);
         var requestId = idMatch[1];
-        var requestMessage = requestId + ":" + request.requestMethod + " " + request.url.replace(/[&?]date=\d+/, "");
+        var requestMessage = requestId + " " + request.type + ":" + request.requestMethod + " " + request.url.replace(/[&?]date=\d+/, "");
         requestMessages.push(requestMessage);
         if (request.requestMethod === "POST" && ++postRequestsCount === 4) {
             requestMessages.sort();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to