Changeset 244150 in webkit
- Timestamp:
- Apr 10, 2019 2:16:42 PM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r244147 r244150 1 2019-04-10 Youenn Fablet <youenn@apple.com> 2 3 Layout Test http/wpt/fetch/response-opaque-clone.html is sometimes timing out on iOS simulator 4 https://bugs.webkit.org/show_bug.cgi?id=194525 5 <rdar://problem/48012229> 6 7 Reviewed by Alex Christensen. 8 9 Test is no longer flaky on MacOS. 10 As per flakiness dashboard, it sometimes times out on iOS simulator. 11 It sometimes passes after running for 20 seconds. 12 Mark it as Slow and improve the test to output more sub-tests. 13 Removed unnecessary removal of cache since test runner will clear them at the end of the test. 14 15 * http/wpt/fetch/response-opaque-clone-expected.txt: 16 * http/wpt/fetch/response-opaque-clone.html: 17 * platform/ios-simulator-wk2/TestExpectations: 18 1 19 2019-04-10 Justin Fan <justin_fan@apple.com> 2 20 -
trunk/LayoutTests/http/wpt/fetch/response-opaque-clone-expected.txt
r227339 r244150 1 1 2 2 PASS Check opaque response can be cloned and cached correctly 3 PASS fetched response 4 PASS cloned response 5 PASS cached response 3 6 -
trunk/LayoutTests/http/wpt/fetch/response-opaque-clone.html
r240158 r244150 12 12 <script> 13 13 14 function testResponseOpacity(response, test , testName)14 function testResponseOpacity(response, testName) 15 15 { 16 assert_equals(response.type, "opaque", testName + " type"); 17 assert_equals(response.status, 0, testName + " status"); 18 assert_equals(response.statusText, "", testName + " statusText"); 19 assert_equals(response.url, "", testName + " url"); 20 assert_false(response.redirected, testName + " redirected"); 21 assert_true(response.headers.values().next().done, testName + " headers"); 22 assert_equals(response.body, null, testName + " opaque response body should be null"); 16 test(() => { 17 assert_equals(response.type, "opaque", testName + " type"); 18 assert_equals(response.status, 0, testName + " status"); 19 assert_equals(response.statusText, "", testName + " statusText"); 20 assert_equals(response.url, "", testName + " url"); 21 assert_false(response.redirected, testName + " redirected"); 22 assert_true(response.headers.values().next().done, testName + " headers"); 23 assert_equals(response.body, null, testName + " opaque response body should be null"); 24 }, testName); 23 25 } 24 promise_test(async function(test) { 26 27 promise_test(async function() { 25 28 var request = new Request(get_host_info().HTTP_REMOTE_ORIGIN, { mode: "no-cors" }); 26 29 var response = await fetch(request); 27 30 28 testResponseOpacity(response, test,"fetched response");31 testResponseOpacity(response, "fetched response"); 29 32 30 33 var clone = response.clone(); 31 34 32 testResponseOpacity(clone, test,"cloned response");35 testResponseOpacity(clone, "cloned response"); 33 36 var buffer = await clone.arrayBuffer(); 34 37 assert_equals(buffer.byteLength, 0, "cloned opaque response buffer should be null"); 35 38 36 39 // WK1 does not support Cache API yet. 37 if (!self.caches) 40 if (!self.caches) { 41 test(() => { 42 }, "cached response"); 38 43 return; 44 } 39 45 40 46 var cache = await self.caches.open("test"); … … 42 48 var cached = await cache.match(request.url); 43 49 44 testResponseOpacity(cached, test,"cached response")50 testResponseOpacity(cached, "cached response") 45 51 buffer = await cached.arrayBuffer(); 46 52 assert_equals(buffer.byteLength, 0, "cached opaque response buffer should be null"); 47 53 48 await self.caches.delete("test");49 54 }, "Check opaque response can be cloned and cached correctly"); 50 55 </script> -
trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations
r244047 r244150 79 79 80 80 webkit.org/b/196358 http/wpt/cache-storage/quota-third-party.https.html [ Pass Failure ] 81 http/wpt/fetch/response-opaque-clone.html [ Slow ] 81 82 82 83 webkit.org/b/196376 [ Debug ] storage/domstorage/localstorage/private-browsing-affects-storage.html [ Pass Failure ]
Note: See TracChangeset
for help on using the changeset viewer.