Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Searching 166 files for "performRequests"
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_accessibility-01.js:
- 33 let wait = waitForNetworkEvents(monitor, 2);
- 34 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 35: content.wrappedJSObject.performRequests(2);
- 36 });
- 37 yield wait;
- ..
- 56 wait = waitForNetworkEvents(monitor, 18);
- 57 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 58: content.wrappedJSObject.performRequests(18);
- 59 });
- 60 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_accessibility-02.js:
- 33 let wait = waitForNetworkEvents(monitor, 2);
- 34 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 35: content.wrappedJSObject.performRequests(2);
- 36 });
- 37 yield wait;
- ..
- 58 wait = waitForNetworkEvents(monitor, 18);
- 59 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 60: content.wrappedJSObject.performRequests(18);
- 61 });
- 62 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_api-calls.js:
- 32 let wait = waitForNetworkEvents(monitor, 5);
- 33 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 34: content.wrappedJSObject.performRequests();
- 35 });
- 36 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_background_update.js:
- 18
- 19 // Execute two requests
- 20: await performRequests(monitor, tab, 2);
- 21
- 22 // Wait for two logs
- ..
- 30
- 31 // Execute another two requests
- 32: await performRequests(monitor, tab, 2);
- 33
- 34 // The number of rendered requests should be the same since
- ..
- 48 });
- 49
- 50: async function performRequests(monitor, tab, count) {
- 51 let wait = waitForNetworkEvents(monitor, count);
- 52 await ContentTask.spawn(tab.linkedBrowser, count, requestCount => {
- 53: content.wrappedJSObject.performRequests(requestCount);
- 54 });
- 55 await wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_brotli.js:
- 28 let wait = waitForNetworkEvents(monitor, BROTLI_REQUESTS);
- 29 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 30: content.wrappedJSObject.performRequests();
- 31 });
- 32 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_cached-status.js:
- 90
- 91 info("Performing requests #1...");
- 92: yield performRequestsAndWait();
- 93
- 94 info("Performing requests #2...");
- 95: yield performRequestsAndWait();
- 96
- 97 let index = 0;
- ..
- 118 yield teardown(monitor);
- 119
- 120: function* performRequestsAndWait() {
- 121 let wait = waitForNetworkEvents(monitor, 3);
- 122 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_cause_redirect.js:
- 29
- 30 let wait = waitForNetworkEvents(monitor, EXPECTED_REQUESTS.length);
- 31: yield performRequests(2, HSTS_SJS);
- 32 yield wait;
- 33
- ..
- 58 // Send a request to reset the HSTS policy to state before the test
- 59 wait = waitForNetworkEvents(monitor, 1);
- 60: yield performRequests(1, HSTS_SJS + "?reset");
- 61 yield wait;
- 62
- 63 yield teardown(monitor);
- 64
- 65: function performRequests(count, url) {
- 66 return ContentTask.spawn(tab.linkedBrowser, { count, url }, function* (args) {
- 67: content.wrappedJSObject.performRequests(args.count, args.url);
- 68 });
- 69 }
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_complex-params.js:
- 21 let wait = waitForNetworkEvents(monitor, 7);
- 22 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 23: content.wrappedJSObject.performRequests();
- 24 });
- 25 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_content-type.js:
- 24 let wait = waitForNetworkEvents(monitor, CONTENT_TYPE_WITHOUT_CACHE_REQUESTS);
- 25 yield ContentTask.spawn(tab.linkedBrowser, {}, function () {
- 26: content.wrappedJSObject.performRequests();
- 27 });
- 28 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_copy_image_as_data_uri.js:
- 16 let wait = waitForNetworkEvents(monitor, CONTENT_TYPE_WITHOUT_CACHE_REQUESTS);
- 17 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 18: content.wrappedJSObject.performRequests();
- 19 });
- 20 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_copy_params.js:
- 19 let wait = waitForNetworkEvents(monitor, 7);
- 20 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 21: content.wrappedJSObject.performRequests();
- 22 });
- 23 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_copy_response.js:
- 18 let wait = waitForNetworkEvents(monitor, CONTENT_TYPE_WITHOUT_CACHE_REQUESTS);
- 19 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 20: content.wrappedJSObject.performRequests();
- 21 });
- 22 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_copy_url.js:
- 19 let wait = waitForNetworkEvents(monitor, 1);
- 20 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 21: content.wrappedJSObject.performRequests(1);
- 22 });
- 23 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_cors_requests.js:
- 25 let requestUrl = "http://test1.example.com" + CORS_SJS_PATH;
- 26 yield ContentTask.spawn(tab.linkedBrowser, requestUrl, function* (url) {
- 27: content.wrappedJSObject.performRequests(url, "triggering/preflight", "post-data");
- 28 });
- 29
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_curl-utils.js:
- 28 let wait = waitForNetworkEvents(monitor, 5);
- 29 yield ContentTask.spawn(tab.linkedBrowser, SIMPLE_SJS, function* (url) {
- 30: content.wrappedJSObject.performRequests(url);
- 31 });
- 32 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_cyrillic-01.js:
- 23 let wait = waitForNetworkEvents(monitor, 1);
- 24 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 25: content.wrappedJSObject.performRequests();
- 26 });
- 27 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_filter-01.js:
- 149 let wait = waitForNetworkEvents(monitor, 9);
- 150 loadCommonFrameScript();
- 151: yield performRequestsInContent(REQUESTS_WITH_MEDIA_AND_FLASH_AND_WS);
- 152 yield wait;
- 153
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_filter-02.js:
- 149 let wait = waitForNetworkEvents(monitor, 9);
- 150 loadCommonFrameScript();
- 151: yield performRequestsInContent(REQUESTS_WITH_MEDIA_AND_FLASH_AND_WS);
- 152 yield wait;
- 153
- ...
- 173 info("Performing more requests.");
- 174 wait = waitForNetworkEvents(monitor, 9);
- 175: yield performRequestsInContent(REQUESTS_WITH_MEDIA_AND_FLASH_AND_WS);
- 176 yield wait;
- 177
- ...
- 182 info("Performing more requests.");
- 183 wait = waitForNetworkEvents(monitor, 9);
- 184: yield performRequestsInContent(REQUESTS_WITH_MEDIA_AND_FLASH_AND_WS);
- 185 yield wait;
- 186
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_filter-03.js:
- 47
- 48 let wait = waitForNetworkEvents(monitor, 7);
- 49: yield performRequestsInContent(requests);
- 50 yield wait;
- 51
- ..
- 77 info("Performing more requests.");
- 78 wait = waitForNetworkEvents(monitor, 7);
- 79: performRequestsInContent(REQUESTS_WITH_MEDIA);
- 80 yield wait;
- 81
- ..
- 86
- 87 info("Performing more requests.");
- 88: performRequestsInContent(REQUESTS_WITH_MEDIA);
- 89 yield waitForNetworkEvents(monitor, 7);
- 90
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_filter-04.js:
- 50 let wait = waitForNetworkEvents(monitor, 9);
- 51 loadCommonFrameScript();
- 52: yield performRequestsInContent(REQUESTS_WITH_MEDIA_AND_FLASH_AND_WS);
- 53 yield wait;
- 54
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_filter-autocomplete.js:
- 48 let waitNetwork = waitForNetworkEvents(monitor, REQUESTS.length);
- 49 loadCommonFrameScript();
- 50: await performRequestsInContent(REQUESTS);
- 51 await waitNetwork;
- 52
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_filter-flags.js:
- 168 let waitNetwork = waitForNetworkEvents(monitor, REQUESTS.length);
- 169 loadCommonFrameScript();
- 170: yield performRequestsInContent(REQUESTS);
- 171 yield waitNetwork;
- 172
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_footer-summary.js:
- 33 let wait = waitForNetworkEvents(monitor, 8);
- 34 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 35: content.wrappedJSObject.performRequests('{ "getMedia": true, "getFlash": true }');
- 36 });
- 37 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_header-docs.js:
- 23 let wait = waitForNetworkEvents(monitor, 2);
- 24 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 25: content.wrappedJSObject.performRequests();
- 26 });
- 27 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_image-tooltip.js:
- 23
- 24 let onEvents = waitForNetworkEvents(monitor, IMAGE_TOOLTIP_REQUESTS);
- 25: yield performRequests();
- 26 yield onEvents;
- 27
- ..
- 39 info("Reloading the debuggee and performing all requests again...");
- 40 yield triggerActivity(ACTIVITY_TYPE.RELOAD.WITH_CACHE_ENABLED);
- 41: yield performRequests();
- 42 yield onEvents;
- 43
- ..
- 53 yield teardown(monitor);
- 54
- 55: function performRequests() {
- 56 return ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 57: content.wrappedJSObject.performRequests();
- 58 });
- 59 }
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_json-b64.js:
- 20 let wait = waitForNetworkEvents(monitor, 1);
- 21 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 22: content.wrappedJSObject.performRequests();
- 23 });
- 24 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_json-long.js:
- 29 let wait = waitForNetworkEvents(monitor, 1);
- 30 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 31: content.wrappedJSObject.performRequests();
- 32 });
- 33 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_json-malformed.js:
- 24 let wait = waitForNetworkEvents(monitor, 1);
- 25 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 26: content.wrappedJSObject.performRequests();
- 27 });
- 28 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_json-null.js:
- 20 let wait = waitForNetworkEvents(monitor, 1);
- 21 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 22: content.wrappedJSObject.performRequests();
- 23 });
- 24 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_json_custom_mime.js:
- 24 let wait = waitForNetworkEvents(monitor, 1);
- 25 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 26: content.wrappedJSObject.performRequests();
- 27 });
- 28 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_json_text_mime.js:
- 25 let wait = waitForNetworkEvents(monitor, 1);
- 26 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 27: content.wrappedJSObject.performRequests();
- 28 });
- 29 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_jsonp.js:
- 25 let wait = waitForNetworkEvents(monitor, 2);
- 26 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 27: content.wrappedJSObject.performRequests();
- 28 });
- 29 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_large-response.js:
- 29 let wait = waitForNetworkEvents(monitor, 1);
- 30 yield ContentTask.spawn(tab.linkedBrowser, HTML_LONG_URL, function* (url) {
- 31: content.wrappedJSObject.performRequests(1, url);
- 32 });
- 33 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_open_in_debugger.js:
- 20 let wait = waitForNetworkEvents(monitor, CONTENT_TYPE_WITHOUT_CACHE_REQUESTS);
- 21 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 22: content.wrappedJSObject.performRequests();
- 23 });
- 24 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_open_in_style_editor.js:
- 20 let wait = waitForNetworkEvents(monitor, CONTENT_TYPE_WITHOUT_CACHE_REQUESTS);
- 21 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 22: content.wrappedJSObject.performRequests();
- 23 });
- 24 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_open_request_in_tab.js:
- 20 let wait = waitForNetworkEvents(monitor, 1);
- 21 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 22: content.wrappedJSObject.performRequests(1);
- 23 });
- 24 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_params_sorted.js:
- 19 let wait = waitForNetworkEvents(monitor, 2);
- 20 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 21: content.wrappedJSObject.performRequests();
- 22 });
- 23 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_pause.js:
- 69 let wait = waitForNetworkEvents(monitor, 1);
- 70 yield ContentTask.spawn(tab.linkedBrowser, SIMPLE_SJS, function* (url) {
- 71: yield content.wrappedJSObject.performRequests(url);
- 72 });
- 73 yield wait;
- ..
- 80 let wait = waitForWebConsoleNetworkEvent(connector);
- 81 yield ContentTask.spawn(tab.linkedBrowser, SIMPLE_SJS, function* (url) {
- 82: yield content.wrappedJSObject.performRequests(url);
- 83 });
- 84 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_post-data-01.js:
- 28 let wait = waitForNetworkEvents(monitor, 2);
- 29 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 30: content.wrappedJSObject.performRequests();
- 31 });
- 32 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_post-data-02.js:
- 22 let wait = waitForNetworkEvents(monitor, 1);
- 23 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 24: content.wrappedJSObject.performRequests();
- 25 });
- 26 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_post-data-03.js:
- 22 let wait = waitForNetworkEvents(monitor, 1);
- 23 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 24: content.wrappedJSObject.performRequests();
- 25 });
- 26 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_post-data-04.js:
- 22 let wait = waitForNetworkEvents(monitor, 1);
- 23 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 24: content.wrappedJSObject.performRequests();
- 25 });
- 26 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_raw_headers.js:
- 22 let wait = waitForNetworkEvents(monitor, 2);
- 23 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 24: content.wrappedJSObject.performRequests();
- 25 });
- 26 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_req-resp-bodies.js:
- 26 let wait = waitForNetworkEvents(monitor, 1);
- 27 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 28: content.wrappedJSObject.performRequests();
- 29 });
- 30 yield wait;
- ..
- 50 wait = waitForNetworkEvents(monitor, 1);
- 51 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 52: content.wrappedJSObject.performRequests();
- 53 });
- 54 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_resend.js:
- 28 let wait = waitForNetworkEvents(monitor, 2);
- 29 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 30: content.wrappedJSObject.performRequests();
- 31 });
- 32 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_resend_cors.js:
- 27 let wait = waitForNetworkEvents(monitor, 2);
- 28 yield ContentTask.spawn(tab.linkedBrowser, requestUrl, function* (url) {
- 29: content.wrappedJSObject.performRequests(url, "triggering/preflight", "post-data");
- 30 });
- 31 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-details.js:
- 19 let wait = waitForNetworkEvents(monitor, 1);
- 20 yield ContentTask.spawn(tab.linkedBrowser, REQUESTS_URL, function* (url) {
- 21: content.wrappedJSObject.performRequests(1, url);
- 22 });
- 23 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-error.js:
- 19 let requestsDone = waitForNetworkEvents(monitor, 1);
- 20 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 21: content.wrappedJSObject.performRequests(1, "https://nocert.example.com");
- 22 });
- 23 yield requestsDone;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-icon-click.js:
- 40 let wait = waitForNetworkEvents(monitor, 1);
- 41 yield ContentTask.spawn(tab.linkedBrowser, { url }, function* (args) {
- 42: content.wrappedJSObject.performRequests(1, args.url);
- 43 });
- 44 return wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-redirect.js:
- 18 let wait = waitForNetworkEvents(monitor, 2);
- 19 yield ContentTask.spawn(tab.linkedBrowser, HTTPS_REDIRECT_SJS, function* (url) {
- 20: content.wrappedJSObject.performRequests(1, url);
- 21 });
- 22 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-state.js:
- 23 store.dispatch(Actions.batchEnable(false));
- 24
- 25: yield performRequests();
- 26
- 27 for (let subitemNode of Array.from(document.querySelectorAll(
- ..
- 50 * and waits until NetworkMonitor has handled all packets sent by the server.
- 51 */
- 52: function* performRequests() {
- 53 function executeRequests(count, url) {
- 54 return ContentTask.spawn(tab.linkedBrowser, {count, url}, function* (args) {
- 55: content.wrappedJSObject.performRequests(args.count, args.url);
- 56 });
- 57 }
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-tab-deselect.js:
- 24 yield ContentTask.spawn(tab.linkedBrowser, REQUEST_URLS, function* (urls) {
- 25 for (let url of urls) {
- 26: content.wrappedJSObject.performRequests(1, url);
- 27 }
- 28 });
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-tab-visibility.js:
- 49 info("Performing a request to " + testcase.uri);
- 50 yield ContentTask.spawn(tab.linkedBrowser, testcase.uri, function* (url) {
- 51: content.wrappedJSObject.performRequests(1, url);
- 52 });
- 53
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-warnings.js:
- 29 let wait = waitForNetworkEvents(monitor, 1);
- 30 yield ContentTask.spawn(tab.linkedBrowser, test.uri, function* (url) {
- 31: content.wrappedJSObject.performRequests(1, url);
- 32 });
- 33 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_service-worker-status.js:
- 37 fullMimeType: "text/plain; charset=UTF-8"
- 38 },
- 39: stackFunctions: ["doXHR", "performRequests"]
- 40 },
- 41 ];
- ..
- 49 let wait = waitForNetworkEvents(monitor, REQUEST_DATA.length);
- 50 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 51: content.wrappedJSObject.performRequests();
- 52 });
- 53 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_sort-01.js:
- 49
- 50 let wait = waitForNetworkEvents(monitor, 5);
- 51: yield performRequestsInContent(requests);
- 52 yield wait;
- 53
- ..
- 73 info("Performing more requests.");
- 74 wait = waitForNetworkEvents(monitor, 5);
- 75: yield performRequestsInContent(requests);
- 76 yield wait;
- 77
- ..
- 88 info("Performing more requests.");
- 89 wait = waitForNetworkEvents(monitor, 5);
- 90: yield performRequestsInContent(requests);
- 91 yield wait;
- 92
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_sort-02.js:
- 49
- 50 let wait = waitForNetworkEvents(monitor, 5);
- 51: yield performRequestsInContent(requests);
- 52 yield wait;
- 53
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_status-codes.js:
- 101 let wait = waitForNetworkEvents(monitor, 5);
- 102 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 103: content.wrappedJSObject.performRequests();
- 104 });
- 105 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_streaming-response.js:
- 31 let url = CONTENT_TYPE_SJS + "?fmt=" + fmt;
- 32 yield ContentTask.spawn(tab.linkedBrowser, { url }, function* (args) {
- 33: content.wrappedJSObject.performRequests(1, args.url);
- 34 });
- 35 }
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_timing-division.js:
- 19 // Timeout needed for having enough divisions on the time scale.
- 20 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 21: content.wrappedJSObject.performRequests(2, null, 3000);
- 22 });
- 23 yield wait;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_view-source-debugger.js:
- 20 let waitForContentRequests = waitForNetworkEvents(monitor, 2);
- 21 await ContentTask.spawn(tab.linkedBrowser, {},
- 22: () => content.wrappedJSObject.performRequests());
- 23 await waitForContentRequests;
- 24
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_waterfall-click.js:
- 14 let onAllEvents = waitForNetworkEvents(monitor, CONTENT_TYPE_WITHOUT_CACHE_REQUESTS);
- 15 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
- 16: content.wrappedJSObject.performRequests();
- 17 });
- 18 yield onAllEvents;
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\head.js:
- 5 /* exported Toolbox, restartNetMonitor, teardown, waitForExplicitFinish,
- 6 verifyRequestItemTarget, waitFor, testFilterButtons, loadCommonFrameScript,
- 7: performRequestsInContent, waitForNetworkEvents, selectIndexAndWaitForSourceEditor,
- 8 testColumnsAlignment, hideColumn, showColumn */
- 9
- ..
- 639 * @return A promise that resolves once the requests complete.
- 640 */
- 641: function performRequestsInContent(requests) {
- 642 info("Performing requests in the context of the content.");
- 643 return executeInContent("devtools:test:xhr", requests);
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_api-calls-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 31 }
- 32
- 33: function performRequests() {
- 34 /* eslint-disable max-nested-callbacks */
- 35 get("/api/fileName.xml", function () {
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_brotli-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 31 }
- 32
- 33: function performRequests() {
- 34 get("sjs_content-type-test-server.sjs?fmt=br", function () {
- 35 // Done.
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_content-type-without-cache-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 31 }
- 32
- 33: function performRequests() {
- 34 /* eslint-disable max-nested-callbacks */
- 35 get("sjs_content-type-test-server.sjs?fmt=xml", function () {
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_cors-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 26 }
- 27
- 28: function performRequests(url, contentType, postData) {
- 29 post(url, contentType, postData);
- 30 }
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_curl-utils.html:
- 30
- 31 <script type="text/javascript">
- 32: /* exported performRequests */
- 33 /* eslint-disable max-nested-callbacks */
- 34 "use strict";
- ..
- 100 }
- 101
- 102: function performRequests(url) {
- 103 ajaxGet(url, () => {
- 104 ajaxPost(url, () => {
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_custom-get-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 34 let count = 0;
- 35
- 36: function performRequests(total, url, timeout = 0) {
- 37 if (!total) {
- 38 return;
- 39 }
- 40 get(url || "request_" + (count++), function () {
- 41: setTimeout(performRequests.bind(this, --total, url, timeout), timeout);
- 42 });
- 43 }
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_cyrillic-test-page.html:
- 17
- 18 <script type="text/javascript">
- 19: /* exported performRequests */
- 20 "use strict";
- 21
- ..
- 32 }
- 33
- 34: function performRequests() {
- 35 get("sjs_content-type-test-server.sjs?fmt=txt", function () {
- 36 // Done.
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_filter-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 32 }
- 33
- 34: function performRequests(optionsText) {
- 35 const options = JSON.parse(optionsText);
- 36
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_image-tooltip-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- 21: function performRequests() {
- 22 let xhr = new XMLHttpRequest();
- 23 xhr.open("GET", "test-image.png?v=" + Math.random(), true);
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_infinite-get-page.html:
- 37 }
- 38
- 39: (function performRequests() {
- 40 get("request_" + (count++), function () {
- 41 if (doRequests) {
- 42: setTimeout(performRequests, 50);
- 43 }
- 44 });
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_json-b64.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 31 }
- 32
- 33: function performRequests() {
- 34 get("sjs_content-type-test-server.sjs?fmt=json-b64", function () {
- 35 // Done.
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_json-basic.html:
- 17
- 18 <script type="text/javascript">
- 19: /* exported performRequests */
- 20 "use strict";
- 21
- ..
- 32 }
- 33
- 34: function performRequests() {
- 35 // Forward the query parameter for this page to sjs_json-test-server
- 36 get("sjs_json-test-server.sjs" + window.location.search, function () {
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_json-custom-mime-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 31 }
- 32
- 33: function performRequests() {
- 34 get("sjs_content-type-test-server.sjs?fmt=json-custom-mime", function () {
- 35 // Done.
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_json-long-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 31 }
- 32
- 33: function performRequests() {
- 34 get("sjs_content-type-test-server.sjs?fmt=json-long", function () {
- 35 // Done.
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_json-malformed-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 31 }
- 32
- 33: function performRequests() {
- 34 get("sjs_content-type-test-server.sjs?fmt=json-malformed", function () {
- 35 // Done.
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_json-text-mime-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 31 }
- 32
- 33: function performRequests() {
- 34 get("sjs_content-type-test-server.sjs?fmt=json-text-mime", function () {
- 35 // Done.
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_jsonp-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 31 }
- 32
- 33: function performRequests() {
- 34 get("sjs_content-type-test-server.sjs?fmt=jsonp&jsonp=$_0123Fun", function () {
- 35 get("sjs_content-type-test-server.sjs?fmt=jsonp2&jsonp=$_4567Sad", function () {
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_params-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 32 }
- 33
- 34: function performRequests() {
- 35 const urlencoded = "application/x-www-form-urlencoded";
- 36
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_pause-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- 21: function performRequests(url) {
- 22 return new Promise((resolve, reject) => {
- 23 let xhr = new XMLHttpRequest();
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_post-data-test-page.html:
- 28
- 29 <script type="text/javascript">
- 30: /* exported performRequests */
- 31 "use strict";
- 32
- ..
- 64 }
- 65
- 66: function performRequests() {
- 67 const url = "sjs_simple-test-server.sjs";
- 68 const url1 = url + "?foo=bar&baz=42&type=urlencoded";
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_post-json-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 32 }
- 33
- 34: function performRequests() {
- 35 post("sjs_simple-test-server.sjs", JSON.stringify({a: 1}), function () {
- 36 // Done.
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_post-raw-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 32 }
- 33
- 34: function performRequests() {
- 35 const rawData = "foo=bar&baz=123";
- 36 post("sjs_simple-test-server.sjs", rawData, function () {
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_post-raw-with-headers-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests */
- 19 "use strict";
- 20
- ..
- 31 }
- 32
- 33: function performRequests() {
- 34 let rawData = [
- 35 "content-type: application/x-www-form-urlencoded\r",
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_single-get-page.html:
- 30 }
- 31
- 32: (function performRequests() {
- 33 get("request_0", function () {});
- 34 })();
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_status-codes-test-page.html:
- 16
- 17 <script type="text/javascript">
- 18: /* exported performRequests, performCachedRequests */
- 19 "use strict";
- 20
- ..
- 31 }
- 32
- 33: function performRequests() {
- 34 /* eslint-disable max-nested-callbacks */
- 35 get("sjs_status-codes-test-server.sjs?sts=100", function () {
- C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\service-workers\status-codes.html:
- 17
- 18 <script type="text/javascript">
- 19: /* exported registerServiceWorker, unregisterServiceWorker, performRequests */
- 20 "use strict";
- 21
- ..
- 49 }
- 50
- 51: function performRequests() {
- 52 return new Promise(function doXHR(done) {
- 53 let xhr = new XMLHttpRequest();
- 140 matches across 89 files
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement