Граф коммитов

766 Коммитов

Автор SHA1 Сообщение Дата
Nicolas Chevobbe b98ddb3654 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

--HG--
rename : devtools/client/webconsole/test/test-network-request.html => devtools/client/webconsole/new-console-output/test/mochitest/test-network-request.html
extra : rebase_source : 06eac0cad3eba9961b61f1a2df2f2932c60dd2bc
2017-06-20 15:14:32 +02:00
Brian Grinstead 1b86a2bfab Bug 1364150 - Introduce debounce middleware; r=bgrins
MozReview-Commit-ID: Hu3rQ3iJHzP

--HG--
extra : rebase_source : 1f3d8b079a930eca7e4e807d6833e60258ef2bcf
2017-05-11 12:40:20 -07:00
Nicolas Chevobbe 0f4e353352 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

--HG--
extra : rebase_source : 5262b5b34bb86fec5c14b7056875b8f8b661262a
2017-06-16 10:03:05 +02:00
Paolo Amadini 10ee6a5c4e 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

--HG--
extra : rebase_source : 3a9ea310d3e4a8642aabbc10636c04bfe2e77070
2017-06-19 11:32:37 +01:00
Nicolas Chevobbe 85110cb318 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

--HG--
extra : rebase_source : c8dca67060c2bf6a61e32c78e9fb35b24d7801a9
2017-06-14 17:13:52 +02:00
Nicolas Chevobbe a878be4875 Bug 1307917 - Copy existing network messages tests to the new console. r=bgrins
MozReview-Commit-ID: CotlhuLJOii

--HG--
rename : devtools/client/webconsole/test/browser_netmonitor_shows_reqs_in_webconsole.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_netmonitor_shows_reqs_in_webconsole.js
rename : devtools/client/webconsole/test/browser_webconsole_shows_reqs_in_netmonitor.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_shows_reqs_in_netmonitor.js
extra : rebase_source : 72a1b5ddd0b175169e982aed3a31f5e1017c19a3
2017-06-19 18:11:25 +02:00
Sebastian Hengst 8bbb31290c 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 1ff213f913 Bug 1361541 - Fix warning messages in dev mode. r=Honza
MozReview-Commit-ID: KrndGb2zQuD

--HG--
extra : rebase_source : 8aa1368690b8263bdafabaf1d2bafc831c2b7696
2017-06-16 14:48:31 +02:00
Nicolas Chevobbe fdc91d2779 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

--HG--
extra : rebase_source : 298387e0f33ff226f6d096fd8786f29ddbd5a56f
2017-06-14 17:13:52 +02:00
Nicolas Chevobbe 632857032b 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

--HG--
extra : rebase_source : cdbdfdc7f5b2a1e3c71cb76cfcd42db5204332ff
2017-06-16 17:42:11 +02:00
Nicolas Chevobbe 3bad61fa25 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

--HG--
extra : rebase_source : 129a2edd1725e8eddc8ea20de3d38e1bc5f27f87
2017-06-12 09:18:51 +02:00
Jan Odvarko 9f1098e592 Bug 1370172 - Remove sdk/core/heritage from Console panel; r=zer0
MozReview-Commit-ID: GYH3p2spgZT

--HG--
extra : rebase_source : b93c167782c73a4e252cba1226c61a042c0f7875
2017-06-14 12:18:48 +02:00
Nicolas Chevobbe 13c8f2cf43 Bug 1370268 - Stop using Immutable.Record for messages types. r=bgrins
MozReview-Commit-ID: Lp4JnICQzcM

--HG--
extra : rebase_source : a0161745eef40c40d75aa042a9e63d4b4a737d81
2017-06-12 09:56:31 +02:00
Brian Grinstead 6d93cc1ff9 Bug 1371452 - Provide instructions for POSTing the profile from test_render_perf.html to perf-html;r=nchevobbe
MozReview-Commit-ID: HYdmANqxIg5

--HG--
extra : rebase_source : 6735ed2499e2b05731aaf1b6d04f42f0a4bc70be
2017-06-08 15:00:34 -07:00
Sebastian Hengst 1446fbd365 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

--HG--
extra : source : a3f4e0c311543afe8fb094bad0460befb679e235
2017-06-08 20:40:08 +02:00
Wes Kocher cf0077dc65 Merge autoland to m-c a=merge
MozReview-Commit-ID: BfLXAwELA2k
2017-06-08 18:35:34 -07:00
Ehsan Akhgari 3615b687a6 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 865c58e29c Bug 1364150 - Introduce debounce middleware; r=bgrins
MozReview-Commit-ID: Hu3rQ3iJHzP

--HG--
extra : rebase_source : c623b48d0055f4b0fb516c04ff5a1ec58961e7c5
2017-05-11 12:40:20 -07:00
Brian Grinstead bf1b0e6b82 Bug 1370659 - Add more measurements to test_render_perf.html and manually control the profiler;r=nchevobbe
MozReview-Commit-ID: EO1vlWTSFZt

--HG--
extra : rebase_source : aee1483ac01eb13571d13787c0e70adb110ebf3d
2017-06-07 09:02:39 -07:00
Nicolas Chevobbe 36225b1e0f 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

--HG--
extra : rebase_source : 465ed3a20c6c202fccf0af9f57f36dcd63db04e6
2017-06-06 11:56:22 +02:00
Nicolas Chevobbe 33b54ea1bc Bug 1363680 - Adapt mocha tests. r=Honza
MozReview-Commit-ID: Jl48dtpqlm7

--HG--
extra : rebase_source : aa94cd8db6785b19008f67086cd0a9ca3371bcab
2017-06-05 13:41:09 +02:00
Nicolas Chevobbe 0cb8dfb5b1 Bug 1363680 - Update stubs. r=Honza
MozReview-Commit-ID: ANFE45Ilr7w

--HG--
extra : rebase_source : ccd6b6c4b096975e22f3d9193f43504a97733ed8
2017-06-05 14:18:01 +02:00
Nicolas Chevobbe 568a26e351 Bug 1363680 - Move the repeat information outside of the message type. r=Honza
MozReview-Commit-ID: J7IJgEYnLhn

--HG--
extra : rebase_source : 2d216915e9e3c59b9d128f4484b340d902bc9c86
2017-06-05 14:15:09 +02:00
Ehsan Akhgari 30d7c12e39 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 b3c51a3e2d merge mozilla-central to autoland. r=merge a=merge 2017-06-03 20:16:49 +02:00
Joel Maher b44356bc28 Bug 1368364 - backout bug 1242505 as it causes browser/modules/ intermittent failures. r=paolo 2017-06-03 10:34:14 +02:00
Nicolas Chevobbe 49c34bcec9 Bug 1367318 - Trim console filter input. r=Honza
MozReview-Commit-ID: 8OAEUh6ekiP

--HG--
extra : rebase_source : 9daae96d601fa1404210a59a7f947ac6ad1f62fe
2017-06-02 09:52:27 +02:00
Nicolas Chevobbe 5f016b9c77 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

--HG--
extra : rebase_source : 23b86faa00d08a80f2cb21291c0df3b4c8113e73
2017-06-01 10:23:51 +02:00
Nicolas Chevobbe a52529fac7 Bug 1363678 - Adapt tests to the new filtering logic. r=bgrins,Honza
MozReview-Commit-ID: Kv4fmQ4hU9c

--HG--
extra : rebase_source : 381c1335cb67c17c98922b089235889b06bbc6ec
2017-05-31 09:32:32 +02:00
Nicolas Chevobbe d3fa8435f5 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

--HG--
extra : rebase_source : 37a8159401763c07244f6495a28d64406f7bff0a
2017-05-31 14:00:15 +02:00
Nicolas Chevobbe 4a9f505eb8 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

--HG--
extra : rebase_source : 290c315b91896765f3a249fbf75449cfa66a710f
2017-05-31 09:27:43 +02:00
Luca Greco a977d84eda Bug 1300590 - Implement support for $0 and inspect bindings in devtools.inspectedWindow.eval. r=aswan,ochameau
MozReview-Commit-ID: CHuc57tfgzo

--HG--
rename : browser/components/extensions/test/browser/browser_ext_devtools_inspectedWindow.js => browser/components/extensions/test/browser/browser_ext_devtools_inspectedWindow_eval_bindings.js
extra : rebase_source : 0e207c6d422b0227ec867e08e05a6a323dc3664b
2017-02-15 14:54:50 +01:00
Jan Odvarko 62685cf8c0 Bug 1368022 - Remove autoscroll property from UI reducer; r=nchevobbe
MozReview-Commit-ID: IwOvNrJjS1l

--HG--
extra : rebase_source : b2711c0b8f52a66da44aab1a94d1b26da9463699
2017-05-30 17:03:34 +02:00
Nicolas Chevobbe 51bd2623bb 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

--HG--
extra : rebase_source : 9f15782b64657eb6a31eefcabbcf9775d706cc07
2017-05-29 10:30:32 +02:00
Carsten "Tomcat" Book d9167ce058 Backed out changeset 9b891f690b98 (bug 1367395) for eslint failure 2017-05-30 09:20:02 +02:00
Nicolas Chevobbe af9a63d7d2 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

--HG--
extra : rebase_source : bcf5950bbf2fb63c0a2ff1a99f578eea99379745
2017-05-29 10:30:32 +02:00
Sebastian Hengst 6f73ea710d 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 096dd39d81 Bug 1368022 - Remove autoscroll property from UI reducer; r=nchevobbe
MozReview-Commit-ID: 6KnCE7uj6pz

--HG--
extra : rebase_source : bd5ce92ca83677dead72330d1f51ce85fbb911db
2017-05-29 10:33:44 +02:00
Michael Kohler a08b8034b2 Bug 1256768 - Fix ESLint errors/warnings in devtools/client/webconsole/console-output.js r=nchevobbe
MozReview-Commit-ID: 76jPTnoqWq7

--HG--
extra : rebase_source : 4bb78c07caccfff16796dbbcf5b56092cb9a300a
2017-05-20 22:54:41 +02:00
Paolo Amadini 30ea634bb0 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

--HG--
extra : rebase_source : 5a10a3ebbfe0ce2a801330041f95447c313a9a70
extra : source : 6f0394b523a66dab444b8551deb8f3c6c81d8f31
2017-05-25 15:00:49 +01:00
Sebastian Hengst ea55cd0be2 Backed out changeset 6f0394b523a6 (bug 1242505) 2017-05-28 11:31:01 +02:00
Paolo Amadini 94c629ed8c 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

--HG--
extra : rebase_source : 3a7720091180a770b32b595f8094c0d20170166d
2017-05-25 15:00:49 +01:00
Jan Odvarko b6773ad8a8 Bug 1367266 - Properly calculate autoscroll prop; r=nchevobbe
MozReview-Commit-ID: K5fJX7HzxGD

--HG--
extra : rebase_source : 858c15dcf8122ee0604b09bca4f7c3d557d41824
2017-05-26 12:51:36 +02:00
Jan Odvarko f9e6218e28 Bug 1363696 - Compute the indent of a message in the message add reducer; r=nchevobbe
MozReview-Commit-ID: EAebgUG0FTh

--HG--
extra : rebase_source : 9b08beb2a4e855d748aabd5ca68749e15c2bbd7f
2017-05-26 11:20:57 +02:00
Sebastian Hengst 0abfc566c4 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 71a0b2c34b Bug 1363696 - Compute the indent of a message in the message add reducer; r=nchevobbe
MozReview-Commit-ID: EAebgUG0FTh

--HG--
extra : rebase_source : 3586a5fa0d6c99d74433effb5e7b886693c3b679
2017-05-26 08:28:52 +02:00
Oriol 652cfe6316 Bug 1297466 - Do not attempt to open Function.prototype in Debugger. r=bgrins
--HG--
extra : rebase_source : fed13d5c980f853c313d6b62a7812af538bd79cb
2017-05-15 16:47:00 -04:00
Brian Grinstead ec38416ba5 Bug 1307936 - Reset filter prefs in between console mochitests;r=Honza
MozReview-Commit-ID: C2yIt8Kmw8X

--HG--
extra : rebase_source : 236aef0a8ed1ade7473ad19e1a11d4f94c3fbd83
2017-05-23 15:30:17 -07:00
Jan Odvarko 6a123ea736 Bug 1307884 - Implement tests; r=bgrins,nchevobbe
MozReview-Commit-ID: KdYSPciSvJk

--HG--
extra : rebase_source : e9f905571608ae4386ea528d3f373e587c7121df
2017-05-22 19:59:28 +02:00
Jan Odvarko 29ca14c02a Bug 1307884 - Remove prune function; r=bgrins
MozReview-Commit-ID: B6VGrJOe0sk

--HG--
extra : rebase_source : 31e80ce3ea2dc3734a01a83e8871607d79fa3020
2017-05-22 19:59:20 +02:00