Chromium Code Reviews| Index: LayoutTests/http/tests/xmlhttprequest/resources/post-formdata.js |
| diff --git a/LayoutTests/http/tests/xmlhttprequest/post-formdata.html b/LayoutTests/http/tests/xmlhttprequest/resources/post-formdata.js |
| similarity index 96% |
| copy from LayoutTests/http/tests/xmlhttprequest/post-formdata.html |
| copy to LayoutTests/http/tests/xmlhttprequest/resources/post-formdata.js |
| index afc52a0a3e86c2302ba73104bd8aa26ad0c54818..6b7f0d183e701906274617829673f5abc7ca0534 100644 |
| --- a/LayoutTests/http/tests/xmlhttprequest/post-formdata.html |
| +++ b/LayoutTests/http/tests/xmlhttprequest/resources/post-formdata.js |
| @@ -1,7 +1,3 @@ |
| -<!DOCTYPE html> |
| - |
| -<script src="/js-test-resources/js-test.js"></script> |
| -<script> |
| description("Test verifies that FormData is sent correctly when using " + |
| "<a href='http://www.w3.org/TR/XMLHttpRequest/#the-send-method'>XMLHttpRequest asynchronously.</a>"); |
| @@ -59,7 +55,11 @@ var xhrFormDataTestCases = [{ |
| var xhr; |
| var expectedMimeType; |
| -window.jsTestIsAsync = true; |
| + |
| +if (this.self) |
|
arv (Not doing code reviews)
2014/04/07 21:16:38
This is always true.
window === self
window === t
|
| + self.jsTestIsAsync = true; |
| +else |
| + window.jsTestIsAsync = true; |
| var asyncTestCase = 0; |
| function runNextAsyncTest() { |
| @@ -106,4 +106,3 @@ function runAsyncTests() { |
| } |
| runAsyncTests(); |
| -</script> |