Bug 1501158 [wpt PR 13669] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=190554, a=testonly

Automatic update from web-platform-testsWebKit export of https://bugs.webkit.org/show_bug.cgi?id=190554

--
Merge pull request #13669 from alanwaketan/wpt-export-for-webkit-190554

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=190554
--

wpt-commits: d1ae1b3b430972f191e4294d9b40eca78ecdd845, 17b2f79bcdfda6f101435a961246edc7369a6652
wpt-pr: 13669
This commit is contained in:
Jiewen Tan 2018-11-09 15:46:33 +00:00 committed by moz-wptsync-bot
parent f1d6596a26
commit ca95bdbd8e
2 changed files with 8 additions and 10 deletions

View File

@ -7,14 +7,13 @@
<link rel="help" href="http://www.w3.org/TR/resource-timing/#performanceresourcetiming"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src=/common/get-host-info.sub.js></script>
<script src="resources/webperftestharness.js"></script>
<script src="resources/webperftestharnessextension.js"></script>
<script>
setup({explicit_done: true});
test_namespace('getEntriesByName');
const pageOrigin = document.location.host;
const crossOrigin = 'www.' + pageOrigin;
function onload_test()
{
@ -35,9 +34,9 @@
<body>
<iframe id="frameContext" src="" style="width: 250px; height: 250px;"></iframe>
<script>
let destUrl = 'http://' + crossOrigin + '/resource-timing/resources/multi_redirect.py?';
destUrl += 'page_origin=' + 'http://' + pageOrigin;
destUrl += '&cross_origin=' + 'http://' + crossOrigin;
let destUrl = get_host_info().HTTP_REMOTE_ORIGIN + '/resource-timing/resources/multi_redirect.py?';
destUrl += 'page_origin=' + 'http://' + document.location.host;
destUrl += '&cross_origin=' + get_host_info().HTTP_REMOTE_ORIGIN;
destUrl += '&timing_allow=1';
const frameContext = document.getElementById('frameContext');
frameContext.onload = onload_test;

View File

@ -7,14 +7,13 @@
<link rel="help" href="http://www.w3.org/TR/resource-timing/#performanceresourcetiming"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src=/common/get-host-info.sub.js></script>
<script src="resources/webperftestharness.js"></script>
<script src="resources/webperftestharnessextension.js"></script>
<script>
setup({explicit_done: true});
test_namespace('getEntriesByName');
const pageOrigin = document.location.host;
const crossOrigin = 'www.' + pageOrigin;
function onload_test()
{
@ -35,9 +34,9 @@
<body>
<iframe id="frameContext" src="" style="width: 250px; height: 250px;"></iframe>
<script>
let destUrl = 'http://' + crossOrigin + '/resource-timing/resources/multi_redirect.py?';
destUrl += 'page_origin=' + 'http://' + pageOrigin;
destUrl += '&cross_origin=' + 'http://' + crossOrigin;
let destUrl = get_host_info().HTTP_REMOTE_ORIGIN + '/resource-timing/resources/multi_redirect.py?';
destUrl += 'page_origin=' + 'http://' + document.location.host;
destUrl += '&cross_origin=' + get_host_info().HTTP_REMOTE_ORIGIN;
const frameContext = document.getElementById('frameContext');
frameContext.onload = onload_test;
frameContext.src = destUrl;