Commit Graph

7439 Commits

Author SHA1 Message Date
Daniel Schadt
6a96e1d6d8 quteprocess: remove duplicate code 2016-03-28 23:10:20 +02:00
Daniel Schadt
c0b40aefdd tests/dirbrowser: normalize paths before comparing
This avoids errors because some libraries use '/' even on windows, while
others use '\' on windows.
2016-03-28 23:10:20 +02:00
Daniel Schadt
f6e8815871 tests: add integration tests for dirbrowser 2016-03-28 23:10:20 +02:00
Daniel Schadt
5e73a2ea37 dirbrowser: move parent dir logic to own function 2016-03-28 23:10:20 +02:00
Daniel Schadt
7fe4c7e06d fix lint 2016-03-28 23:10:20 +02:00
Daniel Schadt
e97b10517f tests: use file_url for dirbrowser tests
Otherwise the tests will fail on windows.
2016-03-28 23:10:20 +02:00
Daniel Schadt
375e60627a dirbrowser: ditch .lstrip, add file_url function 2016-03-28 23:10:20 +02:00
Daniel Schadt
700756aa16 tests: add more cases for dirbrowser.is_root
The trailing slash might have an effect on the function result, so we
should have cases with/without the slash.
2016-03-28 23:08:54 +02:00
Daniel Schadt
a77e085952 dirbrowser: fix navigation on windows
Issue #1334

The problem was that there were too few slashes. On Linux, absolute
paths start with /, so

    file:// + /home

gives file:///home, which is a valid path. On windows however, absolute
paths start with a drive letter, so

    file:// + C:/Users

gives file://C:/Users, which is parsed as "host C, path Users", which is
why it could be written as file://c/Users (strip out the empty "port"),
giving us an invalid path.

The solution is to add the third slash in the template, and strip the
redundant slash on unix systems.

Additionally, this fixes a bug where navigating from '/home/' to the
parent directory would give '/home' instead of '/'
2016-03-28 23:08:54 +02:00
Florian Bruhin
c0f9ab9b2b tox: Update Werkzeug to 0.11.5
- werkzeug.serving: Fix crash when attempting SSL connection to HTTP
  server.
2016-03-28 20:14:15 +02:00
Florian Bruhin
eb2bd91e4b Merge branch 'IsSuEat-master' 2016-03-28 19:59:26 +02:00
Florian Bruhin
6d190fc16e Regenerate authors 2016-03-28 19:59:18 +02:00
issue
654d2ac676 Added openSUSE repo 2016-03-28 14:40:35 +02:00
Florian Bruhin
bec8bd0285 Mention QtWebEngine in segfault report dialog 2016-03-27 23:11:45 +02:00
Florian Bruhin
952daf0479 Well, this is embarassing. Fix segfault reports. 2016-03-27 22:53:05 +02:00
Florian Bruhin
4cd49d42cc Fix pdfjs error page after jinja.render changes 2016-03-27 12:53:53 +02:00
Florian Bruhin
e0475bf4e1 Revert "Allow eslint to fail for now"
This reverts commit ebfe476319.
2016-03-26 17:28:08 +01:00
Florian Bruhin
cb9ff97edb Mention to clone repo in INSTALL.asciidoc 2016-03-26 14:36:42 +01:00
Florian Bruhin
3ccbf3ce1f tox: Use -m pytest instead of -m py.test
Using -m py.test seems to cause some issues, see e.g.
https://github.com/The-Compiler/qutebrowser/pull/1317#issuecomment-196923033
2016-03-26 12:15:56 +01:00
Florian Bruhin
387e35d3e5 Fix lint 2016-03-26 00:24:54 +01:00
Florian Bruhin
9edc5a665e Handle jinja's UndefinedError in jinja.render
We can get UndefinedError when a new function got added to the jinja
env (and gets called from a template) and the user did update the
on-disk templates but not restart qutebrowser yet.

In this case, let's show a special error page to the user and tell them
to do :report in the unlikely case it's actually a bug.

Fixes #1362.
See #1360.
2016-03-26 00:00:06 +01:00
Florian Bruhin
ebfe476319 Allow eslint to fail for now
https://github.com/eslint/eslint/issues/5680
2016-03-25 22:04:48 +01:00
Florian Bruhin
a81345c91d Merge branch 'craftyguy-importer-fix-order' 2016-03-25 21:51:08 +01:00
Florian Bruhin
af54255cee Regenerate authors 2016-03-25 21:47:46 +01:00
Florian Bruhin
8e1f8be5e8 Merge branch 'importer-fix-order' of https://github.com/craftyguy/qutebrowser into craftyguy-importer-fix-order 2016-03-25 21:47:33 +01:00
Clayton Craft
8addc19d47 Added option to output in "bookmark" format, clarified some "help" msgs 2016-03-25 13:01:21 -07:00
Florian Bruhin
86b12a302e Add a jinja.render helper
This simplifies some code and will make #1362 possible.
2016-03-25 14:29:30 +01:00
Florian Bruhin
e4625a2849 Merge branch 'craftyguy-system-wide-data-path' 2016-03-25 11:10:57 +01:00
Florian Bruhin
f2f0f429fb Update docs 2016-03-25 11:10:38 +01:00
Florian Bruhin
74ee0d88e3 Merge branch 'system-wide-data-path' of https://github.com/craftyguy/qutebrowser into craftyguy-system-wide-data-path 2016-03-25 11:04:10 +01:00
Clayton Craft
81ce9b818f Fix importer script to output bookmarks in the right format for qutebrowser to use 2016-03-24 18:58:08 -07:00
Clayton Craft
439d815601 Now runner calls cmd_path instead of cmd 2016-03-24 16:26:19 -07:00
Florian Bruhin
58363d66ce Merge branch 'paretje-openfeeds' 2016-03-24 23:26:56 +01:00
Florian Bruhin
8a7550ae8b Regenerate authors 2016-03-24 23:26:49 +01:00
Florian Bruhin
3680bc8ddf Merge branch 'openfeeds' of https://github.com/paretje/qutebrowser into paretje-openfeeds 2016-03-24 23:26:42 +01:00
Kevin Velghe
11075457de Complete url's in openfeeds 2016-03-24 22:13:03 +01:00
Clayton Craft
ff4e17190f Allow searching system-wide data path on Linux for userscripts 2016-03-24 13:22:00 -07:00
Florian Bruhin
74e1900910 Merge branch 'phansch-feature_test_tab_settings' 2016-03-24 20:21:53 +01:00
Florian Bruhin
1c3516bfac Regenerate authors 2016-03-24 20:21:46 +01:00
Florian Bruhin
84b558ecd2 Merge branch 'feature_test_tab_settings' of https://github.com/phansch/qutebrowser into phansch-feature_test_tab_settings 2016-03-24 20:21:36 +01:00
Florian Bruhin
9559a0695d Merge branch 'tosmarcel-master' 2016-03-24 20:16:10 +01:00
Florian Bruhin
4fda35be66 Regenerate authors 2016-03-24 20:16:00 +01:00
Marcelo Santos
2a58cf09c5 Fix formatting and add video to the instructions 2016-03-24 13:44:42 +00:00
Marcelo Santos
9b3f17da61 Add sound troubleshooting instructions for debian-based distros 2016-03-24 13:25:46 +00:00
Philipp Hansch
a0e32753a5 Forgot a possible race condition 2016-03-24 12:20:08 +01:00
Philipp Hansch
624aa9b41d Try to fix possible race conditions 2016-03-24 11:40:10 +01:00
Philipp Hansch
7e55eee1b9 Set background-tabs to false for rest of the tests
Because it is set to true in a previous test and it is better to avoid
shared state in tests. Especially, if we want to randomize tests later
on.
2016-03-24 10:20:21 +01:00
Philipp Hansch
38bda67adc Add background-tabs and new-tab-position tests
Using hints to select and open the link.
Not sure if there are better ways.

Issue-Link: https://github.com/The-Compiler/qutebrowser/issues/999
2016-03-24 10:09:19 +01:00
Florian Bruhin
cd5cb2f50d Improve check_coverage.py output on failure 2016-03-24 06:51:22 +01:00
Florian Bruhin
504332cd6e Add a crowdfunding link to the README for GitHub 2016-03-23 18:10:19 +01:00