Commit Graph
892 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
Jing-wei Wu 7fd3f2f2dc Bug 1329128 - Part 1: Implement the functionality of remove bookmark folder in BrowserProvider. r=Grisha
MozReview-Commit-ID: GQfM4Z9zU2x
2017-05-02 17:52:55 +08:00
Jing-wei Wu 6a0ecb7194 Bug 1329131 - Part 1: Implement the functionality of listing all bookmark folders except special folders. r=Grisha
MozReview-Commit-ID: AK79E6kkXFI
2017-04-21 18:31:03 +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
Carsten "Tomcat" Book 6620e5a568 merge mozilla-inbound to mozilla-central a=merge 2017-04-28 10:36:11 +02: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
Wes Kocher 52d75af886 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 6CUQEJghjzU
2017-04-27 13:37:47 -07:00
Geoff Brown 9c2a74bcab Bug 1359541 - Enable eslint on mobile/android/tests; r=standard8,snorp 2017-04-27 07:52:58 -06:00
Jan Henning ab33946bd2 Bug 1352997 - Part 5 - Implement common behaviour for custom tabs/web apps and switch over the former. r=sebastian,walkingice
This implements the common behaviour for restoring the correct tab when switching to/from custom tab and web app activities. Unlike our normal UI, those activities are basically single tab activities, that is each activity is linked to a certain Gecko tab, with no facilities (bugs aside) for the user to directly load/select a different tab within that activity.

Therefore, here we basically update the selected tab only when the activity is starting up and initially creating its new (or, especially once tab type switching will be implemented, taking over an existing) content tab.

When subsequently restoring, we then check whether the tab is still available. If it is, we select it, if not, we fall back to opening a new tab based on the available intent data.

This also means that we no longer have to finish() the activity on closing so the activity state (finished) matches the tab (closed), which means that we no longer have to prematurely kill Gecko as a side effect of that.

MozReview-Commit-ID: KjFz1qrqWLy
2017-04-08 19:19:32 +02:00
Jan Henning 2df85dd781 Bug 1351739 - Part 2 - Convert CustomTabsActivity to SafeIntents. r=sebastian,walkingice
These are potentially untrusted external intents, so we should use SafeIntents for interacting with them.

MozReview-Commit-ID: 3nmjg85wbr1
2017-04-02 14:09:36 +02:00
Edouard Oger 301076f140 Bug 1360047 - Generate random GUIDs more reliably in TestFxAccountDeviceListUpdater. r=eoger
MozReview-Commit-ID: 9Ak99iIxOzY
2017-04-27 09:50:24 -07:00
Edouard Oger 842aa56844 Bug 1351805 part 3 - Refresh the remote devices list on Married/Engaged states. r=Grisha
MozReview-Commit-ID: 1Ktbtlzc1fI
2017-04-19 17:45:49 -04: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
Edouard Oger 87f243259e Bug 1351805 part 1 - Create a org.mozilla.gecko.fxa.devices package. r=Grisha,nalexander
MozReview-Commit-ID: FjJmRiHlqEg
2017-04-07 11:56:38 -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 24a859fd50 Bug 1351805 part 3 - Refresh the remote devices list on Married/Engaged states. r=Grisha
MozReview-Commit-ID: 1Ktbtlzc1fI
2017-04-19 17:45:49 -04: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
Edouard Oger bfc7019308 Bug 1351805 part 1 - Create a org.mozilla.gecko.fxa.devices package. r=Grisha,nalexander
MozReview-Commit-ID: FjJmRiHlqEg
2017-04-07 11:56:38 -04:00
Edouard Oger b838bef9e9 Bug 1349299 - Register device on FxA even on Push registration failure. r=Grisha
MozReview-Commit-ID: 3qDkm9iV9C0
2017-04-06 11:30:23 -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
Carsten "Tomcat" Book 63fbb13aec merge mozilla-inbound to mozilla-central a=merge 2017-04-21 10:57:02 +02:00
Jing-wei Wu 51f50a43b6 Bug 1232439 - Part 2: Support get/update/remove bookmark record by ID in BrowserDB. r=Grisha
MozReview-Commit-ID: 6RNKCUiZE8K
2017-04-05 14:03:16 +08:00
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