gecko-dev/devtools/client/performance/test
Julian Descottes e1a9e318e9 Bug 1524982 - Use browser loader in performance panel to avoid blocking toolbox destroy;r=gregtatum,ochameau
The main goal is to use the browser loader instead of script tags to avoid using promises tied to the document during the panel's destroy.
I tried to cleanup a bit the modules, to rely less on globals and more on explicit require calls, but there is room for improvement left.
I will write an additional test to check that toolboxes in WINDOW hosts can be closed and reopened for any of our panels in a second changeset.

Differential Revision: https://phabricator.services.mozilla.com/D19865

--HG--
extra : moz-landing-system : lando
2019-02-18 16:37:18 +00:00
..
helpers Bug 1465635 - Remove Target.activeTab property. r=yulia 2019-02-02 11:24:24 +00:00
unit Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
.eslintrc.js
browser.ini Bug 1466377 - Disable test on win64 opt and pgo. r=jmaher 2019-01-04 13:08:45 +02:00
browser_aaa-run-first-leaktest.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-button-states.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-calltree-js-categories.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-calltree-js-columns.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-calltree-js-events.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-calltree-memory-columns.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-console-record-01.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-console-record-02.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-console-record-03.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-console-record-04.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-console-record-05.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-console-record-06.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-console-record-07.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-console-record-08.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-console-record-09.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-details-01-toggle.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-details-02-utility-fun.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-details-03-without-allocations.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-details-04-toolbar-buttons.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-details-05-preserve-view.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-details-06-rerender-on-selection.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-details-07-bleed-events.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-details-render-00-waterfall.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-details-render-01-js-calltree.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-details-render-02-js-flamegraph.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-details-render-03-memory-calltree.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-details-render-04-memory-flamegraph.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-docload.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-gc-snap.js Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans 2018-03-12 19:46:35 -05:00
browser_perf-highlighted.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-loading-01.js Bug 1524982 - Use browser loader in performance panel to avoid blocking toolbox destroy;r=gregtatum,ochameau 2019-02-18 16:37:18 +00:00
browser_perf-loading-02.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-marker-details.js Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans 2018-03-12 19:46:35 -05:00
browser_perf-options-01-toggle-throw.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-options-02-toggle-throw-alt.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-options-03-toggle-meta.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-options-enable-framerate-01.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-options-enable-framerate-02.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-options-enable-memory-01.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-options-enable-memory-02.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-options-flatten-tree-recursion-01.js Bug 1524982 - Use browser loader in performance panel to avoid blocking toolbox destroy;r=gregtatum,ochameau 2019-02-18 16:37:18 +00:00
browser_perf-options-flatten-tree-recursion-02.js Bug 1524982 - Use browser loader in performance panel to avoid blocking toolbox destroy;r=gregtatum,ochameau 2019-02-18 16:37:18 +00:00
browser_perf-options-invert-call-tree-01.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-options-invert-call-tree-02.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-options-invert-flame-graph-01.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-options-invert-flame-graph-02.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-options-propagate-allocations.js Bug 1495389 - remove instances of toolbox.performance; r=ochameau 2018-12-17 11:29:17 +00:00
browser_perf-options-propagate-profiler.js Bug 1495389 - remove instances of toolbox.performance; r=ochameau 2018-12-17 11:29:17 +00:00
browser_perf-options-show-idle-blocks-01.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-options-show-idle-blocks-02.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-options-show-jit-optimizations.js Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans 2018-03-12 19:46:35 -05:00
browser_perf-options-show-platform-data-01.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-options-show-platform-data-02.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-overview-render-01.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-overview-render-02.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-overview-render-03.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-overview-render-04.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-overview-selection-01.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-overview-selection-02.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-overview-selection-03.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-overview-time-interval.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-private-browsing.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-range-changed-render.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-recording-notices-01.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-recording-notices-02.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-recording-notices-03.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-recording-notices-04.js Bug 1499096 - Update tests using ok() to is();r=Standard8 2018-10-23 07:12:23 +00:00
browser_perf-recording-notices-05.js Bug 1499096 - Update wrong usage of ok() with todo_is();r=Standard8 2018-10-23 07:13:02 +00:00
browser_perf-recording-selected-01.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-recording-selected-02.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-recording-selected-03.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-recording-selected-04.js Bug 1489745 - reduce overhead of the performance test that also selects the memory r=gregtatum 2018-10-24 12:09:45 +00:00
browser_perf-recordings-clear-01.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-recordings-clear-02.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-recordings-io-01.js Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans 2018-03-12 19:46:35 -05:00
browser_perf-recordings-io-02.js Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans 2018-03-12 19:46:35 -05:00
browser_perf-recordings-io-03.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
browser_perf-recordings-io-04.js Bug 1366532 - Replaced uses of 'defer' with 'new Promise' in the devtools/client/performance directory. r=gregtatum 2018-07-06 04:30:53 -04:00
browser_perf-recordings-io-05.js Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans 2018-03-12 19:46:35 -05:00
browser_perf-recordings-io-06.js Bug 1366532 - Replaced uses of 'defer' with 'new Promise' in the devtools/client/performance directory. r=gregtatum 2018-07-06 04:30:53 -04:00
browser_perf-refresh.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-states.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-telemetry-01.js Bug 1468761 - Migrate external Telemetry tests to handle packed histograms r=chutten 2018-11-01 13:46:59 +00:00
browser_perf-telemetry-02.js Bug 1468761 - Migrate external Telemetry tests to handle packed histograms r=chutten 2018-11-01 13:46:59 +00:00
browser_perf-telemetry-03.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-telemetry-04.js Bug 1468761 - Migrate external Telemetry tests to handle packed histograms r=chutten 2018-11-01 13:46:59 +00:00
browser_perf-theme-toggle.js Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans 2018-03-12 19:46:35 -05:00
browser_perf-tree-abstract-01.js Bug 1492613 - Use document.createXULElement in devtools tests that explicitly expect XUL elements to be returned;r=jdescottes 2018-10-10 15:17:53 +00:00
browser_perf-tree-abstract-02.js Bug 1492613 - Use document.createXULElement in devtools tests that explicitly expect XUL elements to be returned;r=jdescottes 2018-10-10 15:17:53 +00:00
browser_perf-tree-abstract-03.js Bug 1492613 - Use document.createXULElement in devtools tests that explicitly expect XUL elements to be returned;r=jdescottes 2018-10-10 15:17:53 +00:00
browser_perf-tree-abstract-04.js Bug 1492613 - Use document.createXULElement in devtools tests that explicitly expect XUL elements to be returned;r=jdescottes 2018-10-10 15:17:53 +00:00
browser_perf-tree-abstract-05.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-tree-view-01.js Bug 1492613 - Use document.createXULElement in devtools tests that explicitly expect XUL elements to be returned;r=jdescottes 2018-10-10 15:17:53 +00:00
browser_perf-tree-view-02.js Bug 1492613 - Use document.createXULElement in devtools tests that explicitly expect XUL elements to be returned;r=jdescottes 2018-10-10 15:17:53 +00:00
browser_perf-tree-view-03.js Bug 1492613 - Use document.createXULElement in devtools tests that explicitly expect XUL elements to be returned;r=jdescottes 2018-10-10 15:17:53 +00:00
browser_perf-tree-view-04.js Bug 1492613 - Use document.createXULElement in devtools tests that explicitly expect XUL elements to be returned;r=jdescottes 2018-10-10 15:17:53 +00:00
browser_perf-tree-view-05.js Bug 1492613 - Use document.createXULElement in devtools tests that explicitly expect XUL elements to be returned;r=jdescottes 2018-10-10 15:17:53 +00:00
browser_perf-tree-view-06.js Bug 1492613 - Use document.createXULElement in devtools tests that explicitly expect XUL elements to be returned;r=jdescottes 2018-10-10 15:17:53 +00:00
browser_perf-tree-view-07.js Bug 1492613 - Use document.createXULElement in devtools tests that explicitly expect XUL elements to be returned;r=jdescottes 2018-10-10 15:17:53 +00:00
browser_perf-tree-view-08.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-tree-view-09.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-tree-view-10.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_perf-tree-view-11.js Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans 2018-03-12 19:46:35 -05:00
browser_perf-ui-recording.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_timeline-filters-01.js Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans 2018-03-12 19:46:35 -05:00
browser_timeline-filters-02.js Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans 2018-03-12 19:46:35 -05:00
browser_timeline-waterfall-background.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_timeline-waterfall-generic.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
browser_timeline-waterfall-rerender.js Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans 2018-03-12 19:46:35 -05:00
browser_timeline-waterfall-sidebar.js Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans 2018-03-12 19:46:35 -05:00
browser_timeline-waterfall-workers.js Bug 1366532 - Replaced uses of 'defer' with 'new Promise' in the devtools/client/performance directory. r=gregtatum 2018-07-06 04:30:53 -04:00
doc_allocs.html
doc_innerHTML.html Bug 1443081 - Apply spacing via `eslint --fix` for DevTools. r=jdescottes 2018-03-12 13:44:41 -05:00
doc_markers.html Bug 1454696 - Run eslint --fix for prefer-const;r=yulia 2018-06-01 12:36:09 +02:00
doc_simple-test.html
doc_worker.html Bug 1443081 - Apply spacing via `eslint --fix` for DevTools. r=jdescottes 2018-03-12 13:44:41 -05:00
head.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
js_simpleWorker.js Bug 1443081 - Apply spacing via `eslint --fix` for DevTools. r=jdescottes 2018-03-12 13:44:41 -05:00
moz.build