Commit Graph
767 Commits
Author SHA1 Message Date
Jan Odvarko ff5dbd46a2 Bug 1375458 - New alias for debounce module; r=nchevobbe
MozReview-Commit-ID: CQ62g6ZnlGk
2017-06-22 13:19:15 +02:00
Nicolas Chevobbe 05d4b607fe Bug 1307954 - Add integration test for clicking on network event message url; r=Honza.
This ensures that clicking on a message open the netmonitor panel, with the network
item clicked being selected in the netmonitor panel.
The loadDocument was edited to accept a URL instead of relying on the existence of
a TEST_PATH variable. Callsites where thus modified.

MozReview-Commit-ID: 3dbX1Myxirz
2017-06-20 15:14:32 +02:00
Brian Grinstead 1a7887e736 Bug 1364150 - Introduce debounce middleware; r=bgrins
MozReview-Commit-ID: Hu3rQ3iJHzP
2017-05-11 12:40:20 -07:00
Nicolas Chevobbe ab5d787675 Bug 1373568 - Retrieve message data in MessageContainer instead of in ConsoleOutput; r=bgrins.
Prior to this patch, we were retrieving the message data in the ConsoleOutput
render, for each message. This means that for each message addition, we were
retrieving the data for each message in the store.
This doesn't impact performance if there are not many messages in the store, but
if the store is "full", we might end up calling the function to get those messages
a lot. And since the messages are in an Immutable.OrderedMap, it can be very costly.

Moving the retrieval of the message data in ConsoleOutput allow us to only call this
function when a message is added or updated, which allow us to save some time on
the rendering path.

MozReview-Commit-ID: S4NSSW5Mvw
2017-06-16 10:03:05 +02:00
Paolo Amadini 7afba17088 Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P
2017-06-19 11:32:37 +01:00
Nicolas Chevobbe bedc1fd66a Bug 1372814 - Add test case and performance measurement in test-perf.html . r=bgrins
Add a test case to measure streaming time when the store already hit the log limit so
we can have data about pruning.
Switch to performance.mark and performance.measure for time measurement instead of the
custom timeit function we had.
This allow us to have precise data, and also those are written in the profile and then
shown in perf-html, so we can have a better overview of what's going on during the test.

MozReview-Commit-ID: 2nNmukxmUso
2017-06-14 17:13:52 +02:00
Nicolas Chevobbe 98c0f54e5c Bug 1307917 - Copy existing network messages tests to the new console. r=bgrins
MozReview-Commit-ID: CotlhuLJOii
2017-06-19 18:11:25 +02:00
Sebastian Hengst 9630acb61e Backed out changeset ee03c4d8ee6c (bug 1372814) for eslint failures in test_render_perf.html. r=backout 2017-06-19 19:25:38 +02:00
Nicolas Chevobbe 5b53eaba61 Bug 1361541 - Fix warning messages in dev mode. r=Honza
MozReview-Commit-ID: KrndGb2zQuD
2017-06-16 14:48:31 +02:00
Nicolas Chevobbe 3a0072f3a0 Bug 1372814 - Add test case and performance measurement in test-perf.html . r=bgrins
Add a test case to measure streaming time when the store already hit the log limit so
we can have data about pruning.
Switch to performance.mark and performance.measure for time measurement instead of the
custom timeit function we had.
This allow us to have precise data, and also those are written in the profile and then
shown in perf-html, so we can have a better overview of what's going on during the test.

MozReview-Commit-ID: 2nNmukxmUso
2017-06-14 17:13:52 +02:00
Nicolas Chevobbe cb201542f8 Bug 1370486 - Add mocha tests for messages store cleaning. r=Honza
In the process of adding those tests, I realized the cleanup was
not effective. There were some bugs for Immutable List (we can't
use delete in a withMutation callback), and in object/arrays (we
we're using Array.includes with another array as a parameter).
These were fixed, and the new tests are now passing.

MozReview-Commit-ID: NrKjLuu25
2017-06-16 17:42:11 +02:00
Nicolas Chevobbe 918358d295 Bug 1341308 - Fix network stub check test intermittent. r=bgrins,Honza
In the console, we were assuming that eventTiming was the last
of the eight networkUpdate that happen for a given network request.
Unfortunately, we can't ensure the order in which those updates come,
so the test was intermitently failing when eventTiming was fired
before other updates.
To fix this, we don't look for a specific update, but rather check that
all of the 8 updates happened.

MozReview-Commit-ID: Iv0TIHoqkyv
2017-06-12 09:18:51 +02:00
Jan Odvarko adb9d95cec Bug 1370172 - Remove sdk/core/heritage from Console panel; r=zer0
MozReview-Commit-ID: GYH3p2spgZT
2017-06-14 12:18:48 +02:00
Nicolas Chevobbe 2efb91d07c Bug 1370268 - Stop using Immutable.Record for messages types. r=bgrins
MozReview-Commit-ID: Lp4JnICQzcM
2017-06-12 09:56:31 +02:00
Brian Grinstead 33767b2870 Bug 1371452 - Provide instructions for POSTing the profile from test_render_perf.html to perf-html;r=nchevobbe
MozReview-Commit-ID: HYdmANqxIg5
2017-06-08 15:00:34 -07:00
Sebastian Hengst dd48d1ba6b Backed out changeset 634b361b1b9d (bug 1364150) for scroll position failures in devtools' browser_webconsole_keyboard_accessibility.js. r=backout a=merge
MozReview-Commit-ID: KjkF0dbDrWa
2017-06-08 20:40:08 +02:00
Wes Kocher ff06c27464 Merge autoland to m-c a=merge
MozReview-Commit-ID: BfLXAwELA2k
2017-06-08 18:35:34 -07:00
Ehsan Akhgari a79ca5b5e4 Bug 1361461 - Dispatch the compartment-nuking part of WindowDestroyedEvent to the idle queue; r=smaug 2017-06-08 09:49:49 -04:00
Brian Grinstead 5263c4d581 Bug 1364150 - Introduce debounce middleware; r=bgrins
MozReview-Commit-ID: Hu3rQ3iJHzP
2017-05-11 12:40:20 -07:00
Brian Grinstead 49c957355d Bug 1370659 - Add more measurements to test_render_perf.html and manually control the profiler;r=nchevobbe
MozReview-Commit-ID: EO1vlWTSFZt
2017-06-07 09:02:39 -07:00
Nicolas Chevobbe 74568bbd46 Bug 1363681 - Move the network update information outside of the message type. r=Honza
This moves network update messages to their own property on the store.
We take this as an opportunity to only dispatch the last network update,
i.e. `eventTimings` since it has all we need and saves us some time (there
are 8 network update per network messages, which can be costly).

MozReview-Commit-ID: 2AQN3IlgHg7
2017-06-06 11:56:22 +02:00
Nicolas Chevobbe 1dcddd79ca Bug 1363680 - Adapt mocha tests. r=Honza
MozReview-Commit-ID: Jl48dtpqlm7
2017-06-05 13:41:09 +02:00
Nicolas Chevobbe d68d7952eb Bug 1363680 - Update stubs. r=Honza
MozReview-Commit-ID: ANFE45Ilr7w
2017-06-05 14:18:01 +02:00
Nicolas Chevobbe a53b63b8ae Bug 1363680 - Move the repeat information outside of the message type. r=Honza
MozReview-Commit-ID: J7IJgEYnLhn
2017-06-05 14:15:09 +02:00
Ehsan Akhgari cb9a3d6c92 Bug 1370102 - Make browser_console_dead_objects.js correctly wait for the window to be destroyed instead of relying on the scheduling of the corresponding event; r=kmag 2017-06-04 19:33:53 -04:00
Sebastian Hengst 92d4e91332 merge mozilla-central to autoland. r=merge a=merge 2017-06-03 20:16:49 +02:00
Joel Maher d1f0b3328d Bug 1368364 - backout bug 1242505 as it causes browser/modules/ intermittent failures. r=paolo 2017-06-03 10:34:14 +02:00
Nicolas Chevobbe 8add8498ce Bug 1367318 - Trim console filter input. r=Honza
MozReview-Commit-ID: 8OAEUh6ekiP
2017-06-02 09:52:27 +02:00
Nicolas Chevobbe 506a0838a5 Bug 1363678 - Allow to pass a custom logLimit to configureStore. r=bgrins
The idea is to allow tests to set their own logLimit without
having to use Services.setIntPref.
To do so, we also need to not retrieve the logLimit from Services
in the messages reducer. Since we already have the logLimit in the
store, we can retrieve it directly from the store by passing the
prefs state to the messages reducer.
We take this as an opportunity to revisit the createRootReducer function
to be future proof: if any new reducer is added, they should just work
as if we were using combineReducers.

With those changes, we can set a lower logLimit in some tests that used
to have a defined timeout since they were taking too much time.

MozReview-Commit-ID: 7j80XoKkJ1y
2017-06-01 10:23:51 +02:00
Nicolas Chevobbe 755adfa46e Bug 1363678 - Adapt tests to the new filtering logic. r=bgrins,Honza
MozReview-Commit-ID: Kv4fmQ4hU9c
2017-05-31 09:32:32 +02:00
Nicolas Chevobbe dd71bf8e8b Bug 1363678 - Refactor how we do the messages limit on the reducer. r=Honza
The parent commit did some changes to the architecture of the store that
needed to be handled on the limit messages function.
We take advantage of this to rewrite the functions involved to be as efficient
as possible. To do that, we limit the work done by Immutable structures by doing
changes in them only once per added messages.

MozReview-Commit-ID: 6VzobhWzK40
2017-05-31 14:00:15 +02:00
Nicolas Chevobbe 885cbcb798 Bug 1363678 - Move the filtering logic to the reducer. r=bgrins
We used to do the filtering on the selector, which can be costly because
we're looping through all the messages of the store on each new message.
Moving the logic to the reducer allow us to be more thoughtful about which
messages to evaluate and when.

In order to make this change, we need to pass the filter state to the message
reducer. This is done by ditching the combineReducers helper function and do
the plumbing by ourselves, which isn't complex.

MozReview-Commit-ID: Lw37XgEFf7e
2017-05-31 09:27:43 +02:00
Luca Greco 8c05041220 Bug 1300590 - Implement support for $0 and inspect bindings in devtools.inspectedWindow.eval. r=aswan,ochameau
MozReview-Commit-ID: CHuc57tfgzo
2017-02-15 14:54:50 +01:00
Jan Odvarko 559f9ca162 Bug 1368022 - Remove autoscroll property from UI reducer; r=nchevobbe
MozReview-Commit-ID: IwOvNrJjS1l
2017-05-30 17:03:34 +02:00
Nicolas Chevobbe 0ad76fa4c0 Bug 1367395 - Fix mocha filter component test. r=Honza
Since the FilterButton component is now only a function that returns a React Element,
it looks like Enzyme can't do the comparison we were doing before.
Checking directly the resulting html, even if non-optimal, fixes the test.

MozReview-Commit-ID: 5fAk8WyYCaF
2017-05-29 10:30:32 +02:00
Carsten "Tomcat" Book 3785e8ef32 Backed out changeset 9b891f690b98 (bug 1367395) for eslint failure 2017-05-30 09:20:02 +02:00
Nicolas Chevobbe dbbdffc8ae Bug 1367395 - Fix mocha filter component test. r=Honza
Since the FilterButton component is now only a function that returns a React Element,
it looks like Enzyme can't do the comparison we were doing before.
Checking directly the resulting html, even if non-optimal, fixes the test.

MozReview-Commit-ID: 5fAk8WyYCaF
2017-05-29 10:30:32 +02:00
Sebastian Hengst d2b796d929 Backed out changeset 7b9687c90aea (bug 1368022) for eslint failures, e.g. in console-output.js. r=backout 2017-05-29 18:08:01 +02:00
Jan Odvarko 895e0bfc4e Bug 1368022 - Remove autoscroll property from UI reducer; r=nchevobbe
MozReview-Commit-ID: 6KnCE7uj6pz
2017-05-29 10:33:44 +02:00
Michael Kohler 5093337f98 Bug 1256768 - Fix ESLint errors/warnings in devtools/client/webconsole/console-output.js r=nchevobbe
MozReview-Commit-ID: 76jPTnoqWq7
2017-05-20 22:54:41 +02:00
Paolo Amadini b83c1b93e8 Bug 1242505 - Part 5 - Remove obsolete whitelisting of unhandled rejections. r=Mossop
The whitelisting function thisTestLeaksUncaughtRejectionsAndShouldBeFixed was replaced by expectUncaughtRejection, and existing calls did not take effect anymore.

MozReview-Commit-ID: 3uOxkgWYWEz
2017-05-25 15:00:49 +01:00
Sebastian Hengst 512a2a8b07 Backed out changeset 6f0394b523a6 (bug 1242505) 2017-05-28 11:31:01 +02:00
Paolo Amadini 09c88b0eac Bug 1242505 - Part 5 - Remove obsolete whitelisting of unhandled rejections. r=Mossop
The whitelisting function thisTestLeaksUncaughtRejectionsAndShouldBeFixed was replaced by expectUncaughtRejection, and existing calls did not take effect anymore.

MozReview-Commit-ID: 3uOxkgWYWEz
2017-05-25 15:00:49 +01:00
Jan Odvarko 5c4a37c17b Bug 1367266 - Properly calculate autoscroll prop; r=nchevobbe
MozReview-Commit-ID: K5fJX7HzxGD
2017-05-26 12:51:36 +02:00
Jan Odvarko a999bac0e4 Bug 1363696 - Compute the indent of a message in the message add reducer; r=nchevobbe
MozReview-Commit-ID: EAebgUG0FTh
2017-05-26 11:20:57 +02:00
Sebastian Hengst 54d8c34dad Backed out changeset ac956e9a5d32 (bug 1363696) for eslint failure at devtools/client/webconsole/new-console-output/components/console-output.js:85. r=backout 2017-05-26 10:35:30 +02:00
Jan Odvarko f08f21e0fa Bug 1363696 - Compute the indent of a message in the message add reducer; r=nchevobbe
MozReview-Commit-ID: EAebgUG0FTh
2017-05-26 08:28:52 +02:00
Oriol 3649ea47ca Bug 1297466 - Do not attempt to open Function.prototype in Debugger. r=bgrins 2017-05-15 16:47:00 -04:00
Brian Grinstead 7cc95f8758 Bug 1307936 - Reset filter prefs in between console mochitests;r=Honza
MozReview-Commit-ID: C2yIt8Kmw8X
2017-05-23 15:30:17 -07:00
Jan Odvarko 17cd5880da Bug 1307884 - Implement tests; r=bgrins,nchevobbe
MozReview-Commit-ID: KdYSPciSvJk
2017-05-22 19:59:28 +02:00