Commit Graph
562 Commits
Author SHA1 Message Date
Jim Chen fc07e19755 Bug 1362231 - Remove GeckoInterface.getProfile; r=snorp
Since we only support one profile per process, replace all calls to
GeckoInterface.getProfile() with calls to GeckoThread.getActiveProfile().

MozReview-Commit-ID: 9PZOoBZt7Er
2017-05-15 23:11:10 -04:00
Alastor Wu b1714d363d Bug 1351087 - part2 : add tests. r=sebastian
Add test for handling the cases, media with silent audio track and media without audio track.

MozReview-Commit-ID: 5vV9EjIjHQt
2017-05-09 14:10:46 +08:00
Alastor Wu 98125defd2 Bug 1357633 - part2 : add tests. r=sebastian
Based on bug1357639, add new test tasks.

MozReview-Commit-ID: 9k8ZkF00MwG
2017-05-10 23:43:14 +08:00
Alastor Wu 1093e71b96 Bug 1357639 - part11 : increase the waiting time for notification UI changed. r=sebastian
I observe that sometime it takes longer time for the UI notification changed in
try sever, and it cause the intermittent fail.

Therefore, I would like to increase a little bit time for waiting UI changed.

MozReview-Commit-ID: BnsZq3DObFa
2017-05-09 10:51:52 +08:00
Alastor Wu adadbdba45 Bug 1357639 - part10 : check notification id. r=sebastian
Use notification id to check whether the notification is correct is more stable than just checking the
number of system notification.

MozReview-Commit-ID: BVYdMrBsSLR
2017-05-09 10:51:27 +08:00
Alastor Wu e4ff060599 Bug 1357639 - part9 : wait tab event to make sure media started successfully. r=sebastian
Since the robocop tests would run on super slow emulator on try, and then we
can't wait the tab's audible state change within the MAX_WAIT_MS time. It might
need more time.

So, we should check the media has been started by waiting the "Tab:MediaPlaybackChange"
event, and then to check other tab's attribute.

In addition, move the tab attribute checking independently into new functions,
so that we would clearly see that we have four things need to check in function
checkIfMediaPlayingSuccess().
- tab's media playing state
- media notification UI
- tab's audio playing state
- audio focus state

MozReview-Commit-ID: 8S0Ems23iPX
2017-05-08 14:10:59 +08:00
Alastor Wu da716d5e08 Bug 1357639 - part7 : add check for notification's content. r=sebastian
Add check for media notification's small icon, title and content text.

MozReview-Commit-ID: AOhag8gQVqs
2017-05-08 14:10:54 +08:00
Alastor Wu a02350fc3b Bug 1357639 - part6 : list all test tasks in the ctor. r=sebastian
It's easy to know what test tasks we'll run in this test.

MozReview-Commit-ID: DdtFp4pOXlC
2017-05-08 14:10:51 +08:00
Alastor Wu ce4403904b Bug 1357639 - part5 : create new type test class for media playback. r=sebastian
Create new test class for reducing the redundant code and can provide more
flexibility for adding new related test in the future.

MozReview-Commit-ID: 2f3O8vfHo12
2017-05-08 14:10:48 +08:00
Alastor Wu b4b3b16c89 Bug 1357639 - part4 : add Fennec test for media control and audio focus. r=sebastian
Add robocop tests and mochitest chrome.

MozReview-Commit-ID: JofkKRSNdB5
2017-05-08 14:10:46 +08:00
Mats Palmgren bb18887ff1 Bug 1359411 - Backout bug 1328030 since it caused a hang which is strictly worse than the original problem. r=smaug
MozReview-Commit-ID: C12Tajtc7Vy
2017-05-07 22:54:18 +02:00
Andrzej Hunt d537692dda Bug 1299949 - Move omg.home.activitystream into omg.activitystream.homepanel r=sebastian
Parts of ActivityStream already live under omg.activitystream, lets move the UI code there
too to make it easier to actually find AS code.

MozReview-Commit-ID: 6Aa7AZ9cw5n
2017-04-27 15:54:06 +08:00
Nick Alexander 169f28cd80 Bug 1361418 - Remove Java Addons from Firefox for Android. r=sebastian
The Java Addons mechanism never got traction and is not Web Extensions
compatible.  Removing it simplifies the product and the build system.

MozReview-Commit-ID: ABUxkqqMISa
2017-05-02 11:49:16 -07:00
Sebastian Hengst 9fc179557b Backed out changeset acb72bf2db09 (bug 1357639) 2017-05-02 21:40:47 +02:00
Sebastian Hengst 1e8d2f350a Backed out changeset 916edbdfece6 (bug 1357639) 2017-05-02 21:40:43 +02:00
Sebastian Hengst a2657ff58e Backed out changeset 4b332b74aba6 (bug 1357639) 2017-05-02 21:40:39 +02:00
Sebastian Hengst cc1fe767e3 Backed out changeset 99c71dd11632 (bug 1357639) 2017-05-02 21:40:35 +02:00
Alastor Wu d201673cf8 Bug 1357639 - part7 : add check for notification's content. r=sebastian
Add check for media notification's small icon, title and content text.

MozReview-Commit-ID: AOhag8gQVqs
2017-05-02 18:53:26 +08:00
Alastor Wu 9acf053d6a Bug 1357639 - part6 : list all test tasks in the ctor. r=sebastian
It's easy to know what test tasks we'll run in this test.

MozReview-Commit-ID: DdtFp4pOXlC
2017-05-02 18:53:23 +08:00
Alastor Wu e92145e295 Bug 1357639 - part5 : create new type test class for media playback. r=sebastian
Create new test class for reducing the redundant code and can provide more
flexibility for adding new related test in the future.

MozReview-Commit-ID: 2f3O8vfHo12
2017-05-02 18:53:21 +08:00
Alastor Wu 673203f9c3 Bug 1357639 - part4 : add Fennec test for media control and audio focus. r=sebastian
Add robocop tests and mochitest chrome.

MozReview-Commit-ID: JofkKRSNdB5
2017-05-02 18:53:18 +08:00
Jim Chen 28f3bf09f4 Bug 1353799 - 4. Add composition event tests to testInputConnection; r=esawin
Add two tests to testInputConnection that record the sequence of
composition events during editing, and check that the sequence is what
we expected.

The first test makes sure that we reuse the current composition on the
Gecko side when setting composing text; otherwise the Facebook comment
box behaves incorrectly.

The second test makes sure that we can move the cursor inside the
current composition, to fix this particular bug.
2017-04-27 20:59:42 -04:00
Jim Chen a5fb270ade Bug 1353799 - 3. Add types and timestamps in testInputConnection; r=esawin
* Include the type of the editor (input, textarea, contentEditable,
  designMode) in BasicInputConnectionTest, so we can work around the
  differences in behavior among the different editor types.

* Add timestamps to key events, because lack of timestamps was
  triggering a crash when running testInputConnection.
2017-04-27 20:59:42 -04:00
Geoff Brown 9c2a74bcab Bug 1359541 - Enable eslint on mobile/android/tests; r=standard8,snorp 2017-04-27 07:52:58 -06:00
Edouard Oger 7b6e7fde25 Bug 1351805 part 2 - Add remote devices to the Browser Provider. r=Grisha
MozReview-Commit-ID: 9yGU2Gy6mX1
2017-04-07 12:24:46 -04:00
Wes Kocher e5cf37107d Backed out 3 changesets (bug 1351805) for android Test failures a=backout
Backed out changeset da34da5f310a (bug 1351805)
Backed out changeset 430b56176e04 (bug 1351805)
Backed out changeset a3dfb4b9dc66 (bug 1351805)

MozReview-Commit-ID: AE4RcKV3akz
2017-04-25 12:47:59 -07:00
Edouard Oger 4b4a3dc0d2 Bug 1351805 part 2 - Add remote devices to the Browser Provider. r=Grisha
MozReview-Commit-ID: 9yGU2Gy6mX1
2017-04-07 12:24:46 -04:00
brainbreaker 37f2b59267 Bug 1351667 - UI test that traverses settings screens; r=sebastian
This commit adds a robocop test that traverses all the settings
 screens except the 'Make default browser' one.

MozReview-Commit-ID: LqWrFL9v877
2017-04-18 19:40:11 +05:30
Randall Barker c955f482b1 Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats
This version of the Dynamic Toolbar moves the animation of the toolbar
from the Android UI thread to the compositor thread. All animation for
showing and hiding the toolbar are done with the compositor and a static
snapshot of the real toolbar.

MozReview-Commit-ID: BCe8zpbkWQt
2017-04-20 15:15:14 -07:00
Florian Queze ddf0cda8da Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Florian Queze 451928e614 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze aca1103c68 Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst 4cd95d4a02 Backed out changeset 18d45aa984d6 (bug 1355161) 2017-04-14 23:39:23 +02:00
Sebastian Hengst 42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Sebastian Hengst 4189eac09e Backed out changeset e1f191aad863 (bug 1356569) 2017-04-14 23:39:17 +02:00
Sebastian Hengst f75839c723 Backed out changeset 55f3df15eaa6 (bug 1356569) 2017-04-14 23:39:17 +02:00
Florian Queze 61aabdf237 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 6c119a88d3 Bug 1356569 - Remove appendElement's last parameter when it is false, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Florian Queze 35cd8ba883 Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Joel Maher 1217666e25 Bug 1350473 - add BUG_COMPONENT to mobile/* files. r=snorp
MozReview-Commit-ID: HkWLIVAaciF
2017-04-11 09:47:28 -04:00
Jan Henning 3c07efd758 Bug 1349793 - Speculatively swap history clearing test order. r=sebastian
This assumes that the observed test failure was caused by the async file delete triggered by the history sanitisation in test_sessionStoreClearTabHistory being somehow delayed long enough to only take place after we had already started test_sessionStoreClearFiles.

MozReview-Commit-ID: FenpPyb4sGZ
2017-03-25 18:36:33 +01:00
Jan Henning d71c79dfea Bug 1265818 - Part 6 - Test PresState restoring on Android, too. r=sebastian
Expand the existing test by navigating to a different page and then going back after the tab has been restored again.

Proper restoration of the zoom level for anything other than the current history entry depends on resolution of bug 1312605.

MozReview-Commit-ID: Aspg2RRcY53
2017-02-21 19:47:30 +01:00
Jan Henning 91a72d1ce7 Bug 1265818 - Part 5 - Tidy up and improve mobile scroll position test. r=sebastian
Just as the comparable test on desktop we should use a really big document with enough space for scrolling in both Y *and* X directions. We should also randomise the scroll positions used for testing instead of hardcoding them.

MozReview-Commit-ID: 9FvaOnaKJ6
2017-02-20 22:25:06 +01:00
Jan Henning 91b32b7388 Bug 1328868 - Part 9 - Check that zooming via "font.size.systemFontScale" actually has any effect. r=sebastian
MozReview-Commit-ID: F2YtTER17xQ
2017-02-10 19:21:32 +01:00
Jan Henning 3d280cbe56 Bug 1328868 - Part 8 - Add a test to check that flipping the Android pref enables/disables font inflation. r=esawin,sebastian
A basic check that the listener is indeed operational.

MozReview-Commit-ID: 6KijcsRaScI
2017-03-24 18:24:52 +01:00
Jan Henning f7103732ad Bug 1328868 - Part 7 - Move MakeObserver() into head.js r=esawin
We can use this function for our upcoming test as well, so we should move it into the common header.

MozReview-Commit-ID: H5ANDAlnpmm
2017-02-05 17:11:02 +01:00
Jan Henning b5eb2ff9a2 Bug 1348086 - Part 7 - Reenable Robocop session store tests. r=gbrown
MozReview-Commit-ID: KfVEBXoVdeR
2016-09-05 20:51:28 +02:00
Jan Henning 1f727855b8 Bug 1348086 - Part 6 - Remove selectTabAt() from BaseTest. r=gbrown
SessionTest was the last one using that method. Since all new tests should be UITest-based, we can therefore remove it from BaseTest.

MozReview-Commit-ID: EfzlFeu3CDh
2017-03-17 22:14:18 +01:00