Commit Graph
303 Commits
Author SHA1 Message Date
Daisuke Akatsuka 5aebd04bc4 Bug 1407945: Add a test for the tooltip in RDM. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D38827
2019-07-29 08:32:46 +00:00
Bogdan Tara 7c2c63917b Backed out 2 changesets (bug 1407945) for failures on browser_tooltip.js CLOSED TREE
Backed out changeset 2ea007508cd3 (bug 1407945)
Backed out changeset 43553c5c7033 (bug 1407945)
2019-07-29 09:16:30 +03:00
Daisuke Akatsuka e883120f6f Bug 1407945: Add a test for the tooltip in RDM. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D38827
2019-07-29 02:29:44 +00:00
Hiroyuki Ikezoe a9149d2db0 Bug 1498729 - Fix meta viewport content to not scale the document in browser_touch_simulation.js. r=mtigley
The test is supposed that the document is not scalable at all when
"minimum-scale=maximum-scale" is set in the viewport meta content, but it's
actually invalid.  A correct content is assumed "minimum-scale=1,maximum-scale=1"
so that the document is not scaled at all.

The reason why this check has passed is that "user-scalable=no" which is set
right before this check remains in cache so that the content of the meta
viewport becomes "user-scalable=no,minimum-scale=maximum-scale" which means the
document is not scalable.  But we are going to fix this weird behavior in this
commit series so that we are no longer able to rely on the cached
"user-scalable=no" value.

Differential Revision: https://phabricator.services.mozilla.com/D38919
2019-07-25 14:22:57 +00:00
Kris Maglione 0f4a61c1c2 Bug 1566952: Part 1 - Annotate mochitests that crash with Fission enabled. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D38725
2019-07-17 13:37:48 -07:00
Julian Descottes a333666ab9 Bug 1486717 - Do not emit contextmenu from parentprocess if target is the RDM iframe r=mconley,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D37691
2019-07-18 16:46:59 +00:00
Kris Maglione 9f00b7395d Bug 1566182: Annotate mochitests that fail with Fission enabled. r=mccr8
My preference was to annotate most of the failing tests with `fail-if` so that
if they start passing, the `fail-if` needs to be removed and they need to keep
passing. That doesn't work for tests that timeout, or which trigger failures
from their cleanup functions, however, so those tests need skip-if. And tests
with fail in their cleanup functions likely leave the browser in an
inconsistent state for subsequent tests, anyway, so really should be skipped
regardless.

There are some remaining tests which still fail because of crashes. I chose
not to skip them here, but to fix the crashes in separate bugs instead.

Differential Revision: https://phabricator.services.mozilla.com/D38247
2019-07-15 16:19:32 -07:00
arthur.iakab 21f8d052a5 Backed out 2 changesets (bug 1552168) for causing mochitest crashes on test_menubar.xul CLOSED TREE
Backed out changeset 83590619ce06 (bug 1552168)
Backed out changeset 7ff83cc5d33a (bug 1552168)
2019-07-03 16:08:23 +03:00
Sebastian Streich 6348409050 Bug 1552168 - Fix Tests that rely on data_uri.unique_opaque_origin r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D35006
2019-07-03 10:23:46 +00:00
Jean-Yves Avenard b5a253c7fa Bug 1556131 - P2. Don't attempt to needlessly change preference during test. r=bradwerth
In an attempt to reduce intermittent failures, the pref apz.keyboard.enabled is set to false. However, this preference is only ever read once, on startup before any JS test has a chance to run and modify the pref..

It doesn't do what it was thought to do.

Differential Revision: https://phabricator.services.mozilla.com/D34860
2019-06-13 15:55:48 +00:00
Edwin Gao a48c9ad3a9 Bug 1555454 - migrate mochitest-devtools-chrome to macosx1014 r=gbrown
Changes:
- migrate `mochitest-devtools-chrome` to macosx1014

Differential Revision: https://phabricator.services.mozilla.com/D34753
2019-06-12 21:21:32 +00:00
Micah Tigley 650c084d72 Bug 1556533 - Fix RDM simulating orientationchange event when the page is refreshed. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D33734
2019-06-08 21:35:42 +00:00
Bogdan Tara cae644d5ae Backed out changeset f4ea30c29aa7 (bug 1556533) for browser_orientationchange_event.js failures CLOSED TREE 2019-06-07 04:54:14 +03:00
Micah Tigley fe18dc1d5c Bug 1556533 - Fix RDM simulating orientationchange event when the page is refreshed. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D33734
2019-06-07 00:00:55 +00:00
Bogdan Tara bf5e2495a2 Backed out changeset 91643c6f9a42 (bug 1556533) for es lint failure CLOSED TREE 2019-06-07 00:22:18 +03:00
Micah Tigley e4d1e3eb06 Bug 1556533 - Fix RDM simulating orientationchange event when the page is refreshed. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D33734
2019-06-06 19:18:16 +00:00
Micah Tigley 420b30e8cf Bug 1351487 - Part 2: Add tests for ensuring that window screen sizing values reported in RDM are correct. r=bradwerth
Depends on D32410

Differential Revision: https://phabricator.services.mozilla.com/D33678
2019-06-05 00:29:36 +00:00
Brad Werth 6889d845d4 Bug 1555511 Part 4: Add a test of resizing a document with meta viewport minimum-scale. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D33100
2019-06-04 22:25:12 +00:00
Brad Werth d9edbde0c9 Bug 1555511 Part 3: Refactor viewport resize test helper functions. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D33362
2019-06-04 22:25:08 +00:00
Andreea Pavel 78a7cf71f7 Backed out 4 changesets (bug 1555511) for failing dt at browser_boxmodel_pseudo-element.js on a CLOSED TREE
Backed out changeset e0cd61fa79ed (bug 1555511)
Backed out changeset 8c6e5561abed (bug 1555511)
Backed out changeset 2a85e3af81bb (bug 1555511)
Backed out changeset 262d2cad6407 (bug 1555511)
2019-06-05 11:53:38 +03:00
Brad Werth 306e87a197 Bug 1555511 Part 4: Add a test of resizing a document with meta viewport minimum-scale. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D33100
2019-06-04 22:25:12 +00:00
Brad Werth 6805fa9827 Bug 1555511 Part 3: Refactor viewport resize test helper functions. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D33362
2019-06-04 22:25:08 +00:00
Mihai Alexandru Michis 90f30a2289 Backed out 4 changesets (bug 1555511) for devtools failures at browser_viewport_resizing_minimum_scale.js CLOSED TREE
Backed out changeset 80b9b4eb8305 (bug 1555511)
Backed out changeset d9ce18a4d7cd (bug 1555511)
Backed out changeset 5e9e587d0622 (bug 1555511)
Backed out changeset 24e136f27469 (bug 1555511)
2019-06-04 12:43:01 +03:00
Brad Werth fba44063de Bug 1555511 Part 4: Add a test of resizing a document with meta viewport minimum-scale. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D33100
2019-06-03 18:28:54 +00:00
Brad Werth 0167855712 Bug 1555511 Part 3: Refactor viewport resize test helper functions. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D33362
2019-06-03 18:28:42 +00:00
Micah Tigley 5caa6d2cdb Bug 1554695 - RDM reports incorrect angle when rotated. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D33546
2019-06-03 20:24:02 +00:00
Gurzau Raul 096ce3ed07 Backed out 4 changesets (bug 1555511) for failing at browser_viewport_resizing_minimum_scale.js
Backed out changeset 6988b151bbe7 (bug 1555511)
Backed out changeset aa1c32a38785 (bug 1555511)
Backed out changeset 999f3af17edf (bug 1555511)
Backed out changeset 1069871269f7 (bug 1555511)
2019-06-03 03:25:58 +03:00
Brad Werth 8b7eae76ae Bug 1555511 Part 4: Add a test of resizing a document with meta viewport minimum-scale. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D33100
2019-05-31 22:11:46 +00:00
Brad Werth 1aeb9da7c4 Bug 1555511 Part 3: Refactor viewport resize test helper functions. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D33362
2019-05-31 22:11:24 +00:00
Micah Tigley be45184a02 Bug 1107456 - Part 2: Test that RDM's viewport's outer size values remain unaffected at different zoom levels. r=bradwerth
Depends on D32778

Differential Revision: https://phabricator.services.mozilla.com/D33239
2019-05-31 17:45:21 +00:00
yulia d6c65c3294 Bug 1042642 - use EventEmitter instead of eventSource on the DebuggerClient; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D29371
2019-05-29 15:51:28 +00:00
Micah Tigley 88420b1463 Bug 1352070 - Part 2: RDM tests for ensuring that the values for the selected device's outerHeight/outerWidth properties are correct. r=bradwerth
Depends on D32253

Differential Revision: https://phabricator.services.mozilla.com/D32352
2019-05-24 16:58:53 +00:00
Noemi Erli e3178bd65e Backed out changeset dc38da197244 (bug 1552464) for devtools failures in browser_telemetry_viewport_change.js 2019-05-24 15:48:34 +03:00
Razvan Caliman e4c1f69858 Bug 1552464 - Add telemetry probe to count the number of viewport changes in RDM. r=mtigley,nchevobbe.
This patch adds telemetry instrumentation to count the number of times the RDM viewport properties are changed (dimensions and rotation). This count will be correlated with the panel open count and time spent open to refine the baseline for RDM usage and filter out accidental usage.

A new Redux middleware, `telemetryMiddleware`, is introduced to the RDM Redux store. This observes actions dispatched to the store. For `RESIZE_VIEWPORT` and `ROTATE_VIEWPORT` actions, it increases a numeric value for the new scalar telemetry probe, `"devtools.responsive.viewport_change_count"`.

Other actions may be observed in this middleware for future telemetry instrumentation of RDM.

The `RESIZE_VIEWPORT` action is a dispatched with a high frequency when dragging to resize. Therefore, we debounce logging for this action. To ensure the test can reliably test counting this action without adding needless complexity to account for the asynchronicity, the `debounce()` utility is extended with an `immediate` parameter to cause the very first call to be executed immediately before going into the debounce behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D31645
2019-05-24 08:52:41 +00:00
Micah Tigley 1e019458d6 Bug 1357774 - Part 2: Add the ability to update orientation state of a simulated device in RDM r=gl
This patch gives the RDM UI the ability to update the screen orientation based on the orientation of the simulated device screen. It fixes the following issues:

  - Initializing the orientation state of the selected device when RDM is opened.
  - Updating orientation state when the rotate button in the RDM toolbar is pressed.
  - Updating the orientation state when a new device is selected.

There are three actions creators that are responsible for notifying the ResponsiveUI manager, `changeDevice`, `restoreDeviceState`, and `rotateViewport`. In particular:



  - `restoreDeviceState` is dispatched when the Responsive UI has finished initializing. If a previous RDM session had a device selected, then this action creator will also dispatch the `changeDevice` action to update the RDM UI to reflect the currently selected device.
  - `changeDevice` is dispatched when a device is selected.
  - `rotateViewport` is dispatched when the rotate button is clicked in the RDM toolbar.

When either of these actions is dispatched, we post a "viewport-orientation-change" message to the window that notifies the manager to update the screen orientation accordingly.

Finally, when RDM is closed, we need to ensure the original physical screen orientation is restored. We do this by calling the `setRDMPaneOrientation` on the docShell's document in the content frame script.

Differential Revision: https://phabricator.services.mozilla.com/D30440
2019-05-22 20:07:13 +00:00
Oana Pop Rus dde2ee0df5 Backed out changeset 3c2a368a4c8b (bug 1552464) for xpcshell failures on test_rotate_viewport.js on a CLOSED TREE 2019-05-22 14:57:46 +03:00
Razvan Caliman bd9b48169f Bug 1552464 - Add telemetry probe to count the number of viewport changes in RDM. r=mtigley,nchevobbe.
This patch adds telemetry instrumentation to count the number of times the RDM viewport properties are changed (dimensions and rotation). This count will be correlated with the panel open count and time spent open to refine the baseline for RDM usage and filter out accidental usage.

A new Redux middleware, `telemetryMiddleware`, is introduced to the RDM Redux store. This observes actions dispatched to the store. For `RESIZE_VIEWPORT` and `ROTATE_VIEWPORT` actions, it increases a numeric value for the new scalar telemetry probe, `"devtools.responsive.viewport_change_count"`.

Other actions may be observed in this middleware for future telemetry instrumentation of RDM.

The `RESIZE_VIEWPORT` action is a dispatched with a high frequency when dragging to resize. Therefore, we debounce logging for this action. To ensure the test can reliably test counting this action without adding needless complexity to account for the asynchronicity, the `debounce()` utility is extended with an `immediate` parameter to cause the very first call to be executed immediately before going into the debounce behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D31645
2019-05-21 18:40:23 +00:00
Brad Werth 732482d7b9 Bug 1322385 Part 2: Add a test that RDM content triggers typeahead find correctly. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D29085
2019-05-16 18:12:37 +00:00
Brad Werth b9edaab3a6 Bug 1541175 Part 3: Update test expectations. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D26614
2019-05-03 23:06:54 +00:00
Micah Tigley ed5d1984b6 Bug 1509255 - Simulate 'orientationchange' event when RDM viewport is rotated. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D29308
2019-05-03 16:32:22 +00:00
Coroiu Cristina 760e201707 Backed out changeset 20874bfade8e (bug 1509255) for xpcshell failures at devtools/client/responsive.html/test/unit/test_rotate_viewport.js 2019-05-03 18:07:43 +03:00
Micah Tigley aa8774871a Bug 1509255 - Simulate 'orientationchange' event when RDM viewport is rotated. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D29308
2019-05-03 14:00:37 +00:00
Daniel Varga a3d490c883 Backed out 2 changesets (bug 1322385) for mochitest failure at: toolkit/content/tests/chrome/test_findbar_entireword.xul
Backed out changeset 31a0bd977b2f (bug 1322385)
Backed out changeset feef45c56170 (bug 1322385)
2019-04-30 22:10:33 +03:00
Brad Werth 50221a8f5a Bug 1322385 Part 2: Add a test that RDM content triggers typeahead find correctly. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D29085
2019-04-29 22:01:07 +00:00
Brad Werth 4f0e660aab Bug 1538681 Part 2: Add a perma-fail test that scrollbars appear in proper location after resizing viewport. r=botond,gl
The test is marked as perma-fail because there are complications with
getting RDM and WindowSnapshot.js to work together. 4 approaches are
discussed in the test itself, and one is attempted, which perma-fails.
The approach that is attempted is the most likely to be turned into an
unexpected pass in the future, so the test is being added as perma-fail.

Differential Revision: https://phabricator.services.mozilla.com/D28900
2019-04-29 17:54:52 +00:00
Micah Tigley b1b03ca9a6 Bug 1536808 - Add ability to edit devices r=gl
Differential Revision: https://phabricator.services.mozilla.com/D22180
2019-04-10 17:37:33 +00:00
Micah Tigley 6785a1d6cb Bug 1542367 - Remove the 'Done' button at the bottom of the device modal. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D26637
2019-04-09 20:16:07 +00:00
Micah Tigley f2d9d8a1fd Bug 1282084 - Don't allow RDM to show triggered hover states while touch is enabled. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D26053
2019-04-09 14:23:32 +00:00
Alexandre Poirot f86f76591b Bug 1540694 - Removed scopedCuImport usages. r=jdescottes
ChromeUtils.import no longer pollute the global scope,
so we can switch to it and remove this ancient helper.

Depends on D26078

Differential Revision: https://phabricator.services.mozilla.com/D26079
2019-04-09 08:44:03 +00:00
Brad Werth dbb2beeaa1 Bug 1541158 Part 2: Add a test that only RDM content is affected by full zoom changes. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D26041
2019-04-05 07:37:55 +00:00