mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 07:45:30 +00:00
Bug 1523562 [wpt PR 15064] - Use 3 sec timeout for openSXGInIframeAndWaitForMessage(), a=testonly
Automatic update from web-platform-tests Use 3 sec timeout for openSXGInIframeAndWaitForMessage() According to the flakiness dashboard, loading SXG sometimes takes more than 2 sec in debug buld. https://test-results.appspot.com/dashboards/flakiness_dashboard.html#testType=webkit_layout_tests&tests=external%2Fwpt%2Fsigned-exchange So we should use the longer timeout. Bug: 924752 Change-Id: I38585d4a233ef2e5be2c074498d9fb40af2225bf Reviewed-on: https://chromium-review.googlesource.com/c/1436467 Reviewed-by: Kunihiko Sakamoto <ksakamoto@chromium.org> Commit-Queue: Tsuyoshi Horo <horo@chromium.org> Cr-Commit-Position: refs/heads/master@{#626012} -- wpt-commits: 07daa86c8415657193c4ed8c445ec4bf3263bb1b wpt-pr: 15064
This commit is contained in:
parent
160cc7df98
commit
f3b0ccf951
@ -1,10 +1,10 @@
|
||||
// Opens |url| in an iframe, establish a message channel with it, and waits for
|
||||
// a message from the frame content. Returns a promise that resolves with the
|
||||
// data of the message, or rejects on 2000ms timeout.
|
||||
// data of the message, or rejects on 3000ms timeout.
|
||||
function openSXGInIframeAndWaitForMessage(test_object, url, referrerPolicy) {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
// We can't catch the network error on iframe. So we use the timer.
|
||||
test_object.step_timeout(() => reject('timeout'), 2000);
|
||||
test_object.step_timeout(() => reject('timeout'), 3000);
|
||||
|
||||
const frame = await withIframe(url, 'sxg_iframe', referrerPolicy);
|
||||
const channel = new MessageChannel();
|
||||
|
Loading…
Reference in New Issue
Block a user