summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2013-01-19test: Don't quote BROWSER variable to allow argsDan Nicholson1-1/+1
Quoting the BROWSER variable is nice to protect against spaces in the filename, but it keeps multiple arguments from passing through. The latter is more useful as it allows you to do things like BROWSER="gdb --args epiphany" ./test/browser.sh.
2013-01-19test: Run epiphany in private instanceDan Nicholson1-1/+1
This ensures that it doesn't open with the same (failed) tabs as last time.
2013-01-19test: Allow previewer to run with plug in same or separate processDan Nicholson3-126/+155
GtkSocket/GtkPlug behave differently when the plug is embedded in the same process rather than running in a separate process. It seems that epiphany does the former while firefox does the latter and that might be causing some of the behavioral differences. When the previewer is run without options, the plug is embedded in the same proceess. When executed with the -f/--fork option, the plug is run from a separate process.
2012-10-31test: Set G_MESSAGES_DEBUG for newer glibDan Nicholson1-1/+2
On newer glib, G_MESSAGES_DEBUG controls which domains get their debug messages printed. Set this in addition to the local EVBP_DEBUG setup so that debug messages are received on older and newer glib.
2012-10-30test: Make plugin test script more flexible on browsers to useDan Nicholson2-14/+29
Instead of hardcoding the test script to use firefox only, make it more flexible so that other epiphany and other Mozilla browsers can be started.
2012-10-30test: Start separate browser instance when profile specifiedDan Nicholson1-1/+1
Mozilla browsers allow starting a totally separate instance when a profile is specified and -no-remote is passed on the command line. This allows much easier testing without killing any currently running browsers.
2012-08-08Allow building both gtk2 and gtk3 versions of pluginDan Nicholson1-3/+11
To make things more useful for GNOME/epiphany, which is squarely in gtk3 land, allow building both the gtk2 and gtk3 versions of the plugin. I'm not sure what will happen when both plugin's are in the browser's path. A subsequent patch will allow finer grained control of the installation directory.
2012-08-08test: Convert previewer to socket/plugDan Nicholson3-84/+129
This plugs a big hole in the previewer test app where the widget was used differently than in the browser. Now they both get instantiated through GtkSocket/GtkPlug.
2012-05-27Add EvbpViewer convenience library to use in testsDan Nicholson1-10/+1
Rather than build all the EvbpViewer sources twice, make a convience library for the tests to link to. This does add the unfortunate effect of relinking libevbp-viewer.la and libevbp.la every time there's a change in the source, though.
2012-05-27Add suffix to default save filename from mime rulesDan Nicholson1-1/+2
When we try to construct the filename from the document title, use the mime type mappings to get a suffix.
2012-05-27Rename mime function to match module betterDan Nicholson1-1/+1
2012-03-31test: Fix broken header path from distcheckDan Nicholson1-1/+1
2012-03-20viewer: Add page selector to toolbarDan Nicholson1-2/+5
This adds the page selector widget to the toolbar with actions. The code is copied directly from evince's libmisc.
2012-03-17Drop explicit grab focus on EvViewDan Nicholson1-8/+6
It turns out that the reason the toolbar was getting focus first for my previewer and not the real evince-previewer was that the toolbar buttons were set as sensitive when the widget was shown. If instead the document is loaded after the window is shown like in both the plugin and the real previewer, then the initial focus will be on the scrolled window as desired.
2012-03-14test: Add html page testing different modes of renderingDan Nicholson2-1/+27
Some simple html to show both local and remote PDFs in their own window and as objects embedded on the page. It should probably have a couple more file types, too.
2012-03-13viewer: Add toolbar just with page up/down buttons for nowDan Nicholson1-0/+1
Add back the toolbar to the EvbpViewer widget. As on the previous attempt, the UI manager XML is being kept inline so now external files are needed. Right now this just has the page up/down buttons.
2012-03-11Begin EvbpViewer widgetDan Nicholson2-23/+14
Start building up a widget object, EvbpViewer, again. Once we're doing anything more complicated than just putting an EvView in a scrolled window, it'll help to keep most of it in it's own widget. The widget subclasses GtkBox so we can just put a toolbar and scrolled window in.
2012-03-07Add a test script for launching firefox with the built pluginDan Nicholson1-0/+14
A simple wrapper script setting the plugin path to include the built library, enabling the debug messages, and loading the test pdf unless told otherwise. An environment variable EVBP_PROFILE allows to use a specific firefox profile rather than the default.
2012-03-06config: Rework Mozilla dependencies so we don't link in librariesDan Nicholson1-2/+2
We really only need the headers for xulrunner and nspr and don't want to link anything since the symbols will all resolve at runtime when the plugin is loaded.
2012-03-06Add 2011 to copyright statementsDan Nicholson2-2/+2
I wrote a lot of this last year.
2012-03-05test: Revamp previewer and enable it in the buildDan Nicholson2-38/+106
The code is very similar to the plugin and gives an opportunity to make sure the way we use evince still works correctly.
2012-03-05Add GPLv2+ licenses to the codeDan Nicholson2-0/+38
GPL seems more appropriate than LGPL at this point since I can't see anyone linking to this code. And v2+ seems like a good compromise since so many people are anti-v3.
2012-03-03plugin: Greatly simplify pluginDan Nicholson1-4/+3
And it works! Instead of using the EvPreviewer object, just create the documents and widgets straight in the plugin. This removes the toolbar for now and just leaves a scrolled window for the view. We'll get that back later.
2012-03-03Move plugin sources to src directoryDan Nicholson2-2/+2
2011-02-18plugin: Generate Mozilla MIME string from evince backend infoDan Nicholson2-1/+34
We could hardcode a list of likely MIME types that the plugin will support, but we can get the information directly from evince's backends manager. A mapping from mime type to file extension (which Mozilla wants) is used and contains all the MIME types supported by evince as of gnome-2-30. A small test program has been added to show the constructed MIME description as used by Mozilla.
2011-02-15Enable compiler warning flags and use them by defaultDan Nicholson1-1/+1
For GCC, allow the warning flags to enabled. Turn them on by default so we see things ahead of time.
2011-02-15Add test app and test pdf fileDan Nicholson3-0/+68
The test program is a just a simple exerciser for the EvPreviewer widget, and the pdf is borrowed from evince.