summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Use path rather than URI for download destinationMichael Catanzaro2023-03-081-18/+4
| | | | | | | | | | | Adjust for WebKitGTK API changes: https://github.com/WebKit/WebKit/pull/10855 P.S. I found two places that were *already* using the download destination as if it were a path, even though it was a URI. Concerning. Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1295>
* Add very basic URI decode/normalize testsMichael Catanzaro2022-12-312-0/+76
| | | | | | | | | | These are hardly comprehensive, but they'll ensure the functions are not totally broken and would have caught issue #1930. Note that we don't seem to be handling IDN properly currently, so I've left some comments about that. Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1245>
* Drop lib/widgets layer and move remaining code to src/vanadiae2022-11-111-7/+7
| | | | | | | | | | | As indicated in the HACKING.md, this layer is confusing and adds annoying indirection and round-trips between widgets in src/ and lib/widgets/ (ephy_location_entry_{set,get}_add_bookmark_popover() are such an example). All other files that were in lib/widgets/ were moved elsewhere in the previous commits. Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1208>
* Remove unreachable libsoup codeLukáš Tyrychtr2022-11-021-23/+0
| | | | | | Fixes #1892. Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1211>
* Port to GTK4Alexander Mikhaylenko2022-10-174-22/+7
| | | | | | | | | | | | | Leave out a few things for now: - Location entry suggestions don't scroll: needs https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4476 - Previewing reader mode fonts in appearance settings This is very hard to implement with the new API - If the cursor is positioned where the suggestions popover will appear, when it does so the hovered item will be selected. That shouldn't happen.
* build: use project_source_root(), project_build_root()Michael Catanzaro2022-08-051-2/+2
| | | | Meson complains the older versions are deprecated.
* build: check result of run_command()Michael Catanzaro2022-08-051-1/+1
| | | | | | | This avoids whining from Meson, see: https://github.com/mesonbuild/meson/issues/9300 and is surely a good idea in general.
* file-helpers: always delete tmp directoryMichael Catanzaro2022-05-061-59/+17
| | | | | | | | | | | | The KEEP_DIRECTORY flag is being misinterpreted as indication that the profile directory should not be deleted. In fact, it controls whether the Epiphany temporary directory is deleted. And that should always be deleted, because leaving temp directories around is unfriendly, so get rid of it altogether. Fixes #1768 Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1108>
* Use portals for web app install/uninstallPhaedrus Leeds2022-03-212-182/+0
| | | | | | | | | | | This makes use of the new dynamic launcher portal (https://github.com/flatpak/xdg-desktop-portal/pull/696) to install and uninstall web apps. This means we are able to support web apps now in Flatpak'd Epiphany. Unfortunately it's hard to test though so for now remove the unit tests. Disable the app manager feature under Flatpak for now; a later commit will re-enable it.
* Add a WebAppProvider D-Bus interfacePhaedrus Leeds2022-03-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a D-Bus service that exposes the web apps managed by Epiphany so that a client can enumerate them, install a new one, or remove an installed one. The intended client is GNOME Software, since I am soon going to add back a webapp plugin to Software which will make use of this interface. This is part of a larger effort to improve the support for Progressive Web Apps in GNOME (though Epiphany's web apps do not support PWA manifest features). The great thing about having this be a service exposed by Epiphany, rather than having Software try to install Epiphany-compatible web apps on its own as it used to do, is that the implementation of how to create and manage the web apps can stay in Epiphany, and there can never be disagreement between Epiphany and Software about the proper on-disk format for them (e.g. the algorithm used for generating the app ID from the name). The goal for the PWA project is to support Flatpak'd Epiphany, whereas currently only non-Flatpak Epiphany can do web apps. This will be accomplished with new portals to allow installing and removing the .desktop launchers. The Flatpak support requirement is reflected in the design of the API here, specifically the install_token parameter for the Install() method. This token is to be acquired by the client of the D-Bus interface (Software) so that the installation can be achieved without any additional user interaction since the user would've already clicked "Install" in Software. Web app installation directly via Flatpak'd Epiphany's UI would involve a dialog created by the portal; this is because we don't want sandboxed applications in general to be able to create desktop launchers without user interaction. The Uninstall() method by contrast doesn't require such a token, because the portal can ensure that only apps created by an application are deleted by that application. The GetInstalledApps() method is implemented by looking at the profile directories of the apps, because we don't want to have to poke a sandbox hole to allow access to the actual desktop files.
* history-test: Stop using gtk_main_*Alexander Mikhaylenko2022-03-161-23/+52
| | | | | | These functions will go away in GTK4. Just use GMainLoop manually. Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1089>
* tests: Set locale for the encodings testAlexander Mikhaylenko2022-02-281-1/+3
| | | | | | Fix the behavior difference between GTK3 and 4. Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1083>
* tests: Add tests for newly rewritten EphySearchEngine(Manager) codevanadiae2022-02-112-0/+313
| | | | Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1055>
* search-engines: Port whole EphySearchEngineManager code to GListModelvanadiae2022-02-111-15/+13
| | | | | | | | | | | | | This commit ports EphySearchEngineManager to being a proper GListModel, with a separate EphySearchEngine object for each search engines. That makes the code overall way cleaner and easier to work with, as there's no need to keep track of the old_name and saved_name or whatever horrible thing that I needed to do, since now we just need to keep around the EphySearchEngine object we're displaying in this preferences row, and do changes on it directly. That did require quite a few changes all around the code base to adapt to all API changes, but it is definitely worth it. Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1055>
* tests: Make sure initial PATH is kept in test environmentvanadiae2022-02-111-1/+1
| | | | | | | | Otherwise it's not possible to use `meson test --gdb` as gdb isn't in the $build_root / 'src' folder, and Builder can't find bwrap when running tests from the builtin sidebar. Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1055>
* Detect Snap sandbox in addition to FlatpakPhaedrus Leeds2021-12-091-4/+4
| | | | | | | | | | | | Snaps use the same portals as Flatpak, so we should detect whether we're running as a Snap when deciding whether to use portals or disable features that are impossible in these different but similar sandboxing technologies. This is mostly academic because the Snap of Epiphany appears to be outdated, but it is more correct so let's do it. Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1041>
* tests: disable AC mode for WebView testsCarlos Garcia Campos2021-11-301-0/+3
| | | | | | It seems CI doesn't support it Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1028>
* Add AdGuard youtube blockerJan-Michael Brummer2021-08-111-0/+2
| | | | | | | Minimal solution, add fixed AdGuard youtube blocker. Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/1534 Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1000>
* Add support for soup3Carlos Garcia Campos2021-04-301-7/+34
|
* Revert "Add support for soup3"Michael Catanzaro2021-04-291-34/+7
| | | This reverts commit 440fe3c55fb87aa5ad80b624984066c90e4a41a6
* Add support for soup3Carlos Garcia Campos2021-04-291-7/+34
|
* Add missing test dependencies to fix CIMichael Catanzaro2021-04-281-4/+6
| | | | See gnome-build-meta#372
* Port to HdyTabView/HdyTabBarAlexander Mikhaylenko2021-02-041-29/+22
| | | | Replace the aging GtkNotebook-based tabs with a new implementation.
* Disable safe browsing test when feature is disabledMichael Catanzaro2021-01-071-1/+1
|
* Remove ad-hoc query parameter strippingmcatanzaro/send-requestMichael Catanzaro2020-09-112-98/+0
| | | | | | | This old, manual, and very non-comprehensive method of tracking prevention doesn't make much sense to do now that we have far more sophisticated anti-tracking measures in WebKit and enabled by default that don't require listing ad-hoc query parameters to remove from URLs.
* Fix memory leaks in history query resultsJan-Michael Brummer2020-06-251-3/+0
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/1178
* Fix webapp notification supportJan-Michael Brummer2020-06-161-1/+1
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/1228
* Tests: Set PATH explicit to build dirJan-Michael Brummer2020-06-041-0/+1
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/829
* Update Readability.jsJan-Michael Brummer2020-06-041-0/+1
| | | | | Update Readability.js to latest revision and move it to third_party with an own README.epiphany.
* Fix test ephy-web-viewJan-Michael Brummer2020-05-042-12/+16
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/378
* Hide navigation buttons if webapp supports apple-mobile-web-app-capableJan-Michael Brummer2020-03-101-1/+1
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/212
* Fix bookmark-editing lockdown optionJan-Michael Brummer2020-03-071-0/+8
| | | | | | | Hide bookmark star in location entry and preferences button in bookmark popover. Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/339
* Remove about:plugins leftoversMichael Catanzaro2019-11-281-1/+0
| | | | This page no longer exists.
* Use an in memory history database for incognito modeJan-Michael Brummer2019-11-271-1/+1
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/891
* Remove ftp from ephy_embed_utils_address_has_web_scheme ()Jan-Michael Brummer2019-11-141-1/+0
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/517
* Fix EphyHistoryURL leak in history testMichael Catanzaro2019-07-191-0/+1
|
* Mass update: Apply uncrustify style to everythingJan-Michael Brummer2019-07-1518-65/+124
|
* Build with -Wextra and -Werror=format-securityMichael Catanzaro2019-05-041-1/+1
| | | | | | | | | | | We'll need to suppress a few warnings, and fix some code that triggers -Wsign-compare. One -Wsign-compare is not fixed here because it's a real bug, to be addressed separately. We'll also manually add -Werror=format-security since this is amazingly not included in -Wextra.
* Ensure that tests are compiled with -UG_DISABLE_ASSERTJan-Michael Brummer2019-05-041-17/+35
| | | | Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/683
* ephy-sqlite-test: Remove more usage of g_assert()Michael Catanzaro2019-03-221-12/+12
| | | | | Apparently I missed some bits here when purging g_assert() from our testsuite earlier.
* Finish renaming dot dir -> profile dirMichael Catanzaro2019-03-201-7/+7
|
* Remove obsolete URI decode testMichael Catanzaro2019-03-041-54/+0
| | | | | | WebKit has more extensive tests for this (albeit tests that currently only run on Apple platforms) and WebKit's implementation does not match ours, so our tests don't work anymore.
* Use feature type for meson optionsMichael Catanzaro2019-02-241-2/+2
| | | | | This could break anyone currently using -Dunit_tests=false, but probably not many people choose that.
* Don't run Safe Browsing test by defaultMichael Catanzaro2019-02-241-10/+12
| | | | | | | | Require opt-in to run network tests. Our CI has network, so we'll run it there. Fixes #684
* WebKitGTK+ -> WebKitGTKMichael Catanzaro2019-02-201-1/+1
|
* embed-shell-test: stop messing with environmentMichael Catanzaro2019-02-151-26/+0
| | | | | | | | | None of this is needed, and it breaks when system schemas are not installed. We no longer have custom MIME permissions either. Fixes #675
* Rename ephy_dot_dir() to ephy_profile_dir()Patrick Griffis2019-01-312-5/+5
| | | | This just more accurately reflects what it actually is.
* tests: add missing calls to ephy_file_helpers_shutdown()Michael Catanzaro2019-01-093-3/+18
| | | | | Otherwise we pollute /tmp with an ever-increasing number of leaked profile dirs.
* history-test: Don't leave history db in /tmpMichael Catanzaro2019-01-091-34/+24
|
* gsb-service-test: Don't pollute /tmpMichael Catanzaro2019-01-091-0/+2
| | | | Clean up our test gsb db instead of leaving it under /tmp.