Commit Graph

25 Commits

Author SHA1 Message Date
Florian Bruhin 81d7b6a74c tests: Use star-unpacking instead of itertools.chain
pytest will soon deprecate using a non-collection iterable in parametrize:
https://docs.pytest.org/en/latest/deprecations.html#parametrize-iterators
2025-11-10 13:02:26 +01:00
Florian Bruhin 0718b25796 reuse: Initial copyright text update for myself
git ls-files | \
    xargs sed -Ei 's/Copyright [0-9]{4}(-[0-9]{4}) Florian Bruhin \(The Compiler\) <mail@qutebrowser\.org>/SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>/'
2023-07-23 12:49:05 +02:00
Florian Bruhin b2aaba6043 reuse: Adjust most license headers
git ls-files | xargs grep -l "is free software"  | xargs reuse annotate --license="GPL-3.0-or-later" --skip-unrecognised
2023-07-23 12:11:07 +02:00
Philipp Albrecht d9e8b638bf Remove vim modelines
We're deprecating vim modelines in favor of `.editorconfig`.

Removing vim modelines could be done using two one-liners. Most of the vim modelines
were followed by an empty line, so this one-liner took care of these ones:

```sh
rg '^# vim: .+\n\n' -l | xargs sed -i '/^# vim: /,+1d'
```

Then some of the vim modelines were followed by a pylint configuration line, so running
this one-liner afterwards took care of that:

```sh
rg '^# vim:' -l | xargs sed -i '/^# vim: /d'
```
2023-06-30 11:03:06 +02:00
Florian Bruhin d47cfd99d7 Run scripts/dev/rewrite_qt_imports.sh 2022-08-23 18:09:11 +02:00
Florian Bruhin 1a4fff1a42 doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
Florian Bruhin 222f1f19a1 Bump copyright years
Closes #6015
2021-01-20 20:06:19 +01:00
Florian Bruhin ebed435a0c Revert "Work around pytest-bdd issues"
This reverts commit d299e48960.

# Conflicts:
#	pytest.ini
2020-11-04 10:44:35 +01:00
Florian Bruhin 77e8eb270e Get rid of GlobalMessageBridge
After f16b96aa28, the per-window
MessageBridge wasn't really needed anymore - only for the statusbar's
set_text method, which we can just call directly as well.
2020-10-16 16:41:45 +02:00
Florian Bruhin 9e4276db9b Adjust copyrights for 2020 2020-01-04 18:21:17 +01:00
Florian Bruhin 36ac7f2470 Move HintManager from a per-tab to a per-window object
This means we use objreg less and we have less HintManager objects - what's
there not to like?
2019-10-09 23:07:32 +02:00
user202729 29a9b8c13a
Pass correct tab_id value to HintManager constructor 2019-05-08 08:43:11 +07:00
Florian Bruhin b9c1a1f642 Turn off hint scattering for test_match_benchmark
See #4592
2019-03-27 23:20:14 +01:00
Florian Bruhin 04cb8cc29a Remove unused import 2019-03-27 23:18:36 +01:00
Florian Bruhin 85f95f6f41 Always expose tabbed_browser window in test_hints
Showing the window wasn't needed for Qt 5.11 and 5.12, but seems to be needed
again with 5.13 (and was needed in <= 5.10). Let's just show it with all
versions.

Without this, window.innerHeight in JS is 0, causing is_visible to always be
false.

See #4592
2019-03-26 09:49:10 +01:00
Jay Kamat 3e816f5f8b
Update copyright for 2019 2019-02-22 21:45:08 -08:00
Florian Bruhin f6c36ccbee Rename openurl to load_url
We still call the :open command openurl, but in the tab API and in
TabbedBrowser it's now called load_url.
2018-11-30 08:31:03 +01:00
Florian Bruhin d299e48960 Work around pytest-bdd issues
See https://github.com/ionelmc/pytest-benchmark/issues/124
and https://github.com/ionelmc/pytest-benchmark/issues/125
2018-10-24 10:57:17 +02:00
Florian Bruhin 9727975914 Expose tab if needed 2018-10-17 22:38:24 +02:00
Florian Bruhin 5b7615886b Merge remote-tracking branch 'origin/pr/4330' 2018-10-16 12:02:22 +02:00
Florian Bruhin 767a1c102c Add hint benchmark tests 2018-10-16 11:09:27 +02:00
Jay Kamat 79f63b9e81
Fix line length warning in hint scatter test 2018-10-13 08:55:55 -07:00
Jay Kamat c2f027bf2b
Add tests for rounding error 2018-10-12 20:17:54 -07:00
Florian Bruhin 6f028e9ad0 Update copyright years 2018-02-05 12:19:50 +01:00
Florian Bruhin af638ec430 Move hint unittests to their own file 2017-11-29 10:44:32 +01:00