Cleaning jsterm history from previous test so it does not interfere with this one.
Also clearing history at the beginning of the test so we are future-proof.
MozReview-Commit-ID: 33OCfaSiskw
The parameters property in EvaluationResult message was a plain object,
whereas in other message types, it is an array. This could cause some issues
in the reducer, in particular for releasing actors.
Changing the parameters from object to array gives us a consistent way
of dealing with this property through the console app.
The change required the stubs to be updated, as well as a minor change in the
EvaluationResult component.
A test was added to make sure we do release actors from EvaluationResult messages.
MozReview-Commit-ID: LKQEFqCCw1U
This required to add an extra-check to the hasFocus function to make sure
the console document is also focused, since document.activeElement could
still be the jsterm input, even if the focus is on another document.
MozReview-Commit-ID: 72VfES8sXob
Previously we were using the regular clearOutput function, which
was doing too much when we only want to destroy the console. It was:
- dispatching an action so React did the update
- focusing the JSTerm.
By simply clearing the outputNode things are much snappier. Also, we tried
to not clear the console at all, but while destroying there was too much
repaint events happening that it would take the same time as doing it the
old way.
MozReview-Commit-ID: FrFqToG3nRg
Note: `cssMessages.js` changes were generated by running
`mach test devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/browser_webconsole_update_stubs_css_message.js`
MozReview-Commit-ID: 4UHmHcC5eWm
This patch copies the tests from the old frontend that are relevant
in the context of the new frontend. They are all added in the
browser.ini and all are skipped. The number of the bug to do the test
migration is indicated as a comment.
Some tests were renamed to match what they actually do, or to match
which component they test (console, webconsole, jsterm), or simply to remove
a bug number in the filename. In the latter case, a reference to the bug
was added inside the test if it wasn't already the case.
All the support files from the old frontend were copied over, because it would
have been time consuming to test if each one of them was used in the tests. A bug
will be filed to do a support files cleanup when all the tests are migrated.
MozReview-Commit-ID: GhXcCuVBXT5
This patch copies the tests from the old frontend that are relevant
in the context of the new frontend. They are all added in the
browser.ini and all are skipped. The number of the bug to do the test
migration is indicated as a comment.
Some tests were renamed to match what they actually do, or to match
which component they test (console, webconsole, jsterm), or simply to remove
a bug number in the filename. In the latter case, a reference to the bug
was added inside the test if it wasn't already the case.
All the support files from the old frontend were copied over, because it would
have been time consuming to test if each one of them was used in the tests. A bug
will be filed to do a support files cleanup when all the tests are migrated.
MozReview-Commit-ID: GhXcCuVBXT5
Using fill instead of filter we don't need to define each icon as
invertable or not. If the icon is a SVG and supports fill="context-fill"
then it will be inverted/highlighted etc... as expected.
If not then it won't be impacted by DevTools themes.
MozReview-Commit-ID: CLFprKMuCt9
This removes the fixtures for ObjectClient since it's now in its
own file, and add one for the DebuggerClient, because it's still
using non-web dependency (e.g. `Cu`).
MozReview-Commit-ID: 6OJM2HPwvOY
Fixing layout issue both in launchpad startup (panel for selecting a debugee), and
the console launchpad (scrollbar was missing on console output).
MozReview-Commit-ID: 7i5vFsLmRLa
In Bug 1403065, we introduce a server fix for that as well as some tests.
But they are testing specific server functions. Adding a test on the client
side will prevent any regression if we end up using other server methods.
MozReview-Commit-ID: D3FGGOtiTBw