Skip to content

Replace usage of setTimeout with step_timeout in XMLHttpRequest#4967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base:master
Choose a base branch
from

Conversation

gsnedders
Copy link
Member

@gsneddersgsnedders commented Feb 22, 2017

This is expected to help test stability on slow configurations, as the
timeouts will be multiplied by the timeout multiplier.

Split out from #1816.

This is expected to help test stability on slow configurations, as the timeouts will be multiplied by the timeout multiplier.
STALLED_REQUEST_URL = "resources/" + STALLED_REQUEST_URL;
set_timeout = step_timeout;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be test.step_timeout? Why is that not available in a worker?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ghost
Copy link

View the complete job log.

Firefox (nightly channel)

Testing web-platform-tests at revision 75d10aa
Using browser at version BuildID 20170221110300; SourceStamp d84beb192e57e26846c82d3df3599381f4663792
Starting 10 test iterations
All results were stable

All results

7 tests ran
/XMLHttpRequest/xmlhttprequest-timeout-aborted.html
SubtestResultsMessages
OK
Timeout test: No events should fire for an unsent, unaborted requestPASS
Timeout test: time to abort is -1, timeout set at 2000PASS
Timeout test: time to abort is 5000, timeout set at 2000PASS
/XMLHttpRequest/xmlhttprequest-timeout-abortedonmain.html
SubtestResultsMessages
OK
Timeout test: time to abort is 0, timeout set at 2000PASS
Timeout test: time to abort is 1000, timeout set at 2000PASS
/XMLHttpRequest/xmlhttprequest-timeout-overrides.html
SubtestResultsMessages
OK
Timeout test: timeout disabled after initially set, original timeout at 5000, reset at 2000 to 0PASS
Timeout test: timeout overrides load after a delay, original timeout at 5000, reset at 1000 to 2000PASS
Timeout test: timeout enabled after initially disabled, original timeout at 0, reset at 2000 to 50000PASS
/XMLHttpRequest/xmlhttprequest-timeout-overridesexpires.html
SubtestResultsMessages
OK
Timeout test: timeout set to expiring value after load fires, original timeout at 5000, reset at 4000 to 1000PASS
Timeout test: timeout set to expired value before load fires, original timeout at 5000, reset at 2000 to 1100PASS
Timeout test: timeout set to non-expiring value after timeout fires, original timeout at 1000, reset at 2000 to 500PASS
/XMLHttpRequest/xmlhttprequest-timeout-simple.html
SubtestResultsMessages
OK
Timeout test: no time out scheduled, load fires normally, timeout scheduled at 0PASS
Timeout test: load fires normally, timeout scheduled at 5000PASS
Timeout test: timeout hit before load, timeout scheduled at 2000PASS
/XMLHttpRequest/xmlhttprequest-timeout-synconmain.html
SubtestResultsMessages
OK
Timeout test: Synchronous XHR must not allow a timeout to be set - setting timeout must throwPASS
Timeout test: Synchronous XHR must not allow a timeout to be set - calling open() after timeout is set must throwPASS
/XMLHttpRequest/xmlhttprequest-timeout-twice.html
SubtestResultsMessages
OK
Timeout test: load fires normally with no timeout set, twice, original timeout at 0, reset at 2000 to 0PASS
Timeout test: load fires normally with same timeout set twice, original timeout at 5000, reset at 2000 to 5000PASS
Timeout test: timeout fires normally with same timeout set twice, original timeout at 2000, reset at 1000 to 2000PASS
@ghost
Copy link

View the complete job log.

Chrome (unstable channel)

Testing web-platform-tests at revision 75d10aa
Using browser at version 58.0.3013.3 dev
Starting 10 test iterations
All results were stable

All results

7 tests ran
/XMLHttpRequest/xmlhttprequest-timeout-aborted.html
SubtestResultsMessages
OK
Timeout test: No events should fire for an unsent, unaborted requestPASS
Timeout test: time to abort is -1, timeout set at 2000PASS
Timeout test: time to abort is 5000, timeout set at 2000PASS
/XMLHttpRequest/xmlhttprequest-timeout-abortedonmain.html
SubtestResultsMessages
OK
Timeout test: time to abort is 0, timeout set at 2000PASS
Timeout test: time to abort is 1000, timeout set at 2000PASS
/XMLHttpRequest/xmlhttprequest-timeout-overrides.html
SubtestResultsMessages
OK
Timeout test: timeout disabled after initially set, original timeout at 5000, reset at 2000 to 0PASS
Timeout test: timeout overrides load after a delay, original timeout at 5000, reset at 1000 to 2000PASS
Timeout test: timeout enabled after initially disabled, original timeout at 0, reset at 2000 to 50000PASS
/XMLHttpRequest/xmlhttprequest-timeout-overridesexpires.html
SubtestResultsMessages
OK
Timeout test: timeout set to expiring value after load fires, original timeout at 5000, reset at 4000 to 1000PASS
Timeout test: timeout set to expired value before load fires, original timeout at 5000, reset at 2000 to 1100PASS
Timeout test: timeout set to non-expiring value after timeout fires, original timeout at 1000, reset at 2000 to 500PASS
/XMLHttpRequest/xmlhttprequest-timeout-simple.html
SubtestResultsMessages
OK
Timeout test: no time out scheduled, load fires normally, timeout scheduled at 0PASS
Timeout test: load fires normally, timeout scheduled at 5000PASS
Timeout test: timeout hit before load, timeout scheduled at 2000PASS
/XMLHttpRequest/xmlhttprequest-timeout-synconmain.html
SubtestResultsMessages
OK
Timeout test: Synchronous XHR must not allow a timeout to be set - setting timeout must throwPASS
Timeout test: Synchronous XHR must not allow a timeout to be set - calling open() after timeout is set must throwPASS
/XMLHttpRequest/xmlhttprequest-timeout-twice.html
SubtestResultsMessages
OK
Timeout test: load fires normally with no timeout set, twice, original timeout at 0, reset at 2000 to 0PASS
Timeout test: load fires normally with same timeout set twice, original timeout at 5000, reset at 2000 to 5000PASS
Timeout test: timeout fires normally with same timeout set twice, original timeout at 2000, reset at 1000 to 2000PASS
@annevk
Copy link
Member

I guess I'm somewhat okay with landing this given that it doesn't change the results, but it still seems a little weird to only fix it outside workers.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 participants
@gsnedders@wpt-pr-bot@annevk@jgraham
close