Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.30 KB | None | 0 0
  1. Searching 166 files for "performRequests"
  2.  
  3. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_accessibility-01.js:
  4. 33 let wait = waitForNetworkEvents(monitor, 2);
  5. 34 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  6. 35: content.wrappedJSObject.performRequests(2);
  7. 36 });
  8. 37 yield wait;
  9. ..
  10. 56 wait = waitForNetworkEvents(monitor, 18);
  11. 57 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  12. 58: content.wrappedJSObject.performRequests(18);
  13. 59 });
  14. 60 yield wait;
  15.  
  16. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_accessibility-02.js:
  17. 33 let wait = waitForNetworkEvents(monitor, 2);
  18. 34 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  19. 35: content.wrappedJSObject.performRequests(2);
  20. 36 });
  21. 37 yield wait;
  22. ..
  23. 58 wait = waitForNetworkEvents(monitor, 18);
  24. 59 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  25. 60: content.wrappedJSObject.performRequests(18);
  26. 61 });
  27. 62 yield wait;
  28.  
  29. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_api-calls.js:
  30. 32 let wait = waitForNetworkEvents(monitor, 5);
  31. 33 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  32. 34: content.wrappedJSObject.performRequests();
  33. 35 });
  34. 36 yield wait;
  35.  
  36. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_background_update.js:
  37. 18
  38. 19 // Execute two requests
  39. 20: await performRequests(monitor, tab, 2);
  40. 21
  41. 22 // Wait for two logs
  42. ..
  43. 30
  44. 31 // Execute another two requests
  45. 32: await performRequests(monitor, tab, 2);
  46. 33
  47. 34 // The number of rendered requests should be the same since
  48. ..
  49. 48 });
  50. 49
  51. 50: async function performRequests(monitor, tab, count) {
  52. 51 let wait = waitForNetworkEvents(monitor, count);
  53. 52 await ContentTask.spawn(tab.linkedBrowser, count, requestCount => {
  54. 53: content.wrappedJSObject.performRequests(requestCount);
  55. 54 });
  56. 55 await wait;
  57.  
  58. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_brotli.js:
  59. 28 let wait = waitForNetworkEvents(monitor, BROTLI_REQUESTS);
  60. 29 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  61. 30: content.wrappedJSObject.performRequests();
  62. 31 });
  63. 32 yield wait;
  64.  
  65. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_cached-status.js:
  66. 90
  67. 91 info("Performing requests #1...");
  68. 92: yield performRequestsAndWait();
  69. 93
  70. 94 info("Performing requests #2...");
  71. 95: yield performRequestsAndWait();
  72. 96
  73. 97 let index = 0;
  74. ..
  75. 118 yield teardown(monitor);
  76. 119
  77. 120: function* performRequestsAndWait() {
  78. 121 let wait = waitForNetworkEvents(monitor, 3);
  79. 122 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  80.  
  81. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_cause_redirect.js:
  82. 29
  83. 30 let wait = waitForNetworkEvents(monitor, EXPECTED_REQUESTS.length);
  84. 31: yield performRequests(2, HSTS_SJS);
  85. 32 yield wait;
  86. 33
  87. ..
  88. 58 // Send a request to reset the HSTS policy to state before the test
  89. 59 wait = waitForNetworkEvents(monitor, 1);
  90. 60: yield performRequests(1, HSTS_SJS + "?reset");
  91. 61 yield wait;
  92. 62
  93. 63 yield teardown(monitor);
  94. 64
  95. 65: function performRequests(count, url) {
  96. 66 return ContentTask.spawn(tab.linkedBrowser, { count, url }, function* (args) {
  97. 67: content.wrappedJSObject.performRequests(args.count, args.url);
  98. 68 });
  99. 69 }
  100.  
  101. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_complex-params.js:
  102. 21 let wait = waitForNetworkEvents(monitor, 7);
  103. 22 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  104. 23: content.wrappedJSObject.performRequests();
  105. 24 });
  106. 25 yield wait;
  107.  
  108. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_content-type.js:
  109. 24 let wait = waitForNetworkEvents(monitor, CONTENT_TYPE_WITHOUT_CACHE_REQUESTS);
  110. 25 yield ContentTask.spawn(tab.linkedBrowser, {}, function () {
  111. 26: content.wrappedJSObject.performRequests();
  112. 27 });
  113. 28 yield wait;
  114.  
  115. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_copy_image_as_data_uri.js:
  116. 16 let wait = waitForNetworkEvents(monitor, CONTENT_TYPE_WITHOUT_CACHE_REQUESTS);
  117. 17 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  118. 18: content.wrappedJSObject.performRequests();
  119. 19 });
  120. 20 yield wait;
  121.  
  122. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_copy_params.js:
  123. 19 let wait = waitForNetworkEvents(monitor, 7);
  124. 20 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  125. 21: content.wrappedJSObject.performRequests();
  126. 22 });
  127. 23 yield wait;
  128.  
  129. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_copy_response.js:
  130. 18 let wait = waitForNetworkEvents(monitor, CONTENT_TYPE_WITHOUT_CACHE_REQUESTS);
  131. 19 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  132. 20: content.wrappedJSObject.performRequests();
  133. 21 });
  134. 22 yield wait;
  135.  
  136. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_copy_url.js:
  137. 19 let wait = waitForNetworkEvents(monitor, 1);
  138. 20 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  139. 21: content.wrappedJSObject.performRequests(1);
  140. 22 });
  141. 23 yield wait;
  142.  
  143. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_cors_requests.js:
  144. 25 let requestUrl = "http://test1.example.com" + CORS_SJS_PATH;
  145. 26 yield ContentTask.spawn(tab.linkedBrowser, requestUrl, function* (url) {
  146. 27: content.wrappedJSObject.performRequests(url, "triggering/preflight", "post-data");
  147. 28 });
  148. 29
  149.  
  150. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_curl-utils.js:
  151. 28 let wait = waitForNetworkEvents(monitor, 5);
  152. 29 yield ContentTask.spawn(tab.linkedBrowser, SIMPLE_SJS, function* (url) {
  153. 30: content.wrappedJSObject.performRequests(url);
  154. 31 });
  155. 32 yield wait;
  156.  
  157. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_cyrillic-01.js:
  158. 23 let wait = waitForNetworkEvents(monitor, 1);
  159. 24 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  160. 25: content.wrappedJSObject.performRequests();
  161. 26 });
  162. 27 yield wait;
  163.  
  164. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_filter-01.js:
  165. 149 let wait = waitForNetworkEvents(monitor, 9);
  166. 150 loadCommonFrameScript();
  167. 151: yield performRequestsInContent(REQUESTS_WITH_MEDIA_AND_FLASH_AND_WS);
  168. 152 yield wait;
  169. 153
  170.  
  171. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_filter-02.js:
  172. 149 let wait = waitForNetworkEvents(monitor, 9);
  173. 150 loadCommonFrameScript();
  174. 151: yield performRequestsInContent(REQUESTS_WITH_MEDIA_AND_FLASH_AND_WS);
  175. 152 yield wait;
  176. 153
  177. ...
  178. 173 info("Performing more requests.");
  179. 174 wait = waitForNetworkEvents(monitor, 9);
  180. 175: yield performRequestsInContent(REQUESTS_WITH_MEDIA_AND_FLASH_AND_WS);
  181. 176 yield wait;
  182. 177
  183. ...
  184. 182 info("Performing more requests.");
  185. 183 wait = waitForNetworkEvents(monitor, 9);
  186. 184: yield performRequestsInContent(REQUESTS_WITH_MEDIA_AND_FLASH_AND_WS);
  187. 185 yield wait;
  188. 186
  189.  
  190. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_filter-03.js:
  191. 47
  192. 48 let wait = waitForNetworkEvents(monitor, 7);
  193. 49: yield performRequestsInContent(requests);
  194. 50 yield wait;
  195. 51
  196. ..
  197. 77 info("Performing more requests.");
  198. 78 wait = waitForNetworkEvents(monitor, 7);
  199. 79: performRequestsInContent(REQUESTS_WITH_MEDIA);
  200. 80 yield wait;
  201. 81
  202. ..
  203. 86
  204. 87 info("Performing more requests.");
  205. 88: performRequestsInContent(REQUESTS_WITH_MEDIA);
  206. 89 yield waitForNetworkEvents(monitor, 7);
  207. 90
  208.  
  209. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_filter-04.js:
  210. 50 let wait = waitForNetworkEvents(monitor, 9);
  211. 51 loadCommonFrameScript();
  212. 52: yield performRequestsInContent(REQUESTS_WITH_MEDIA_AND_FLASH_AND_WS);
  213. 53 yield wait;
  214. 54
  215.  
  216. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_filter-autocomplete.js:
  217. 48 let waitNetwork = waitForNetworkEvents(monitor, REQUESTS.length);
  218. 49 loadCommonFrameScript();
  219. 50: await performRequestsInContent(REQUESTS);
  220. 51 await waitNetwork;
  221. 52
  222.  
  223. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_filter-flags.js:
  224. 168 let waitNetwork = waitForNetworkEvents(monitor, REQUESTS.length);
  225. 169 loadCommonFrameScript();
  226. 170: yield performRequestsInContent(REQUESTS);
  227. 171 yield waitNetwork;
  228. 172
  229.  
  230. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_footer-summary.js:
  231. 33 let wait = waitForNetworkEvents(monitor, 8);
  232. 34 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  233. 35: content.wrappedJSObject.performRequests('{ "getMedia": true, "getFlash": true }');
  234. 36 });
  235. 37 yield wait;
  236.  
  237. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_header-docs.js:
  238. 23 let wait = waitForNetworkEvents(monitor, 2);
  239. 24 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  240. 25: content.wrappedJSObject.performRequests();
  241. 26 });
  242. 27 yield wait;
  243.  
  244. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_image-tooltip.js:
  245. 23
  246. 24 let onEvents = waitForNetworkEvents(monitor, IMAGE_TOOLTIP_REQUESTS);
  247. 25: yield performRequests();
  248. 26 yield onEvents;
  249. 27
  250. ..
  251. 39 info("Reloading the debuggee and performing all requests again...");
  252. 40 yield triggerActivity(ACTIVITY_TYPE.RELOAD.WITH_CACHE_ENABLED);
  253. 41: yield performRequests();
  254. 42 yield onEvents;
  255. 43
  256. ..
  257. 53 yield teardown(monitor);
  258. 54
  259. 55: function performRequests() {
  260. 56 return ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  261. 57: content.wrappedJSObject.performRequests();
  262. 58 });
  263. 59 }
  264.  
  265. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_json-b64.js:
  266. 20 let wait = waitForNetworkEvents(monitor, 1);
  267. 21 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  268. 22: content.wrappedJSObject.performRequests();
  269. 23 });
  270. 24 yield wait;
  271.  
  272. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_json-long.js:
  273. 29 let wait = waitForNetworkEvents(monitor, 1);
  274. 30 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  275. 31: content.wrappedJSObject.performRequests();
  276. 32 });
  277. 33 yield wait;
  278.  
  279. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_json-malformed.js:
  280. 24 let wait = waitForNetworkEvents(monitor, 1);
  281. 25 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  282. 26: content.wrappedJSObject.performRequests();
  283. 27 });
  284. 28 yield wait;
  285.  
  286. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_json-null.js:
  287. 20 let wait = waitForNetworkEvents(monitor, 1);
  288. 21 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  289. 22: content.wrappedJSObject.performRequests();
  290. 23 });
  291. 24 yield wait;
  292.  
  293. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_json_custom_mime.js:
  294. 24 let wait = waitForNetworkEvents(monitor, 1);
  295. 25 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  296. 26: content.wrappedJSObject.performRequests();
  297. 27 });
  298. 28 yield wait;
  299.  
  300. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_json_text_mime.js:
  301. 25 let wait = waitForNetworkEvents(monitor, 1);
  302. 26 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  303. 27: content.wrappedJSObject.performRequests();
  304. 28 });
  305. 29 yield wait;
  306.  
  307. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_jsonp.js:
  308. 25 let wait = waitForNetworkEvents(monitor, 2);
  309. 26 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  310. 27: content.wrappedJSObject.performRequests();
  311. 28 });
  312. 29 yield wait;
  313.  
  314. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_large-response.js:
  315. 29 let wait = waitForNetworkEvents(monitor, 1);
  316. 30 yield ContentTask.spawn(tab.linkedBrowser, HTML_LONG_URL, function* (url) {
  317. 31: content.wrappedJSObject.performRequests(1, url);
  318. 32 });
  319. 33 yield wait;
  320.  
  321. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_open_in_debugger.js:
  322. 20 let wait = waitForNetworkEvents(monitor, CONTENT_TYPE_WITHOUT_CACHE_REQUESTS);
  323. 21 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  324. 22: content.wrappedJSObject.performRequests();
  325. 23 });
  326. 24 yield wait;
  327.  
  328. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_open_in_style_editor.js:
  329. 20 let wait = waitForNetworkEvents(monitor, CONTENT_TYPE_WITHOUT_CACHE_REQUESTS);
  330. 21 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  331. 22: content.wrappedJSObject.performRequests();
  332. 23 });
  333. 24 yield wait;
  334.  
  335. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_open_request_in_tab.js:
  336. 20 let wait = waitForNetworkEvents(monitor, 1);
  337. 21 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  338. 22: content.wrappedJSObject.performRequests(1);
  339. 23 });
  340. 24 yield wait;
  341.  
  342. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_params_sorted.js:
  343. 19 let wait = waitForNetworkEvents(monitor, 2);
  344. 20 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  345. 21: content.wrappedJSObject.performRequests();
  346. 22 });
  347. 23 yield wait;
  348.  
  349. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_pause.js:
  350. 69 let wait = waitForNetworkEvents(monitor, 1);
  351. 70 yield ContentTask.spawn(tab.linkedBrowser, SIMPLE_SJS, function* (url) {
  352. 71: yield content.wrappedJSObject.performRequests(url);
  353. 72 });
  354. 73 yield wait;
  355. ..
  356. 80 let wait = waitForWebConsoleNetworkEvent(connector);
  357. 81 yield ContentTask.spawn(tab.linkedBrowser, SIMPLE_SJS, function* (url) {
  358. 82: yield content.wrappedJSObject.performRequests(url);
  359. 83 });
  360. 84 yield wait;
  361.  
  362. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_post-data-01.js:
  363. 28 let wait = waitForNetworkEvents(monitor, 2);
  364. 29 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  365. 30: content.wrappedJSObject.performRequests();
  366. 31 });
  367. 32 yield wait;
  368.  
  369. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_post-data-02.js:
  370. 22 let wait = waitForNetworkEvents(monitor, 1);
  371. 23 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  372. 24: content.wrappedJSObject.performRequests();
  373. 25 });
  374. 26 yield wait;
  375.  
  376. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_post-data-03.js:
  377. 22 let wait = waitForNetworkEvents(monitor, 1);
  378. 23 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  379. 24: content.wrappedJSObject.performRequests();
  380. 25 });
  381. 26 yield wait;
  382.  
  383. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_post-data-04.js:
  384. 22 let wait = waitForNetworkEvents(monitor, 1);
  385. 23 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  386. 24: content.wrappedJSObject.performRequests();
  387. 25 });
  388. 26 yield wait;
  389.  
  390. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_raw_headers.js:
  391. 22 let wait = waitForNetworkEvents(monitor, 2);
  392. 23 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  393. 24: content.wrappedJSObject.performRequests();
  394. 25 });
  395. 26 yield wait;
  396.  
  397. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_req-resp-bodies.js:
  398. 26 let wait = waitForNetworkEvents(monitor, 1);
  399. 27 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  400. 28: content.wrappedJSObject.performRequests();
  401. 29 });
  402. 30 yield wait;
  403. ..
  404. 50 wait = waitForNetworkEvents(monitor, 1);
  405. 51 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  406. 52: content.wrappedJSObject.performRequests();
  407. 53 });
  408. 54 yield wait;
  409.  
  410. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_resend.js:
  411. 28 let wait = waitForNetworkEvents(monitor, 2);
  412. 29 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  413. 30: content.wrappedJSObject.performRequests();
  414. 31 });
  415. 32 yield wait;
  416.  
  417. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_resend_cors.js:
  418. 27 let wait = waitForNetworkEvents(monitor, 2);
  419. 28 yield ContentTask.spawn(tab.linkedBrowser, requestUrl, function* (url) {
  420. 29: content.wrappedJSObject.performRequests(url, "triggering/preflight", "post-data");
  421. 30 });
  422. 31 yield wait;
  423.  
  424. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-details.js:
  425. 19 let wait = waitForNetworkEvents(monitor, 1);
  426. 20 yield ContentTask.spawn(tab.linkedBrowser, REQUESTS_URL, function* (url) {
  427. 21: content.wrappedJSObject.performRequests(1, url);
  428. 22 });
  429. 23 yield wait;
  430.  
  431. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-error.js:
  432. 19 let requestsDone = waitForNetworkEvents(monitor, 1);
  433. 20 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  434. 21: content.wrappedJSObject.performRequests(1, "https://nocert.example.com");
  435. 22 });
  436. 23 yield requestsDone;
  437.  
  438. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-icon-click.js:
  439. 40 let wait = waitForNetworkEvents(monitor, 1);
  440. 41 yield ContentTask.spawn(tab.linkedBrowser, { url }, function* (args) {
  441. 42: content.wrappedJSObject.performRequests(1, args.url);
  442. 43 });
  443. 44 return wait;
  444.  
  445. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-redirect.js:
  446. 18 let wait = waitForNetworkEvents(monitor, 2);
  447. 19 yield ContentTask.spawn(tab.linkedBrowser, HTTPS_REDIRECT_SJS, function* (url) {
  448. 20: content.wrappedJSObject.performRequests(1, url);
  449. 21 });
  450. 22 yield wait;
  451.  
  452. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-state.js:
  453. 23 store.dispatch(Actions.batchEnable(false));
  454. 24
  455. 25: yield performRequests();
  456. 26
  457. 27 for (let subitemNode of Array.from(document.querySelectorAll(
  458. ..
  459. 50 * and waits until NetworkMonitor has handled all packets sent by the server.
  460. 51 */
  461. 52: function* performRequests() {
  462. 53 function executeRequests(count, url) {
  463. 54 return ContentTask.spawn(tab.linkedBrowser, {count, url}, function* (args) {
  464. 55: content.wrappedJSObject.performRequests(args.count, args.url);
  465. 56 });
  466. 57 }
  467.  
  468. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-tab-deselect.js:
  469. 24 yield ContentTask.spawn(tab.linkedBrowser, REQUEST_URLS, function* (urls) {
  470. 25 for (let url of urls) {
  471. 26: content.wrappedJSObject.performRequests(1, url);
  472. 27 }
  473. 28 });
  474.  
  475. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-tab-visibility.js:
  476. 49 info("Performing a request to " + testcase.uri);
  477. 50 yield ContentTask.spawn(tab.linkedBrowser, testcase.uri, function* (url) {
  478. 51: content.wrappedJSObject.performRequests(1, url);
  479. 52 });
  480. 53
  481.  
  482. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_security-warnings.js:
  483. 29 let wait = waitForNetworkEvents(monitor, 1);
  484. 30 yield ContentTask.spawn(tab.linkedBrowser, test.uri, function* (url) {
  485. 31: content.wrappedJSObject.performRequests(1, url);
  486. 32 });
  487. 33 yield wait;
  488.  
  489. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_service-worker-status.js:
  490. 37 fullMimeType: "text/plain; charset=UTF-8"
  491. 38 },
  492. 39: stackFunctions: ["doXHR", "performRequests"]
  493. 40 },
  494. 41 ];
  495. ..
  496. 49 let wait = waitForNetworkEvents(monitor, REQUEST_DATA.length);
  497. 50 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  498. 51: content.wrappedJSObject.performRequests();
  499. 52 });
  500. 53 yield wait;
  501.  
  502. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_sort-01.js:
  503. 49
  504. 50 let wait = waitForNetworkEvents(monitor, 5);
  505. 51: yield performRequestsInContent(requests);
  506. 52 yield wait;
  507. 53
  508. ..
  509. 73 info("Performing more requests.");
  510. 74 wait = waitForNetworkEvents(monitor, 5);
  511. 75: yield performRequestsInContent(requests);
  512. 76 yield wait;
  513. 77
  514. ..
  515. 88 info("Performing more requests.");
  516. 89 wait = waitForNetworkEvents(monitor, 5);
  517. 90: yield performRequestsInContent(requests);
  518. 91 yield wait;
  519. 92
  520.  
  521. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_sort-02.js:
  522. 49
  523. 50 let wait = waitForNetworkEvents(monitor, 5);
  524. 51: yield performRequestsInContent(requests);
  525. 52 yield wait;
  526. 53
  527.  
  528. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_status-codes.js:
  529. 101 let wait = waitForNetworkEvents(monitor, 5);
  530. 102 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  531. 103: content.wrappedJSObject.performRequests();
  532. 104 });
  533. 105 yield wait;
  534.  
  535. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_streaming-response.js:
  536. 31 let url = CONTENT_TYPE_SJS + "?fmt=" + fmt;
  537. 32 yield ContentTask.spawn(tab.linkedBrowser, { url }, function* (args) {
  538. 33: content.wrappedJSObject.performRequests(1, args.url);
  539. 34 });
  540. 35 }
  541.  
  542. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_timing-division.js:
  543. 19 // Timeout needed for having enough divisions on the time scale.
  544. 20 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  545. 21: content.wrappedJSObject.performRequests(2, null, 3000);
  546. 22 });
  547. 23 yield wait;
  548.  
  549. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_view-source-debugger.js:
  550. 20 let waitForContentRequests = waitForNetworkEvents(monitor, 2);
  551. 21 await ContentTask.spawn(tab.linkedBrowser, {},
  552. 22: () => content.wrappedJSObject.performRequests());
  553. 23 await waitForContentRequests;
  554. 24
  555.  
  556. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\browser_net_waterfall-click.js:
  557. 14 let onAllEvents = waitForNetworkEvents(monitor, CONTENT_TYPE_WITHOUT_CACHE_REQUESTS);
  558. 15 yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
  559. 16: content.wrappedJSObject.performRequests();
  560. 17 });
  561. 18 yield onAllEvents;
  562.  
  563. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\head.js:
  564. 5 /* exported Toolbox, restartNetMonitor, teardown, waitForExplicitFinish,
  565. 6 verifyRequestItemTarget, waitFor, testFilterButtons, loadCommonFrameScript,
  566. 7: performRequestsInContent, waitForNetworkEvents, selectIndexAndWaitForSourceEditor,
  567. 8 testColumnsAlignment, hideColumn, showColumn */
  568. 9
  569. ..
  570. 639 * @return A promise that resolves once the requests complete.
  571. 640 */
  572. 641: function performRequestsInContent(requests) {
  573. 642 info("Performing requests in the context of the content.");
  574. 643 return executeInContent("devtools:test:xhr", requests);
  575.  
  576. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_api-calls-test-page.html:
  577. 16
  578. 17 <script type="text/javascript">
  579. 18: /* exported performRequests */
  580. 19 "use strict";
  581. 20
  582. ..
  583. 31 }
  584. 32
  585. 33: function performRequests() {
  586. 34 /* eslint-disable max-nested-callbacks */
  587. 35 get("/api/fileName.xml", function () {
  588.  
  589. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_brotli-test-page.html:
  590. 16
  591. 17 <script type="text/javascript">
  592. 18: /* exported performRequests */
  593. 19 "use strict";
  594. 20
  595. ..
  596. 31 }
  597. 32
  598. 33: function performRequests() {
  599. 34 get("sjs_content-type-test-server.sjs?fmt=br", function () {
  600. 35 // Done.
  601.  
  602. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_content-type-without-cache-test-page.html:
  603. 16
  604. 17 <script type="text/javascript">
  605. 18: /* exported performRequests */
  606. 19 "use strict";
  607. 20
  608. ..
  609. 31 }
  610. 32
  611. 33: function performRequests() {
  612. 34 /* eslint-disable max-nested-callbacks */
  613. 35 get("sjs_content-type-test-server.sjs?fmt=xml", function () {
  614.  
  615. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_cors-test-page.html:
  616. 16
  617. 17 <script type="text/javascript">
  618. 18: /* exported performRequests */
  619. 19 "use strict";
  620. 20
  621. ..
  622. 26 }
  623. 27
  624. 28: function performRequests(url, contentType, postData) {
  625. 29 post(url, contentType, postData);
  626. 30 }
  627.  
  628. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_curl-utils.html:
  629. 30
  630. 31 <script type="text/javascript">
  631. 32: /* exported performRequests */
  632. 33 /* eslint-disable max-nested-callbacks */
  633. 34 "use strict";
  634. ..
  635. 100 }
  636. 101
  637. 102: function performRequests(url) {
  638. 103 ajaxGet(url, () => {
  639. 104 ajaxPost(url, () => {
  640.  
  641. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_custom-get-page.html:
  642. 16
  643. 17 <script type="text/javascript">
  644. 18: /* exported performRequests */
  645. 19 "use strict";
  646. 20
  647. ..
  648. 34 let count = 0;
  649. 35
  650. 36: function performRequests(total, url, timeout = 0) {
  651. 37 if (!total) {
  652. 38 return;
  653. 39 }
  654. 40 get(url || "request_" + (count++), function () {
  655. 41: setTimeout(performRequests.bind(this, --total, url, timeout), timeout);
  656. 42 });
  657. 43 }
  658.  
  659. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_cyrillic-test-page.html:
  660. 17
  661. 18 <script type="text/javascript">
  662. 19: /* exported performRequests */
  663. 20 "use strict";
  664. 21
  665. ..
  666. 32 }
  667. 33
  668. 34: function performRequests() {
  669. 35 get("sjs_content-type-test-server.sjs?fmt=txt", function () {
  670. 36 // Done.
  671.  
  672. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_filter-test-page.html:
  673. 16
  674. 17 <script type="text/javascript">
  675. 18: /* exported performRequests */
  676. 19 "use strict";
  677. 20
  678. ..
  679. 32 }
  680. 33
  681. 34: function performRequests(optionsText) {
  682. 35 const options = JSON.parse(optionsText);
  683. 36
  684.  
  685. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_image-tooltip-test-page.html:
  686. 16
  687. 17 <script type="text/javascript">
  688. 18: /* exported performRequests */
  689. 19 "use strict";
  690. 20
  691. 21: function performRequests() {
  692. 22 let xhr = new XMLHttpRequest();
  693. 23 xhr.open("GET", "test-image.png?v=" + Math.random(), true);
  694.  
  695. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_infinite-get-page.html:
  696. 37 }
  697. 38
  698. 39: (function performRequests() {
  699. 40 get("request_" + (count++), function () {
  700. 41 if (doRequests) {
  701. 42: setTimeout(performRequests, 50);
  702. 43 }
  703. 44 });
  704.  
  705. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_json-b64.html:
  706. 16
  707. 17 <script type="text/javascript">
  708. 18: /* exported performRequests */
  709. 19 "use strict";
  710. 20
  711. ..
  712. 31 }
  713. 32
  714. 33: function performRequests() {
  715. 34 get("sjs_content-type-test-server.sjs?fmt=json-b64", function () {
  716. 35 // Done.
  717.  
  718. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_json-basic.html:
  719. 17
  720. 18 <script type="text/javascript">
  721. 19: /* exported performRequests */
  722. 20 "use strict";
  723. 21
  724. ..
  725. 32 }
  726. 33
  727. 34: function performRequests() {
  728. 35 // Forward the query parameter for this page to sjs_json-test-server
  729. 36 get("sjs_json-test-server.sjs" + window.location.search, function () {
  730.  
  731. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_json-custom-mime-test-page.html:
  732. 16
  733. 17 <script type="text/javascript">
  734. 18: /* exported performRequests */
  735. 19 "use strict";
  736. 20
  737. ..
  738. 31 }
  739. 32
  740. 33: function performRequests() {
  741. 34 get("sjs_content-type-test-server.sjs?fmt=json-custom-mime", function () {
  742. 35 // Done.
  743.  
  744. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_json-long-test-page.html:
  745. 16
  746. 17 <script type="text/javascript">
  747. 18: /* exported performRequests */
  748. 19 "use strict";
  749. 20
  750. ..
  751. 31 }
  752. 32
  753. 33: function performRequests() {
  754. 34 get("sjs_content-type-test-server.sjs?fmt=json-long", function () {
  755. 35 // Done.
  756.  
  757. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_json-malformed-test-page.html:
  758. 16
  759. 17 <script type="text/javascript">
  760. 18: /* exported performRequests */
  761. 19 "use strict";
  762. 20
  763. ..
  764. 31 }
  765. 32
  766. 33: function performRequests() {
  767. 34 get("sjs_content-type-test-server.sjs?fmt=json-malformed", function () {
  768. 35 // Done.
  769.  
  770. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_json-text-mime-test-page.html:
  771. 16
  772. 17 <script type="text/javascript">
  773. 18: /* exported performRequests */
  774. 19 "use strict";
  775. 20
  776. ..
  777. 31 }
  778. 32
  779. 33: function performRequests() {
  780. 34 get("sjs_content-type-test-server.sjs?fmt=json-text-mime", function () {
  781. 35 // Done.
  782.  
  783. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_jsonp-test-page.html:
  784. 16
  785. 17 <script type="text/javascript">
  786. 18: /* exported performRequests */
  787. 19 "use strict";
  788. 20
  789. ..
  790. 31 }
  791. 32
  792. 33: function performRequests() {
  793. 34 get("sjs_content-type-test-server.sjs?fmt=jsonp&jsonp=$_0123Fun", function () {
  794. 35 get("sjs_content-type-test-server.sjs?fmt=jsonp2&jsonp=$_4567Sad", function () {
  795.  
  796. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_params-test-page.html:
  797. 16
  798. 17 <script type="text/javascript">
  799. 18: /* exported performRequests */
  800. 19 "use strict";
  801. 20
  802. ..
  803. 32 }
  804. 33
  805. 34: function performRequests() {
  806. 35 const urlencoded = "application/x-www-form-urlencoded";
  807. 36
  808.  
  809. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_pause-test-page.html:
  810. 16
  811. 17 <script type="text/javascript">
  812. 18: /* exported performRequests */
  813. 19 "use strict";
  814. 20
  815. 21: function performRequests(url) {
  816. 22 return new Promise((resolve, reject) => {
  817. 23 let xhr = new XMLHttpRequest();
  818.  
  819. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_post-data-test-page.html:
  820. 28
  821. 29 <script type="text/javascript">
  822. 30: /* exported performRequests */
  823. 31 "use strict";
  824. 32
  825. ..
  826. 64 }
  827. 65
  828. 66: function performRequests() {
  829. 67 const url = "sjs_simple-test-server.sjs";
  830. 68 const url1 = url + "?foo=bar&baz=42&type=urlencoded";
  831.  
  832. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_post-json-test-page.html:
  833. 16
  834. 17 <script type="text/javascript">
  835. 18: /* exported performRequests */
  836. 19 "use strict";
  837. 20
  838. ..
  839. 32 }
  840. 33
  841. 34: function performRequests() {
  842. 35 post("sjs_simple-test-server.sjs", JSON.stringify({a: 1}), function () {
  843. 36 // Done.
  844.  
  845. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_post-raw-test-page.html:
  846. 16
  847. 17 <script type="text/javascript">
  848. 18: /* exported performRequests */
  849. 19 "use strict";
  850. 20
  851. ..
  852. 32 }
  853. 33
  854. 34: function performRequests() {
  855. 35 const rawData = "foo=bar&baz=123";
  856. 36 post("sjs_simple-test-server.sjs", rawData, function () {
  857.  
  858. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_post-raw-with-headers-test-page.html:
  859. 16
  860. 17 <script type="text/javascript">
  861. 18: /* exported performRequests */
  862. 19 "use strict";
  863. 20
  864. ..
  865. 31 }
  866. 32
  867. 33: function performRequests() {
  868. 34 let rawData = [
  869. 35 "content-type: application/x-www-form-urlencoded\r",
  870.  
  871. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_single-get-page.html:
  872. 30 }
  873. 31
  874. 32: (function performRequests() {
  875. 33 get("request_0", function () {});
  876. 34 })();
  877.  
  878. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\html_status-codes-test-page.html:
  879. 16
  880. 17 <script type="text/javascript">
  881. 18: /* exported performRequests, performCachedRequests */
  882. 19 "use strict";
  883. 20
  884. ..
  885. 31 }
  886. 32
  887. 33: function performRequests() {
  888. 34 /* eslint-disable max-nested-callbacks */
  889. 35 get("sjs_status-codes-test-server.sjs?sts=100", function () {
  890.  
  891. C:\src\mozilla.org\mozilla-central\devtools\client\netmonitor\test\service-workers\status-codes.html:
  892. 17
  893. 18 <script type="text/javascript">
  894. 19: /* exported registerServiceWorker, unregisterServiceWorker, performRequests */
  895. 20 "use strict";
  896. 21
  897. ..
  898. 49 }
  899. 50
  900. 51: function performRequests() {
  901. 52 return new Promise(function doXHR(done) {
  902. 53 let xhr = new XMLHttpRequest();
  903.  
  904. 140 matches across 89 files
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement