Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/cross-origin-preflight-timeout.html

Issue 2755483006: Stop having separate timeout timers for the preflight and the actual request (Closed)
Patch Set: fix Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/resources/access-control-allow-with-delay.php » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5
6 <script>
7 async_test(t => {
8 const url = 'http://localhost:8000/xmlhttprequest/resources/access-control-a llow-with-delay.php';
9 const xhr = new XMLHttpRequest();
10 xhr.open('GET', url);
11 xhr.setRequestHeader('foo', 'bar');
12 xhr.timeout = 1500;
13 xhr.ontimeout = t.step_func_done(() => {
14 assert_equals(xhr.readyState, 4);
15 });
16 xhr.onload = t.unreached_func('load event fired');
17 xhr.send();
18 }, 'CORS preflight and the actual request should use the same timer');
19 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/resources/access-control-allow-with-delay.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698