| Index: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/duplicate-revalidation-reload.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/duplicate-revalidation-reload.html b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/duplicate-revalidation-reload.html
|
| index 8a5cd34a27df1fdd32df73cafb7e56fbdff88eca..fb7d6f6f9268b5f88ff7a570d57183454b896181 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/duplicate-revalidation-reload.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/duplicate-revalidation-reload.html
|
| @@ -8,17 +8,19 @@ window.jsTestIsAsync = true;
|
| var url = 'resources/get.txt';
|
| function get(xhr, async) {
|
| return new Promise(function(resolve, reject) {
|
| - xhr.onreadystatechange = function() {
|
| - if (xhr.readyState === xhr.DONE) {
|
| - if (xhr.status === 200) {
|
| - resolve(xhr.responseText);
|
| - } else {
|
| - reject(xhr.status);
|
| + setTimeout(function() {
|
| + xhr.onreadystatechange = function() {
|
| + if (xhr.readyState === xhr.DONE) {
|
| + if (xhr.status === 200) {
|
| + resolve(xhr.responseText);
|
| + } else {
|
| + reject(xhr.status);
|
| + }
|
| }
|
| - }
|
| - };
|
| - xhr.open('GET', url, async);
|
| - xhr.send();
|
| + };
|
| + xhr.open('GET', url, async);
|
| + xhr.send();
|
| + }, 0);
|
| });
|
| }
|
| var xhr1 = new XMLHttpRequest();
|
|
|