Changeset 237408 in webkit


Ignore:
Timestamp:
Oct 25, 2018 12:24:59 AM (5 years ago)
Author:
jiewen_tan@apple.com
Message:

[WPT] Update resource-timing WPT tests to use the right cross origin
https://bugs.webkit.org/show_bug.cgi?id=190554

Reviewed by Youenn Fablet.

LayoutTests/imported/w3c:

  • web-platform-tests/resource-timing/resource_TAO_cross_origin_redirect_chain-expected.txt:
  • web-platform-tests/resource-timing/resource_TAO_cross_origin_redirect_chain.html:
  • web-platform-tests/resource-timing/resource_timing_cross_origin_redirect_chain-expected.txt:
  • web-platform-tests/resource-timing/resource_timing_cross_origin_redirect_chain.html:

LayoutTests:

Location:
trunk/LayoutTests
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r237403 r237408  
     12018-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
    1102018-10-24  Tim Horton  <timothy_horton@apple.com>
    211
  • trunk/LayoutTests/TestExpectations

    r237402 r237408  
    359359webkit.org/b/189905 imported/w3c/web-platform-tests/resource-timing/resource_initiator_types.html [ Pass Failure ]
    360360webkit.org/b/189910 imported/w3c/web-platform-tests/resource-timing/resource_timing_store_and_clear_during_callback.html [ Pass Failure ]
     361webkit.org/b/190523 imported/w3c/web-platform-tests/resource-timing/resource_timing_cross_origin_redirect_chain.html [ Pass Failure ]
    361362
    362363# The follow two tests change their output each run
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r237347 r237408  
     12018-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
    1132018-10-22  Justin Michaud  <justin_michaud@apple.com>
    214
  • 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=1
    2 CONSOLE MESSAGE: line 26: TypeError: undefined is not an object (evaluating 'entry.redirectStart')
    31
    4 
    5 Harness Error (FAIL), message = TypeError: undefined is not an object (evaluating 'entry.redirectStart')
    62
    73PASS window.performance is defined
    84PASS window.performance.getEntriesByName is defined
    9 FAIL There should be one entry. assert_equals: There should be one entry. expected 1 but got 0
     5PASS There should be one entry.
     6PASS redirectStart > 0 in timing allowed cross-origin redirect.
     7PASS redirectStart == startTime in timing allowed cross-origin redirect.
     8PASS redirectEnd > redirectStart in timing allowed cross-origin redirect.
     9PASS fetchStart >= redirectEnd in timing allowed cross-origin redirect.
    1010
  • trunk/LayoutTests/imported/w3c/web-platform-tests/resource-timing/resource_TAO_cross_origin_redirect_chain.html

    r236402 r237408  
    88<script src="/resources/testharness.js"></script>
    99<script src="/resources/testharnessreport.js"></script>
     10<script src=/common/get-host-info.sub.js></script>
    1011<script src="resources/webperftestharness.js"></script>
    1112<script src="resources/webperftestharnessextension.js"></script>
     
    1415    setup({explicit_done: true});
    1516    test_namespace('getEntriesByName');
    16     const pageOrigin = document.location.host;
    17     const crossOrigin = 'www.' + pageOrigin;
    1817
    1918    function onload_test()
     
    3635<iframe id="frameContext" src="" style="width: 250px; height: 250px;"></iframe>
    3736<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;
    4140    destUrl += '&timing_allow=1';
    4241    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:8800
    2 CONSOLE MESSAGE: line 26: TypeError: undefined is not an object (evaluating 'entry.redirectStart')
    31
    4 
    5 Harness Error (FAIL), message = TypeError: undefined is not an object (evaluating 'entry.redirectStart')
    62
    73PASS window.performance is defined
    84PASS window.performance.getEntriesByName is defined
    9 FAIL There should be one entry. assert_equals: There should be one entry. expected 1 but got 0
     5PASS There should be one entry.
     6FAIL redirectStart == 0 in cross-origin redirect. assert_equals: redirectStart == 0 in cross-origin redirect. expected 0 but got 889
     7FAIL redirectEnd == 0 in cross-origin redirect. assert_equals: redirectEnd == 0 in cross-origin redirect. expected 0 but got 955.0000000000001
     8PASS fetchStart > 0 in cross-origin redirect.
     9FAIL startTime == fetchStart in cross-origin redirect. assert_equals: startTime == fetchStart in cross-origin redirect. expected 955.0000000000001 but got 889
    1010
  • trunk/LayoutTests/imported/w3c/web-platform-tests/resource-timing/resource_timing_cross_origin_redirect_chain.html

    r236402 r237408  
    88<script src="/resources/testharness.js"></script>
    99<script src="/resources/testharnessreport.js"></script>
     10<script src=/common/get-host-info.sub.js></script>
    1011<script src="resources/webperftestharness.js"></script>
    1112<script src="resources/webperftestharnessextension.js"></script>
     
    1415    setup({explicit_done: true});
    1516    test_namespace('getEntriesByName');
    16     const pageOrigin = document.location.host;
    17     const crossOrigin = 'www.' + pageOrigin;
    1817
    1918    function onload_test()
     
    3635<iframe id="frameContext" src="" style="width: 250px; height: 250px;"></iframe>
    3736<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;
    4140    const frameContext = document.getElementById('frameContext');
    4241    frameContext.onload = onload_test;
Note: See TracChangeset for help on using the changeset viewer.