Commit Graph
161 Commits
Author SHA1 Message Date
CuriousLearner aae72f4644 Bug 1298803 - Add test to quit Firefox via a shortcut; r=whimboo
MozReview-Commit-ID: 9z1u0gWj1Wf
2017-05-11 22:09:36 +05:30
Raajit Raj 6bfb6530e2 Bug 1357372 - Restrict safebrowsing tests from reaching support.mozilla.org r=whimboo
MozReview-Commit-ID: 1P36My7AxpY
2017-05-11 23:02:42 +05:30
Henrik Skupin b23a9a8add Bug 1362051 - Update tests have to set MOZ_MARIONETTE environment variable. r=ato,maja_zf
To allow update tests to use source builds of Firefox before bug 1355888
was landed, the MOZ_MARIONETTE environment variable has to be be
pre-emptively set. Otherwise Marionette will not be activated after
the update has been applied.

MozReview-Commit-ID: Hqb6SjYtOPR
2017-05-04 22:10:50 +02:00
Andrew Swan c67c7b7f04 Bug 1352204 Fix test issues with non-MPC extensions r=kmag
Continue to allow non-multiprocessCompatible extensions in automation.
There are a ton of places that would need to be changed, many of which
will be changing soon anyway with the non-webextensions change in 57
so this is mostly the expedient route to keeping the tree green.

MozReview-Commit-ID: EZZoDVdhLfy
2017-05-03 08:02:51 -07:00
Sebastian Hengst eadb3f1e1a Backed out changeset 46dd4a4338a1 (bug 1352204) for timing out Talos suites g2, o and s. r=backout 2017-05-02 20:19:17 +02:00
Andrew Swan df783f518b Bug 1352204 Fix test issues with non-MPC extensions r=kmag
Continue to allow non-multiprocessCompatible extensions in automation.
There are a ton of places that would need to be changed, many of which
will be changing soon anyway with the non-webextensions change in 57
so this is mostly the expedient route to keeping the tree green.

MozReview-Commit-ID: EZZoDVdhLfy
2017-05-01 10:34:27 -07:00
Henrik Skupin 5c3fcdbe9f Bug 1290850 - Force local update URL for software update unit tests. r=maja_zf
The unit tests for the software update class should not rely on
the remote update URL being reachable. Instead a locally served
URL has to be used.

MozReview-Commit-ID: 8WNoEb0PUWz
2017-04-24 15:09:25 +02:00
Henrik Skupin 09d8eb8036 Bug 1304656 - Firefox UI update tests have to use the restart buttons. r=rail
To ensure that we correctly restart Firefox for update tests, the restart
button in the about window or the old software update window have to be
clicked.

MozReview-Commit-ID: 7acl1DcA85d
2017-04-13 09:41:43 +02:00
Marco Bonardo c536e58644 Bug 977177 - Update favicons API consumers. r=adw
Updates consumers to the new behavior.
Some consumers are changed to use  the "page-icon:" protocol, since it's not
trivial to join the icons table and get a single result out of it. In most cases
the join would return multiple results since a page can have multiple icon payloads.
These consumers for now will return the biggest payload, bug 1347532 will fix
some of them to properly pass a #size=NN fragment.
Note that, even before, these were just "moz-anno:favicon:" uris, and the
payload had to be fetched from the database.
Some other consumers for now just fallback to the largest payload, by passing 0
to GetFaviconURLForPage.

The favicon optimization still happens on the main-thread, bug 1346139 will
handle that problem.

Most of the changes involve handling the modified IconData objects, that now
retain an array of payloads, rather than just one. But note that .ico files are
not yet split into single frames, due to imagelib missing APIs that will be handled
in bug 1337402.
The other changes involve fixing queries to properly join with the new tables.

Finally, note that thanks to the FOREIGN KEYS support, removing from moz_icons or
moz_pages_w_icons will also remove relations from moz_icons_to_pages.

The system only supports square icons, so icons are resized based on their larger side.

This doesn't include new tests, those will be in a following changeset.

MozReview-Commit-ID: JUkpquhpS8y
2016-09-28 16:14:30 +02:00
Henrik Skupin 42267190bc Bug 1355009 - Temporarily disable usage of simplified update ui. r=ato
As long as update tests do not support the new simplified update ui
it has to be kept disabled.

MozReview-Commit-ID: 4fC0CYhp7Pc
2017-04-11 14:01:17 +02:00
Henrik Skupin 2782fe8b8e Bug 1355009 - Harden update tests with better error messages. r=ato
To ensure better failure messages a refactoring of checks has to be done. It
includes the following changes:

* No further checks for a follow-up (watershed) update. It's not supported
and as such doesn't need assertions (bug 1353717)

* Checks for fallback updates have to be made to ensure that an invalidated
partial/complete update does not cause an upgrade of Firefox during the restart.

MozReview-Commit-ID: CLb0aXoIur2
2017-04-11 13:42:44 +02:00
Henrik Skupin 1c396fe83d Bug 1355009 - Force update tests to only allow a single update. r=ato
There was never a need to run a multiple-update step in the past, and as
we agreed a while ago it is not something we want to do in the future.
It means that watershed releases will have to be tested by issuing
multiple update tests.

MozReview-Commit-ID: 7cmK3gEOkv1
2017-04-11 11:18:26 +02:00
Francois Marier d8e35f3776 Bug 1330253 - Enable test_safe_browsing_initial_download on try. r=dustin,whimboo
MozReview-Commit-ID: 7SruSkfIhzI
2017-01-13 14:11:19 -08:00
Wes Kocher c1df05c274 Backed out changeset 78ac10622294 (bug 1330253) for firefox ui test failures a=backout 2017-03-31 16:07:10 -07:00
Francois Marier a3df688af8 Bug 1330253 - Enable test_safe_browsing_initial_download on try. r=dustin,whimboo
MozReview-Commit-ID: 7SruSkfIhzI
2017-01-13 14:11:19 -08:00
Henrik Skupin 3aaaaea317 Bug 1351335 - Don't close software update dialog before restart. r=ato
There is no need to close this dialog given that a restart happens anyway.
But doing that as right now, and trying to invoke execute_script() on it,
will end up with a unlocatable window.

MozReview-Commit-ID: 53yBLYsWX4o
2017-03-29 10:42:55 +02:00
ui.aseem_yadav 12998f6d3a Bug 1334996 - Click on Safebrowsing report button has to wait for the final URL. r=whimboo
MozReview-Commit-ID: AlYvuOGxr5E
2017-03-28 15:37:03 +05:30
Henrik Skupin 405aa651c3 Bug 1322383 - Update Puppeteer and firefox-ui tests for valid window checks. r=maja_zf
We have to ensure to switch to the current browser window after closing all the windows
in tearDown.

MozReview-Commit-ID: 3sYwmbew43d
2017-02-07 11:16:55 +01:00
Sebastian Hengst e2c419d547 Backed out changeset a892984bb20c (bug 1322383) 2017-03-21 19:05:48 +01:00
Henrik Skupin 644217f8d1 Bug 1322383 - Update Puppeteer and firefox-ui tests for valid window checks. r=maja_zf
We have to ensure to switch to the current browser window after closing all the windows
in tearDown.

MozReview-Commit-ID: 3sYwmbew43d
2017-02-07 11:16:55 +01:00
Carsten "Tomcat" Book df85fda29a Backed out changeset 20f6edaec61e (bug 1322383) 2017-03-01 12:48:57 +01:00
Henrik Skupin 10c66028e9 Bug 1322383 - Update Puppeteer and firefox-ui tests for valid window checks. r=maja_zf
We have to ensure to switch to the current browser window after closing all the windows
in tearDown.

MozReview-Commit-ID: 3sYwmbew43d
2017-02-07 11:16:55 +01:00
Sebastian Hengst 463f89b957 Backed out changeset 5ac53d4a98ea (bug 1330253) for failing ui test TestSafeBrowsingInitialDownload.test_safe_browsing_initial_download. r=backout 2017-02-25 00:27:04 +01:00
Francois Marier 555f1d52b9 Bug 1330253 - Enable test_safe_browsing_initial_download on try. r=dustin,whimboo
MozReview-Commit-ID: 7SruSkfIhzI
2017-01-13 14:11:19 -08:00
Thomas Nguyen f1bf9d77e5 Bug 1288633 - Add SafeBrowsing report false positive URL test.r=francois
MozReview-Commit-ID: JEMLug9M85Q
2017-02-21 11:25:04 +08:00
Sebastian Hengst 43fab1e100 Backed out changeset be39185b68b0 (bug 1322383) 2017-02-09 18:10:08 +01:00
Henrik Skupin a99bccab88 Bug 1322383 - Update Puppeteer and firefox-ui tests for valid window checks. r=maja_zf
We have to ensure to switch to the current browser window after closing all the windows
in tearDown.

MozReview-Commit-ID: 3sYwmbew43d
2017-02-07 11:16:55 +01:00
Francois Marier aacb390cd4 Bug 1336922 - Temporarily disable V4 updates in test_safe_browsing_initial_download.py. r=whimboo
MozReview-Commit-ID: IB2ginfKPE3
2017-02-07 16:53:32 +08:00
Carsten "Tomcat" Book ae78acc83e Backed out changeset a2820983e1e6 (bug 1336922) for flake8 failure 2017-02-07 17:03:36 +01:00
Francois Marier e58cfdbb70 Bug 1336922 - Temporarily disable V4 updates in test_safe_browsing_initial_download.py. r=whimboo
MozReview-Commit-ID: IB2ginfKPE3
2017-02-07 16:53:32 +08:00
Francois Marier 35cf14e9ba Bug 1333303 - Remove the google4 dir from the test and relax the list comparison. r=whimboo
MozReview-Commit-ID: 2KY6CEQZYOk
2017-01-25 15:45:12 -08:00
Henrik Skupin d569f6a6d1 Bug 1333803 - Revert setting of the update channel to modifying channel-prefs.js. r=maja_zf
As it has been turned out setting the desired update channel via a preference
on the default branch does not work. Instead it really has to be set in the
channel-prefs.js file.

If not done so, the updater will see the new channel as invalid and abort the
update process.

MozReview-Commit-ID: 6NqYaijAcsX
2017-01-30 17:05:27 +01:00
Henrik Skupin b77598e2fd Bug 1323185 - Fix test_close_not_selected_tab for correctly closing a background tab. r=maja_zf
It should not be possible to close a background tab via the menu shortcut.
Instead another method should be used, best here is the close button.

MozReview-Commit-ID: 3cZmAyPsnj7
2017-01-17 19:09:05 +01:00
Gabor Krizsanits 307ea19071 Bug 1315042 - Re-enable some tests. r=me 2017-01-25 18:04:55 +01:00
Gabor Krizsanits fcef34662d Bug 1303113 - Turn e10s-multi on in Nightly. r=me 2017-01-23 14:15:30 +01:00
Wes Kocher dd05415096 Backed out changeset 529ae909938a (bug 1303113) for frequent asan failures in test_ext_cookies.html a=backout
MozReview-Commit-ID: 9hU3ePb8tpn
2017-01-20 12:22:08 -08:00
Gabor Krizsanits 89f19889c3 Bug 1303113 - Turn e10s-multi on in Nightly. r=me 2017-01-20 15:52:07 +01:00
Dão Gottwald e4f27bea53 Bug 1332298 - Fix and re-enable test_dv_certificate.py, test_ev_certificate.py, test_toolbars.py. r=whimboo 2017-01-20 14:09:08 +01:00
Wes Kocher 9e8ea1b2d6 Bug 1332298 - Skip the permafailing tests until they can be fixed a=me
MozReview-Commit-ID: KUlElEnH0og
2017-01-19 15:27:11 -08:00
Henry Chang 85dc14974a Bug 1305486 - Enable v4 tables on nightly build. r=francois
MozReview-Commit-ID: 4iGduuYqMQs
2016-11-20 15:10:19 +08:00
Henrik Skupin edb467b05c Bug 1326174 - Handle cookies with content scope in test_utils.py r=maja_zf
Cookie handling should be restricted to content scope and will be
enforced with a following patch. This patch fixes the unit test.

MozReview-Commit-ID: LpbBMH5refy
2016-12-29 23:40:19 +01:00
Henrik Skupin 218ba26206 Bug 1326236 - Use get_property() to retrieve the selectedIndex of decks and wizards. r=maja_zf
Fix for a regression as introduced by bug 1277090. get_attribute() no longer returns
values of Element properties. For the latter get_property() has to be used now.

MozReview-Commit-ID: K45rcHDM6YC
2016-12-29 20:02:57 +01:00
Wes Kocher 2c676d89a2 Backed out changeset 25505bf601f6 (bug 1326236) for test_update_wizard.py failures a=backout 2016-12-29 12:46:05 -08:00
Henrik Skupin da14ce465e Bug 1326236 - Use get_property() to retrieve the selectedIndex of decks and wizards. r=maja_zf
Fix for a regression as introduced by bug 1277090. get_attribute() no longer returns
values of Element properties. For the latter get_property() has to be used now.

MozReview-Commit-ID: K45rcHDM6YC
2016-12-29 20:02:57 +01:00
Henrik Skupin d4e442e1fb Bug 1323770 - Fix skip decorators for unit tests. r=maja_zf
Marionette's skip decorators are currently not conform with the ones from the
Python's unittest module, which require a reason as parameter. As such Marionette
should behave the same and should also require a reason for more detailed skip
messages. This is done by wrapping the actual decorator with another enclosing
method.

With the changes we also ensure that the wrapper has the same attributes as the
wrapped function by using functools.wraps(). This hasn't used so far and makes
debugging harder.

Further a couple of skip methods and classes were copied from the unittest module,
which should be better imported instead to reduce code duplication.

MozReview-Commit-ID: 6XT6M6cbCFW
2016-12-29 09:22:00 +01:00
Wes Kocher bebcfcd8a3 Backed out 4 changesets (bug 1323770) for marionette bustage a=backout
Backed out changeset bb8ccabdbe27 (bug 1323770)
Backed out changeset f1fbf0853e4f (bug 1323770)
Backed out changeset d0e5cb3af786 (bug 1323770)
Backed out changeset 71e82343afb9 (bug 1323770)
2016-12-28 14:09:26 -08:00
Henrik Skupin 03545a517f Bug 1323770 - Fix skip decorators for unit tests. r=maja_zf
Marionette's skip decorators are currently not conform with the ones from the
Python's unittest module, which require a reason as parameter. As such Marionette
should behave the same and should also require a reason for more detailed skip
messages. This is done by wrapping the actual decorator with another enclosing
method.

With the changes we also ensure that the wrapper has the same attributes as the
wrapped function by using functools.wraps(). This hasn't used so far and makes
debugging harder.

Further a couple of skip methods and classes were copied from the unittest module,
which should be better imported instead to reduce code duplication.

MozReview-Commit-ID: 6XT6M6cbCFW
2016-12-28 16:49:44 +01:00
Henrik Skupin 94b49fa115 Bug 1277090 - Make use of get_property() in firefox-ui tests where necessary. r=maja_zf
Given that Marionette supports the get_property() method, all the calls to
get_attribute() have to be audited and updated to get_property() if needed.
It's necessary because get_attribute() will only retrieve attributes from now on.

MozReview-Commit-ID: 8SmdNoiG8uP
2016-12-20 17:34:18 +01:00
Henrik Skupin 13d4c652ad Bug 1316984 - Remove prefs module from Firefox Puppeteer. r=maja_zf
MozReview-Commit-ID: Dfa7UT3llHf
2016-12-14 17:33:51 +01:00
Henrik Skupin c5f6e0f93d Bug 1316984 - Update Puppeteer to use new localization module of Marionette. r=maja_zf
MozReview-Commit-ID: 5BZDyWGUz0a
2016-12-14 14:20:41 +01:00