aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ephy-session-test.c
Commit message (Collapse)AuthorAgeFilesLines
* Open new windows when called with no URIs to openGustavo Noronha Silva2012-12-111-3/+25
| | | | | | | | | GNOME Shell tries to open new windows by calling the application with no parameters. This strategy is also used by the 'Launch web browser' keybinding, that can be interpreted as the user requesting a new window, so open a new window when called with no URIs, unless --new-tag is given explicitly. Partially fixes https://bugzilla.gnome.org/show_bug.cgi?id=685976
* ephy-shell: remove the ephy_shell globalDiego Escalante Urrelo2012-12-111-13/+13
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=683614
* test-ephy-session: shutdown file helpers only after destroying the shellGustavo Noronha Silva2012-12-111-1/+1
|
* Add test to ensure a session resume won't create windows if windows existGustavo Noronha Silva2012-12-101-0/+81
| | | | | When called to open URIs, the shell will still queue a resume session command, this test ensures that command is not loading the session and creating windows.
* Fix a ton of 'warning: function declaration isn’t a prototype'Xan Lopez2012-11-051-3/+3
| | | | | | | | | New warning flags have been added to gnome-common recently, and we were getting this a lot. Turns out in C 'foo ()' is not the same than 'foo (void)'; the first just means that no information is given about the number of arguments, the second means the function has exactly zero arguments, so add the 'void' thing all over the place when needed.
* Move windows handling code from EphySession to EphyShellCarlos Garcia Campos2012-10-081-3/+3
| | | | | | | | | | | | EphyShell is now a GtkApplication that already does window handling, however we want to maintain only the of browser windows. Instead of keeping the window lists in ephy-session, it's easier to override window_added and window_removed virtual methods of GtkApplication and update the browser window lists. Most of the cases where this API was used, had to get the session object from the shell first, now we save this step keeping the code simpler. https://bugzilla.gnome.org/show_bug.cgi?id=641734
* tests: the new homepage is about:overview, not about:blankXan Lopez2012-09-031-1/+1
|
* tests: register the application explicitlyXan Lopez2012-09-031-0/+2
| | | | | | | | | | | | | This usually happens in _run, it seems, but the tests don't do that, so we need to call this manually. Otherwise the test will fail with: (/home/xan/git/epiphany/build/tests/test-ephy-session:9865): GLib-GIO-CRITICAL **: g_application_list_actions: assertion `application->priv->is_registered' failed No idea why this has started happening only now. https://bugzilla.gnome.org/show_bug.cgi?id=682653
* ephy-session: spawn the default window if the session state file is brokenXan Lopez2012-08-011-0/+45
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=680590
* ephy-session-test: test recovering a multiple-window sessionXan Lopez2012-06-151-1/+50
|
* tests: add the beginnings of ephy-session unit testingXan Lopez2012-06-141-0/+98
For now a simple test that verifies that loading a session works. We need to link with the resource files, which is unfortunate, but I'm not sure there's a way around it since this test will actually spawn a full EphyWindow (ie, it's not only testing the session or shell code but the entire browser as a side effect).