diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-03-05 00:34:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-05 00:34:20 +0100 |
commit | b9b17570065273fe3e023a8c8633188379ad6603 (patch) | |
tree | 702d65c19aa860236fe7b88a643b03061a9d6062 /devtools/client/netmonitor/test/browser_net_curl-utils.js | |
parent | 05b5c72bb4b3807c463befc46cdea65c56e3aa02 (diff) | |
parent | 25b78dfa6ed9da1f918d731ae8da9469d7b65a26 (diff) | |
download | UXP-b9b17570065273fe3e023a8c8633188379ad6603.tar UXP-b9b17570065273fe3e023a8c8633188379ad6603.tar.gz UXP-b9b17570065273fe3e023a8c8633188379ad6603.tar.lz UXP-b9b17570065273fe3e023a8c8633188379ad6603.tar.xz UXP-b9b17570065273fe3e023a8c8633188379ad6603.zip |
Merge pull request #46 from janekptacijarabaci/devtools_network_curl_1
Copy as cURL (PATCH)
Diffstat (limited to 'devtools/client/netmonitor/test/browser_net_curl-utils.js')
-rw-r--r-- | devtools/client/netmonitor/test/browser_net_curl-utils.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/devtools/client/netmonitor/test/browser_net_curl-utils.js b/devtools/client/netmonitor/test/browser_net_curl-utils.js index 0d35c6141..afac78cfc 100644 --- a/devtools/client/netmonitor/test/browser_net_curl-utils.js +++ b/devtools/client/netmonitor/test/browser_net_curl-utils.js @@ -18,7 +18,7 @@ add_task(function* () { RequestsMenu.lazyUpdate = false; - let wait = waitForNetworkEvents(monitor, 1, 3); + let wait = waitForNetworkEvents(monitor, 1, 4); yield ContentTask.spawn(tab.linkedBrowser, SIMPLE_SJS, function* (url) { content.wrappedJSObject.performRequests(url); }); @@ -27,8 +27,9 @@ add_task(function* () { let requests = { get: RequestsMenu.getItemAtIndex(0), post: RequestsMenu.getItemAtIndex(1), - multipart: RequestsMenu.getItemAtIndex(2), - multipartForm: RequestsMenu.getItemAtIndex(3) + patch: RequestsMenu.getItemAtIndex(2), + multipart: RequestsMenu.getItemAtIndex(3), + multipartForm: RequestsMenu.getItemAtIndex(4) }; let data = yield createCurlData(requests.get.attachment, gNetwork); @@ -40,6 +41,10 @@ add_task(function* () { testWriteEmptyPostDataTextParams(data); testDataArgumentOnGeneratedCommand(data); + data = yield createCurlData(requests.patch.attachment, gNetwork); + testWritePostDataTextParams(data); + testDataArgumentOnGeneratedCommand(data); + data = yield createCurlData(requests.multipart.attachment, gNetwork); testIsMultipartRequest(data); testGetMultipartBoundary(data); |