Changeset 237408 in webkit
- Timestamp:
- Oct 25, 2018 12:24:59 AM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r237403 r237408 1 2018-10-25 Jiewen Tan <jiewen_tan@apple.com> 2 3 [WPT] Update resource-timing WPT tests to use the right cross origin 4 https://bugs.webkit.org/show_bug.cgi?id=190554 5 6 Reviewed by Youenn Fablet. 7 8 * TestExpectations: 9 1 10 2018-10-24 Tim Horton <timothy_horton@apple.com> 2 11 -
trunk/LayoutTests/TestExpectations
r237402 r237408 359 359 webkit.org/b/189905 imported/w3c/web-platform-tests/resource-timing/resource_initiator_types.html [ Pass Failure ] 360 360 webkit.org/b/189910 imported/w3c/web-platform-tests/resource-timing/resource_timing_store_and_clear_during_callback.html [ Pass Failure ] 361 webkit.org/b/190523 imported/w3c/web-platform-tests/resource-timing/resource_timing_cross_origin_redirect_chain.html [ Pass Failure ] 361 362 362 363 # The follow two tests change their output each run -
trunk/LayoutTests/imported/w3c/ChangeLog
r237347 r237408 1 2018-10-25 Jiewen Tan <jiewen_tan@apple.com> 2 3 [WPT] Update resource-timing WPT tests to use the right cross origin 4 https://bugs.webkit.org/show_bug.cgi?id=190554 5 6 Reviewed by Youenn Fablet. 7 8 * web-platform-tests/resource-timing/resource_TAO_cross_origin_redirect_chain-expected.txt: 9 * web-platform-tests/resource-timing/resource_TAO_cross_origin_redirect_chain.html: 10 * web-platform-tests/resource-timing/resource_timing_cross_origin_redirect_chain-expected.txt: 11 * web-platform-tests/resource-timing/resource_timing_cross_origin_redirect_chain.html: 12 1 13 2018-10-22 Justin Michaud <justin_michaud@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/resource-timing/resource_TAO_cross_origin_redirect_chain-expected.txt
r236402 r237408 1 Blocked access to external URL http://www.localhost:8800/resource-timing/resources/multi_redirect.py?page_origin=http://localhost:8800&cross_origin=http://www.localhost:8800&timing_allow=12 CONSOLE MESSAGE: line 26: TypeError: undefined is not an object (evaluating 'entry.redirectStart')3 1 4 5 Harness Error (FAIL), message = TypeError: undefined is not an object (evaluating 'entry.redirectStart')6 2 7 3 PASS window.performance is defined 8 4 PASS window.performance.getEntriesByName is defined 9 FAIL There should be one entry. assert_equals: There should be one entry. expected 1 but got 0 5 PASS There should be one entry. 6 PASS redirectStart > 0 in timing allowed cross-origin redirect. 7 PASS redirectStart == startTime in timing allowed cross-origin redirect. 8 PASS redirectEnd > redirectStart in timing allowed cross-origin redirect. 9 PASS fetchStart >= redirectEnd in timing allowed cross-origin redirect. 10 10 -
trunk/LayoutTests/imported/w3c/web-platform-tests/resource-timing/resource_TAO_cross_origin_redirect_chain.html
r236402 r237408 8 8 <script src="/resources/testharness.js"></script> 9 9 <script src="/resources/testharnessreport.js"></script> 10 <script src=/common/get-host-info.sub.js></script> 10 11 <script src="resources/webperftestharness.js"></script> 11 12 <script src="resources/webperftestharnessextension.js"></script> … … 14 15 setup({explicit_done: true}); 15 16 test_namespace('getEntriesByName'); 16 const pageOrigin = document.location.host;17 const crossOrigin = 'www.' + pageOrigin;18 17 19 18 function onload_test() … … 36 35 <iframe id="frameContext" src="" style="width: 250px; height: 250px;"></iframe> 37 36 <script> 38 let destUrl = 'http://' + crossOrigin+ '/resource-timing/resources/multi_redirect.py?';39 destUrl += 'page_origin=' + 'http://' + pageOrigin;40 destUrl += '&cross_origin=' + 'http://' + crossOrigin;37 let destUrl = get_host_info().HTTP_REMOTE_ORIGIN + '/resource-timing/resources/multi_redirect.py?'; 38 destUrl += 'page_origin=' + 'http://' + document.location.host; 39 destUrl += '&cross_origin=' + get_host_info().HTTP_REMOTE_ORIGIN; 41 40 destUrl += '&timing_allow=1'; 42 41 const frameContext = document.getElementById('frameContext'); -
trunk/LayoutTests/imported/w3c/web-platform-tests/resource-timing/resource_timing_cross_origin_redirect_chain-expected.txt
r236402 r237408 1 Blocked access to external URL http://www.localhost:8800/resource-timing/resources/multi_redirect.py?page_origin=http://localhost:8800&cross_origin=http://www.localhost:88002 CONSOLE MESSAGE: line 26: TypeError: undefined is not an object (evaluating 'entry.redirectStart')3 1 4 5 Harness Error (FAIL), message = TypeError: undefined is not an object (evaluating 'entry.redirectStart')6 2 7 3 PASS window.performance is defined 8 4 PASS window.performance.getEntriesByName is defined 9 FAIL There should be one entry. assert_equals: There should be one entry. expected 1 but got 0 5 PASS There should be one entry. 6 FAIL redirectStart == 0 in cross-origin redirect. assert_equals: redirectStart == 0 in cross-origin redirect. expected 0 but got 889 7 FAIL redirectEnd == 0 in cross-origin redirect. assert_equals: redirectEnd == 0 in cross-origin redirect. expected 0 but got 955.0000000000001 8 PASS fetchStart > 0 in cross-origin redirect. 9 FAIL startTime == fetchStart in cross-origin redirect. assert_equals: startTime == fetchStart in cross-origin redirect. expected 955.0000000000001 but got 889 10 10 -
trunk/LayoutTests/imported/w3c/web-platform-tests/resource-timing/resource_timing_cross_origin_redirect_chain.html
r236402 r237408 8 8 <script src="/resources/testharness.js"></script> 9 9 <script src="/resources/testharnessreport.js"></script> 10 <script src=/common/get-host-info.sub.js></script> 10 11 <script src="resources/webperftestharness.js"></script> 11 12 <script src="resources/webperftestharnessextension.js"></script> … … 14 15 setup({explicit_done: true}); 15 16 test_namespace('getEntriesByName'); 16 const pageOrigin = document.location.host;17 const crossOrigin = 'www.' + pageOrigin;18 17 19 18 function onload_test() … … 36 35 <iframe id="frameContext" src="" style="width: 250px; height: 250px;"></iframe> 37 36 <script> 38 let destUrl = 'http://' + crossOrigin+ '/resource-timing/resources/multi_redirect.py?';39 destUrl += 'page_origin=' + 'http://' + pageOrigin;40 destUrl += '&cross_origin=' + 'http://' + crossOrigin;37 let destUrl = get_host_info().HTTP_REMOTE_ORIGIN + '/resource-timing/resources/multi_redirect.py?'; 38 destUrl += 'page_origin=' + 'http://' + document.location.host; 39 destUrl += '&cross_origin=' + get_host_info().HTTP_REMOTE_ORIGIN; 41 40 const frameContext = document.getElementById('frameContext'); 42 41 frameContext.onload = onload_test;
Note: See TracChangeset
for help on using the changeset viewer.