cssPropertyIsValid was used only to find a compatible css unit when a number
was being incremented/decremented.
Because units are unlikely to be different between debuggees, a local DOM
node was used to validate the tested unit by applying and getting style on
the DOM node.
MozReview-Commit-ID: K0ldOgNRalg
VolumeUp was renamed to AudioVolumeUp in the latest draft and Chromium uses the new name. Therefore, we need to update this but Gaia uses the old name. So, we shouldn't rename on B2G until Gaia is fixed.
Note that this patch changes tests but they are not used by B2G. Therefore, just replacing with new name is enough.
Only forms.js is necessary #ifdef because the main purpose of forms.js is for B2G's IME framework. However, it's available on the other platforms if chrome needs to use it.
MozReview-Commit-ID: KzLVL5Y2dIN
VolumeDown was renamed to AudioVolumeDown in the latest draft and Chromium uses the new name. Therefore, we need to update this but Gaia uses the old name. So, we shouldn't rename on B2G until Gaia is fixed.
Note that this patch changes tests but they are not used by B2G. Therefore, just replacing with new name is enough.
Only forms.js is necessary #ifdef because the main purpose of forms.js is for B2G's IME framework. However, it's available on the other platforms if chrome needs to use it.
MozReview-Commit-ID: cq98qJnS8M
Changes in this patch:
* GCLI gave up with testing via phantomjs a while ago, but the docs didn't keep
up, so this fixes the docs.
* gcli/languages/command isn't used in Firefox, but on the web if a converter
wrongly produces a null DOM node, then the UI just looks blank, so this change
makes the error more obvious. However we don't use this in Firefox. I'd like to
remove the module, but not in this patch.
* The delegate type (used when we want to defer the type of a parameter, e.g.
with "pref set PREFNAME VALUE" where the type of value depends on PREFNAME)
forced children to be prediction-less. This allows them to decide for themselves
* The file type assumed that the local filesystem was the same as the remote one
which is clearly wrong. The change to gcli/types/file fixes that.
* Typo fix to gcli/util/util
* On very slow connections gcli/cli.js could get in a pickle where 2 changes
happened out of order. We've planned for this, but got in wrong, so this just
adds a bit of defensive programming.
MozReview-Commit-ID: H88W5UDCikM
Simple patch to correct errors in cookie host matching:
1. Match domains starting with a . in case this style was used e.g. .test.example.com
2. Match localhost URLS.
MozReview-Commit-ID: 9qqnsNaW5oK
5 tests of the styleeditor suite are importing shared/test/head.
Now that this also includes shared-head.js, it conflicts with the existing
styleeditor head file.
For now, the import was moved to the head, so it's always imported.
The tests have been updated accordingly.
Should file a follow-up to split the inspector test suites head files in a
head.js + helpers.js (see commandline/test). It should be possible to
include helpers in other tests without impact on the test lifecycle.
MozReview-Commit-ID: BU3LiEr0UtZ
shared/test/head had custom methods to open the Computed & Rule view.
They did not register any test actor and could be called several times
in the same test.
In order to reuse the openInspector method from inspector/test/head, the
tests have been modified.
We are moving from
openRuleView() -> do rule view tests -> openComputedView() -> do computed view tests
to
openInspector() -> select rule view -> do rule view tests -> select computed view -> do computed view tests
A bit more verbose for the tests themselves, but this will be useful when
migrating the shared tests to using the testActor.
MozReview-Commit-ID: 94cOqhPICyI
Include inspector/test/head in shared/test/head and remove the redundant functions.
Comparing with markup/test/head and computed/test/head, some functions were also
duplicated and have been moved up to inspector/test/head or shared-head.
Logic for opening the inspector will be moved in part2.
MozReview-Commit-ID: 5EIalpbf3cf