Florian Bruhin
908abb6566
notifications: Fix image padding assertion
...
The underlying Chromium pads images so that scanlines align on 4-byte
boundaries. Thus, with an image size of e.g. 239x239, we'll have 3 bytes
of padding (239 mod 4 = 3; 240 mod 4 = 0).
Fixes #6375
2021-04-09 17:14:26 +02:00
Florian Bruhin
ca1a204514
notifications: Make test page more human-friendly
2021-03-27 20:54:53 +01:00
Florian Bruhin
1dcd0d5483
notifications: Implement closing via web
2021-03-27 15:30:57 +01:00
Florian Bruhin
9cda31f7f6
notifications: Fix handling of padded images
2021-03-27 15:30:02 +01:00
Florian Bruhin
d1e9247536
notifications: multiple -> replacing in tests
2021-03-27 15:30:02 +01:00
Florian Bruhin
b6dc805138
notifications: Adjust tests for new image handling
...
Also check image validity in tests
2021-03-27 15:30:02 +01:00
Florian Bruhin
df26a06cb5
notifications: Clearer test images
2021-03-27 15:30:02 +01:00
Florian Bruhin
b63185f18d
notifications: Fix getting permission in test HTML
2021-03-27 15:30:02 +01:00
Florian Bruhin
76842dbd53
notifications: Fetch capabilities early and avoid restart
2021-03-25 15:41:21 +01:00
Florian Bruhin
4f27e6e0ea
notifications: Show error in test HTML if no permission given
2021-03-25 12:07:11 +01:00
Florian Bruhin
ff3f94e66e
notifications: Reformat test HTML
2021-03-25 12:07:11 +01:00
Florian Bruhin
4c3d7b25af
notifications: Add some structure to test HTML
2021-03-25 12:07:11 +01:00
Florian Bruhin
1739449c78
notifications: Move test files
2021-03-25 12:07:11 +01:00
Florian Bruhin
d4ea1df232
Improve window_open.html tests
2018-03-25 19:56:48 +02:00
Florian Bruhin
91ca7d0911
tests: Rename close function in window_open.html
...
Naming it close() conflicts with the global JS close()
2018-03-25 19:39:34 +02:00
Florian Bruhin
98b2b67b8b
Add tests for per-URL JavaScript settings
2018-02-23 15:08:07 +01:00
Florian Bruhin
3772dc5930
Drop legacy QtWebKit support
...
See #2742
2017-09-18 23:01:17 +02:00
Florian Bruhin
57fbfbd606
Set an initial window size for background tabs
...
When we open a background tab, it gets a hardcoded size (800x600 or so) because
it doesn't get resized by the layout yet.
By resizing it to the size it'll actually have later, we make sure scrolling to
an anchor in an background tab works, and JS also gets the correct size for
background tabs.
Fixes #1190
Fixes #2495
See #1417
2017-06-11 17:48:01 +02:00
Florian Bruhin
ae5e2839ae
Revert accidental changes
2016-10-05 15:45:30 +02:00
Florian Bruhin
6be4b74c59
tests: Fix redirect-later-continue with timeout
2016-10-05 15:36:25 +02:00
Florian Bruhin
f2c4cedf61
QtWebEngine: Don't add invalid URLs to history
2016-09-05 15:08:00 +02:00
Florian Bruhin
a52c8d6576
Clean up javascript double-close test
...
The test for QtWebEngine was removed because something weird happened
with the two pytest-bdd tags, and I'm too annoyed with everything being
broken to investigate now... Future me, I'm sorry.
2016-09-05 15:08:00 +02:00
Florian Bruhin
ce98d89352
Add some (crashing...) window.open/.close tests
2016-09-05 15:08:00 +02:00
Florian Bruhin
30c07e9b5c
tests: Add url to window_open.html
2016-09-05 15:08:00 +02:00
Florian Bruhin
a4cd0291a6
Implement QWebEngineView.createWindow
2016-09-05 15:08:00 +02:00
Florian Bruhin
a06dcc7f0b
BDD: Use :click-element instead of hints
2016-08-18 16:25:58 +02:00
Florian Bruhin
424758a6d1
Use HTML content for localstorage test
...
JS logging is disabled by QtWebKit in private browsing mode
2016-08-02 15:18:25 +02:00
Florian Bruhin
43ff1b0d97
Tunnel private-browsing to QtWebKit correctly
2016-08-02 14:19:31 +02:00
Florian Bruhin
9c49900f9e
QtWebEngine: Add JS logging
2016-07-13 10:55:04 +02:00
Florian Bruhin
64d4c9f83e
Clean up end2end test file structure
...
This renames tests/integration to tests/end2end and moves some files to
tests/end2end/fixtures.
2016-05-29 18:20:00 +02:00