Florian Bruhin
|
9ff97d31da
|
tests: Provide two windows in win_registry fixture.
|
2015-08-23 21:55:12 +02:00 |
|
Florian Bruhin
|
2556e2e27b
|
Remove unused import.
|
2015-08-23 18:29:02 +02:00 |
|
Florian Bruhin
|
0907d8bf76
|
tests: Add a webview fixture.
|
2015-08-23 18:17:22 +02:00 |
|
Florian Bruhin
|
6d8854bc07
|
Simplify usage of tabhistory.TabHistoryItem.
|
2015-08-23 18:16:19 +02:00 |
|
Alexander Cogneau
|
193a8d5242
|
Add unit tests for KeyInput.BaseKeyParser
|
2015-08-22 23:26:13 +02:00 |
|
Florian Bruhin
|
543053c8f5
|
test_signalfilter: Remove unused fixture.
|
2015-08-20 07:14:32 +02:00 |
|
Florian Bruhin
|
7ee4d2f2c9
|
100% test coverage for commands.argparser.
|
2015-08-20 07:14:25 +02:00 |
|
Florian Bruhin
|
774ef58432
|
Use qapp fixture in enable_caret_browsing.
This fixes a segfault when only running test_position_caret.
|
2015-08-19 21:40:13 +02:00 |
|
Florian Bruhin
|
1a1bc4b8a8
|
Fix lint.
|
2015-08-19 21:13:35 +02:00 |
|
Florian Bruhin
|
a79c139aa4
|
Revert "style: Check for QColor when setting in ColorDict."
This reverts commit 9b82fae6fb .
|
2015-08-19 20:48:19 +02:00 |
|
Florian Bruhin
|
5a975d1b90
|
100% test coverage for config.style.
|
2015-08-19 20:43:06 +02:00 |
|
Florian Bruhin
|
b11e075047
|
Add __getitem__ to ConfigStub.
|
2015-08-19 20:39:48 +02:00 |
|
Florian Bruhin
|
1ddd65304a
|
tests: Use a real signal for ConfigStub.
|
2015-08-19 19:37:19 +02:00 |
|
Florian Bruhin
|
3d4fd2652b
|
test_editor: Skip un{read,writ}able on Windows.
Windows doesn't really have working file permissions...
|
2015-08-19 10:18:55 +02:00 |
|
Florian Bruhin
|
086c6c81a1
|
Simplify message_mock usage and assert more things.
|
2015-08-19 09:44:31 +02:00 |
|
Florian Bruhin
|
685bbaae6d
|
100% test coverage for misc.editor.
|
2015-08-19 09:34:44 +02:00 |
|
Florian Bruhin
|
aa367fa004
|
Simplify test_editor.
|
2015-08-19 09:09:09 +02:00 |
|
Florian Bruhin
|
acfdf8b956
|
Fix lint.
|
2015-08-19 07:57:47 +02:00 |
|
Florian Bruhin
|
aca082ce83
|
100% test coverage for misc.guiprocess.
|
2015-08-19 07:57:02 +02:00 |
|
Florian Bruhin
|
4efa022528
|
Fix test_checkpyver on Pythons without Tkinter.
|
2015-08-19 07:12:04 +02:00 |
|
Florian Bruhin
|
1a61e53daa
|
100% test coverage for misc.checkpyver.
|
2015-08-19 05:58:52 +02:00 |
|
Florian Bruhin
|
e4a0f1972f
|
tests: Improve MessageMock and use it.
|
2015-08-18 21:38:18 +02:00 |
|
Florian Bruhin
|
6d1b0ba260
|
Clean up conftest.py.
|
2015-08-18 20:43:42 +02:00 |
|
Florian Bruhin
|
2c5269acd6
|
Reorganize tests directory.
|
2015-08-18 20:19:02 +02:00 |
|
Florian Bruhin
|
d8734a668c
|
Add workaround for pytest-capturelog bug.
This should fix the tests on Windows.
See https://bitbucket.org/memedough/pytest-capturelog/issues/7/
|
2015-08-18 08:06:41 +02:00 |
|
Florian Bruhin
|
1e08a6a202
|
Fix message box tests on OS X.
From the QMessageBox::setWindowTitle docs:
On Mac OS X, the window title is ignored (as required by the Mac OS X
Guidelines).
|
2015-08-17 23:37:55 +02:00 |
|
Florian Bruhin
|
5d013a67a7
|
100% coverage for misc.msgbox.
|
2015-08-17 23:18:52 +02:00 |
|
Florian Bruhin
|
9892c10f49
|
100% test coverage for utils.error.
|
2015-08-17 23:18:39 +02:00 |
|
Florian Bruhin
|
9cd2f6ba24
|
100% test coverage for commands.cmdutils.
|
2015-08-17 21:13:13 +02:00 |
|
Florian Bruhin
|
00d81a74c2
|
100% coverage for browser.network.networkreply.
|
2015-08-17 07:16:33 +02:00 |
|
Florian Bruhin
|
e909b1f36d
|
Fix lint.
|
2015-08-16 23:20:30 +02:00 |
|
Florian Bruhin
|
dff4c37f54
|
100% test coverage for browser/signalfilter.py.
|
2015-08-16 23:16:13 +02:00 |
|
Florian Bruhin
|
75fd97f74f
|
Skip command test.
|
2015-08-16 22:51:00 +02:00 |
|
Florian Bruhin
|
6656e6aa9b
|
Merge branch 'command-tests'
|
2015-08-16 22:48:07 +02:00 |
|
Florian Bruhin
|
8655ebc9c8
|
Ignore "load glyph failed" message in JS test.
|
2015-08-16 22:00:21 +02:00 |
|
Florian Bruhin
|
044a63d4a4
|
Skip all GUIProcess tests on Windows.
|
2015-08-16 21:46:36 +02:00 |
|
Florian Bruhin
|
d94c1736db
|
Use a proper file:// URL for dirbrowser icons.
|
2015-08-16 19:04:54 +02:00 |
|
Florian Bruhin
|
a6c104f0ef
|
Fix TestFileSchemeHandler.test_dir on Windows.
|
2015-08-16 18:28:46 +02:00 |
|
Florian Bruhin
|
2a0dd341de
|
Move test_filescheme.py.
|
2015-08-16 18:27:26 +02:00 |
|
Antoni Boucher
|
abeb7e3390
|
Fixed issues.
|
2015-08-13 19:54:23 -04:00 |
|
Florian Bruhin
|
b3df642b21
|
Write more tests for dirbrowser.
|
2015-08-13 21:56:22 +02:00 |
|
Antoni Boucher
|
77190554cc
|
Merge branch 'master' into feature/directory-browser
|
2015-08-12 16:57:45 -04:00 |
|
Florian Bruhin
|
591a5b8c56
|
Revert "Add a workaround for pytest-html surrogate issue."
This reverts commit 9c3c46f677 .
|
2015-08-12 18:27:41 +02:00 |
|
Florian Bruhin
|
6f4141956b
|
Merge branch 'dynamic-column-widths' of git://github.com/acogneau/qutebrowser into acogneau-dynamic-column-widths
|
2015-08-12 18:20:01 +02:00 |
|
Alexander Cogneau
|
5a0b160736
|
Remove whitespace
|
2015-08-12 11:02:41 +02:00 |
|
Alexander Cogneau
|
61a6b196e9
|
Parametrization for completion tests
|
2015-08-12 09:08:04 +02:00 |
|
Florian Bruhin
|
25b43d528c
|
Clear textbase text properly.
|
2015-08-12 07:41:06 +02:00 |
|
Florian Bruhin
|
5a1663c584
|
100% coverage for mainwindow.statusbar.textbase.
|
2015-08-12 07:40:45 +02:00 |
|
Florian Bruhin
|
c1484553c1
|
Remove unused import.
|
2015-08-12 07:07:28 +02:00 |
|
Florian Bruhin
|
927cf84e14
|
100% test coverage for config.textwrapper.
|
2015-08-12 07:01:21 +02:00 |
|
Florian Bruhin
|
e47e131d41
|
Increase timeouts in test_timer.
Seems like Windows is too slow...
|
2015-08-12 06:53:34 +02:00 |
|
Florian Bruhin
|
a6d09b8cc9
|
100% coverage for browser.network.schemehandler.
|
2015-08-12 06:53:32 +02:00 |
|
Florian Bruhin
|
da9cb88c81
|
pylint: Disable protected-access for tests.
|
2015-08-12 06:44:33 +02:00 |
|
Florian Bruhin
|
cf45d97046
|
100% test coverage for utils.jinja.
|
2015-08-12 06:25:05 +02:00 |
|
Florian Bruhin
|
15c5cf75cd
|
Reset standarddir args in TestConfigInit.
This caused test_transform_userstylesheet_base64 to fail.
|
2015-08-11 21:22:36 +02:00 |
|
Florian Bruhin
|
9c3c46f677
|
Add a workaround for pytest-html surrogate issue.
See https://github.com/davehunt/pytest-html/issues/12
|
2015-08-11 21:11:28 +02:00 |
|
Florian Bruhin
|
8351c6d951
|
Make TestFileAndUserStyleSheet use qapp fixture.
|
2015-08-11 20:16:19 +02:00 |
|
Florian Bruhin
|
88d92db6e4
|
Add tests for rel. inexistent File/UserStyleSheet.
|
2015-08-11 20:15:55 +02:00 |
|
Florian Bruhin
|
14545a3a22
|
Mark some tests as integration and no coverage.
|
2015-08-11 19:36:27 +02:00 |
|
Florian Bruhin
|
0f47ef17a5
|
Make test_get_all_objects_qapp work on Windows.
|
2015-08-11 19:29:30 +02:00 |
|
Florian Bruhin
|
68f80c602b
|
Remove unused import.
|
2015-08-11 19:23:29 +02:00 |
|
Florian Bruhin
|
55bf555bfb
|
Mark test_get_all_objects_qapp to use qapp.
|
2015-08-11 18:14:17 +02:00 |
|
Florian Bruhin
|
52ec9ed28f
|
Move get_all_objects() tests into a class.
|
2015-08-11 18:13:02 +02:00 |
|
Florian Bruhin
|
bf156cf554
|
Mock out QApplication.allWidgets.
This could return widgets which are still alive from previous tests, so it's
not reliable.
|
2015-08-11 18:08:11 +02:00 |
|
Florian Bruhin
|
5bd55cb38b
|
Fix lint.
|
2015-08-11 17:16:58 +02:00 |
|
Florian Bruhin
|
2d8aaecd65
|
100% coverage for utils.debug.
|
2015-08-11 17:11:00 +02:00 |
|
Alexander Cogneau
|
8be433f5f6
|
Add tests:
- sum of column widths equals 100
- column widths tuple has 3 elements
|
2015-08-11 09:17:46 +02:00 |
|
Florian Bruhin
|
7412e4f723
|
Reorganize utils.debug tests and add some more.
|
2015-08-11 07:41:25 +02:00 |
|
Florian Bruhin
|
dcaae51b4f
|
Remove unused imports.
|
2015-08-10 19:47:19 +02:00 |
|
Florian Bruhin
|
c8679d6544
|
100% coverage for browser.webelem.
|
2015-08-10 19:37:16 +02:00 |
|
Florian Bruhin
|
9cabd4828c
|
Skip test_guiprocess:test_error on Windows.
Waiting for a new pytest-qt release which will probably fix this.
|
2015-08-10 06:54:11 +02:00 |
|
Florian Bruhin
|
69f6822c82
|
Fix lint.
|
2015-08-09 23:09:48 +02:00 |
|
Florian Bruhin
|
2fe1bcfc2b
|
Skip GUI tests when no DISPLAY is available.
Fixes #851.
|
2015-08-09 22:45:24 +02:00 |
|
Florian Bruhin
|
fbf53168c2
|
Skip test_double_start_finished on Windows.
It seems the process sometimes crashes...
|
2015-08-09 20:00:45 +02:00 |
|
Florian Bruhin
|
c4ebfcd4b3
|
Make tests fail on unexpected logging messages.
|
2015-08-09 20:00:36 +02:00 |
|
Florian Bruhin
|
fe3eb30892
|
Reorganize exceptions in urlutils.
- Instead of ValueError, a new InvalidUrlError is raised with invalid URLs.
- FuzzyUrlError got removed as it's basically the same as InvalidUrlError.
|
2015-08-09 18:48:32 +02:00 |
|
Antoni Boucher
|
4d2a55190f
|
Removed useless method.
|
2015-08-08 19:52:13 -04:00 |
|
Antoni Boucher
|
e5779d0775
|
Fixed tests.
|
2015-08-08 19:32:47 -04:00 |
|
Antoni Boucher
|
a6010e3ead
|
Renamed test function.
|
2015-08-08 15:40:18 -04:00 |
|
Antoni Boucher
|
14ae308279
|
Added a file:// scheme.
|
2015-08-08 15:16:48 -04:00 |
|
Antoni Boucher
|
2969599390
|
Use toLocalFile function instead of slicing.
|
2015-08-08 14:13:09 -04:00 |
|
Antoni Boucher
|
e6521b047d
|
Added get_file_list function and tests.
|
2015-08-08 14:10:27 -04:00 |
|
Antoni Boucher
|
b8809f879d
|
Added resource_filename function and tests.
|
2015-08-08 13:47:47 -04:00 |
|
Daniel
|
bb6d6e51f6
|
Remove trailing whitespace in test_urlutils.py
|
2015-08-08 13:59:43 +02:00 |
|
Daniel
|
72c65a812f
|
Move incdec_number tests to own class
and add tests for numbers in anchors
|
2015-08-08 13:47:17 +02:00 |
|
Daniel
|
9e98ab181a
|
Add URL validity check + tests to incdec_number
|
2015-08-08 00:57:16 +02:00 |
|
Daniel
|
c4c3a83ac0
|
rename url_incdec_number to incdec_number
|
2015-08-08 00:57:16 +02:00 |
|
Daniel
|
276b163e0d
|
Move logic from _navigate_incdec to urlutils
Also add unittests for url_incdec_number
|
2015-08-07 18:48:07 +02:00 |
|
Florian Bruhin
|
01f71e980d
|
pylint: Ignore import-error.
|
2015-08-07 00:16:37 +02:00 |
|
Florian Bruhin
|
8aab87e2a2
|
Don't readd capturelog handler after log tests.
I don't really know why, but doing that ends up with something calling
sys.stdout.close()...
Fixes #856.
|
2015-08-07 00:09:02 +02:00 |
|
Florian Bruhin
|
aa1ea9b063
|
Use parametrization for TestKeyToString:test_all.
This generates a lot of tests, but is more stable than our current approach.
|
2015-08-06 23:43:53 +02:00 |
|
Florian Bruhin
|
5ccdec4162
|
Add comment about Qt warning.
|
2015-08-06 23:19:05 +02:00 |
|
Florian Bruhin
|
0a16f29bd1
|
Hexlify strings in TestJavascriptEscape.
|
2015-08-04 23:12:40 +02:00 |
|
Florian Bruhin
|
0ce9ae070c
|
Add some more test cases for TestJavascriptEscape.
|
2015-08-04 12:42:49 +02:00 |
|
Florian Bruhin
|
43266ac08a
|
webelem: Add more tests.
|
2015-08-03 23:40:39 +02:00 |
|
Florian Bruhin
|
c0941ab19b
|
Add more webelem tests.
|
2015-08-02 23:49:22 +02:00 |
|
Florian Bruhin
|
982a6eccfb
|
Rewrite tests/browser/test_webelem.py for pytest.
|
2015-08-02 22:16:03 +02:00 |
|
Florian Bruhin
|
e5056e1c43
|
100% coverage for mainwindow.statusbar.tabindex.
|
2015-08-02 20:34:37 +02:00 |
|
Florian Bruhin
|
2190316b27
|
Fix lint.
|
2015-08-02 20:16:28 +02:00 |
|
Florian Bruhin
|
f8f03ea99d
|
Small simplification in test_http_hypothesis.
|
2015-08-02 20:14:39 +02:00 |
|