Changeset 90367 in webkit
- Timestamp:
- Jul 4, 2011 8:53:03 AM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r90366 r90367 1 2011-07-04 Vsevolod Vlasov <vsevik@chromium.org> 2 3 Web Inspector: network-preflight-options.html test is flaky. 4 https://bugs.webkit.org/show_bug.cgi?id=63904 5 6 Unreviewed test fix. 7 8 * http/tests/inspector/network-preflight-options-expected.txt: 9 * http/tests/inspector/network-preflight-options.html: 10 * platform/qt/Skipped: 11 1 12 2011-07-04 Andras Becsi <abecsi@webkit.org> 2 13 -
trunk/LayoutTests/http/tests/inspector/network-preflight-options-expected.txt
r90340 r90367 5 5 Tests that preflight OPTIONS requests appear in Network resources 6 6 7 Bug 63712 7 8 POST http://localhost:8000/inspector/resources/cors-target.php?deny=yes 8 9 OPTIONS http://localhost:8000/inspector/resources/cors-target.php?deny=yes -
trunk/LayoutTests/http/tests/inspector/network-preflight-options.html
r90340 r90367 3 3 <script src="inspector-test.js"></script> 4 4 <script type="text/javascript"> 5 6 function sendXHR(url, forcePreflight, async) 5 function sendXHR(url, forcePreflight, async, callback) 7 6 { 8 7 var xhr = new XMLHttpRequest(); 8 9 xhr.onreadystatechange = function() 10 { 11 if (xhr.readyState === XMLHttpRequest.DONE) { 12 if (typeof(callback) === "function") 13 callback(); 14 } 15 }; 16 9 17 xhr.open("POST", url, async); 10 18 xhr.setRequestHeader("Content-Type", forcePreflight ? "application/xml" : "text/plain"); … … 15 23 } 16 24 25 var targetURL = "http://localhost:8000/inspector/resources/cors-target.php"; 17 26 function doCrossOriginXHR() 18 27 { 19 var targetURL = "http://localhost:8000/inspector/resources/cors-target.php";20 21 28 // Failed POSTs with no preflight check should result in a POST request being logged 22 29 sendXHR(targetURL + "?deny=yes", false, false); … … 29 36 // And now send the same requests asynchronously 30 37 // Add redundant async parameter to ensure this request differs from the one above. 31 sendXHR(targetURL + "?deny=yes", false, true); 32 sendXHR(targetURL + "?deny=yes", true, true); 38 sendXHR(targetURL + "?deny=yes", false, true, step2); 39 } 40 41 function step2() 42 { 43 sendXHR(targetURL + "?deny=yes", true, true, step3); 44 } 45 46 function step3() 47 { 33 48 sendXHR(targetURL + "?async=yes&date=" + Date.now(), true, true); 34 49 } … … 40 55 { 41 56 var resource = event.data; 42 InspectorTest.addResult(resource.requestMethod + " " + 43 if (resource.requestMethod === "POST" && ++postRequestsCount == 4)57 InspectorTest.addResult(resource.requestMethod + " " + resource.url.replace(/[&?]date=\d+/, "")); 58 if (resource.requestMethod === "POST" && ++postRequestsCount === 4) 44 59 InspectorTest.completeTest(); 45 60 } … … 47 62 InspectorTest.evaluateInPage("doCrossOriginXHR();"); 48 63 } 49 50 64 </script> 51 65 </head> 52 66 <body onload="runTest()"> 53 67 <p>Tests that preflight OPTIONS requests appear in Network resources</p> 68 <a href="https://bugs.webkit.org/show_bug.cgi?id=63712">Bug 63712</a> 54 69 </body> 55 70 </html> -
trunk/LayoutTests/platform/qt/Skipped
r90366 r90367 482 482 483 483 transitions/change-values-during-transition.html 484 485 # [Qt] http/tests/inspector/network-preflight-options.html fails frequently486 # https://bugs.webkit.org/show_bug.cgi?id=63910487 http/tests/inspector/network-preflight-options.html488 484 489 485 # http/tests/inspector/resource-har-conversion.html is failing on the release bot after r63191
Note: See TracChangeset
for help on using the changeset viewer.