aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ephy-session-test.c
Commit message (Collapse)AuthorAgeFilesLines
* Move methods related to view load from ephy-session-test to ephy-test-utilsManuel Rego Casasnovas2013-03-131-91/+20
| | | | | | | | In ephy-session-tests we added some methods in order to know if the EphyWebViews have been loaded or not before checking their addresses. These methods are going to be needed in more tests so they are moved to a utilities file. https://bugzilla.gnome.org/show_bug.cgi?id=695646
* ephy-session-test: make session tests work more reliablyXan Lopez2013-03-121-8/+131
| | | | | | | | | | | | | | | Based on a patch by Manuel Rego. Ensure the WebViews created during the session load are fully loaded before we check their URIs. This was working more or less by pure chance in WK1, and was failing in WK2 because of the process separation. The restore tab test is skipped in WK2 for now, since it's crashing. The patch excludes some asserts in WK2 while bug #695437 is not fixed. https://bugzilla.gnome.org/show_bug.cgi?id=695300
* Add setting for delayed tab loading, and use it to fix the session testsGustavo Noronha Silva2013-02-241-3/+40
| | | | | | | | | | | | | The session tests were broken by the delayed tab loading feature - the restored embeds would not finish loading and thus the expectations for the URIs were not met. This change adds a setting that is now used by those tests to disable the feature temporarily. Also revert "ephy-session-test: make tests pass", which is no longer necessary. This reverts commit 75da5fff3f4489dacf4ded6f012daa06af306709. https://bugzilla.gnome.org/show_bug.cgi?id=694470
* ephy-session-test: make tests passXan Lopez2013-02-221-3/+3
| | | | | | | | We delay session loads until tab map now, which won't happen in the tests. So take that into account for about: URIs, which are changed to ephy-about: only during the actual load process. We should make this work properly before 3.8
* Use GtkApplication method to get the list of windowsXan Lopez2013-02-091-12/+13
| | | | | We have one in EphyShell, but should be redundant (since we stopped tracking non-EphyWindow windows some time ago).
* ephy-session-test: add tests for tab restoring APIClaudio Saavedra2013-02-081-0/+69
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=128184
* ephy-session-test: add test for ephy_session_clear()Claudio Saavedra2013-02-081-27/+36
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=693297
* ephy-shell: return the proper types for EphySession and GNetworkMonitorXan Lopez2013-02-081-4/+4
|
* Move ephy_session_open_uris to EphyShellXan Lopez2013-02-081-1/+1
| | | | | There's no reason at all for this method to be in EphySession, it neither writes nor reads the state of the browser.
* ephy-session: Remove EPHY_SESSION_CMD_OPEN_URISCarlos Garcia Campos2013-01-091-6/+1
| | | | | | | Add ephy_session_open_uris() instead and use it from EphyShell instead of scheduling a command. https://bugzilla.gnome.org/show_bug.cgi?id=641739
* ephy-session: Add ephy_session_resume() and use it instead of queueing a ↵Carlos Garcia Campos2013-01-091-6/+1
| | | | | | resume command https://bugzilla.gnome.org/show_bug.cgi?id=641739
* ephy-session: Load the session asynchronouslyCarlos Garcia Campos2013-01-091-4/+33
| | | | | | | | | Make ephy_session_load() asynchronous and add ephy_session_load_from_stream() to replace ephy_session_load_from_string(). Use a xml sax parser now that is fed from a GInputStream. https://bugzilla.gnome.org/show_bug.cgi?id=681782
* 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).