Commit Graph

45 Commits

Author SHA1 Message Date
Lembrun 880dd82be8 Changing path.open to read_text 2021-03-12 22:29:50 +01:00
Lembrun 59e0449471 Added blank line 2021-03-11 20:19:18 +01:00
Lembrun 148d5f25ef Created JS_DIR and moved str(css_path) 2021-03-11 20:13:34 +01:00
Lembrun c947488dd7 Changed joinpath to / 2021-03-11 08:36:57 +01:00
Lembrun 744cd94469 Removed unused import os in tests/unit/javascript 2021-03-10 10:49:21 +01:00
Lembrun 6aa6a9d0f5 Merge branch 'master' into pathlib-/unit/javascript 2021-03-09 22:46:25 +01:00
Florian Bruhin 0a38fff4c6 Simplify test_greasemonkey via js_tester fixture 2021-03-09 18:42:19 +01:00
Lembrun 260f91de56 Replaced os.path by the pathlib equivalent in unit/javascript folder 2021-03-03 15:35:40 +01:00
Lembrun e8b05af233 Qtbot methods changed to snake case,snake case check added 2021-02-26 22:07:08 +01:00
Florian Bruhin a9bcb39cd7 Add unit tests for JS quirks 2021-02-11 18:00:42 +01: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 c99bf8ba32 tests: Retry setting JS HTML if loading timed out
Should hopefully help with flakiness on macOS...
See #5390
2020-07-28 20:40:29 +02:00
Florian Bruhin 9e4276db9b Adjust copyrights for 2020 2020-01-04 18:21:17 +01:00
Florian Bruhin 22e1b22acc Remove unused import 2019-02-25 11:26:44 +01:00
Florian Bruhin 8642b6e8ce Fix JSTester.run_file() for new pkg_resources
Read the file via open() instead of utils.read_file.
2019-02-25 09:28:25 +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 905863f74e Fix lint 2018-09-27 10:08:50 +02:00
Florian Bruhin 56b8447fb9 Use callback.assert_called_with() 2018-09-27 10:06:50 +02:00
Florian Bruhin a27a8ada4d Use qtbot.wait_callback 2018-09-26 11:45:45 +02:00
Florian Bruhin a5f1022330 Log document.body in JS tests 2018-03-20 11:56:46 +01:00
Florian Bruhin b588f54a53 Fail javascript tests on logging messages 2018-03-19 20:43:55 +01:00
Florian Bruhin 1162e640c5 Remove unused imports 2018-03-19 19:42:56 +01:00
Florian Bruhin f5d7605ae0 Add a :scroll-to-anchor command
Fixes #2784
2018-03-19 19:18:33 +01:00
Florian Bruhin 460bd86579 Initial attempt at using the tab API for tests/unit/javascript 2018-03-19 18:18:21 +01:00
Florian Bruhin 6f028e9ad0 Update copyright years 2018-02-05 12:19:50 +01:00
Florian Bruhin 430126dcc8 pylint: Re-enable ungrouped-imports 2017-12-15 23:08:53 +01:00
Jay Kamat 6338810396
Increase timeouts for javascript tests 2017-11-17 21:42:24 -05:00
Jay Kamat 5913552dfe
Fix style issues in stylesheet tests 2017-11-13 19:57:11 -05:00
Jay Kamat 324c537a3d
Refactor webkit and webengine js testers to have a common subclass 2017-11-10 13:00:44 -05:00
Jay Kamat 83e28a70c5
Fix error message printing for webengine js tests 2017-11-10 12:34:23 -05:00
Jay Kamat d39dda38ce
Refactor CallbackChecker into test utils 2017-11-10 12:27:00 -05:00
Jay Kamat 5ac8e5ad3e
Clean up stylesheet tests 2017-11-10 12:19:35 -05:00
Jay Kamat 2f9a857a27
Add test for styling error pages 2017-11-09 14:44:33 -05:00
Jay Kamat 03eae9140e
Implement proper loading of stylesheet.js 2017-11-09 14:44:33 -05:00
Jay Kamat 2b5e8daba0
Implement qtwebengine version of JSTester 2017-11-09 14:44:32 -05:00
Florian Bruhin 822623f2ed Finally update copyrights... 2017-05-09 21:37:03 +02:00
Florian Bruhin 7592345b6e Make unittests work without QtWebKit 2016-09-05 18:45:50 +02:00
Florian Bruhin 1fb34331e5 tests: Default to raising=True for qtbot.
- qtbot.waitSignal with raising=True is the default this way, so we remove the
  raising=True.
- qtbot.waitSignal with raising=False stay untouched
- Some qtbot.waitSignal without raising had one added (because we don't want it
  to raise)
- Some qtbot.waitSignal without raising actually should've raised, which they
  do now.
2016-01-08 09:49:06 +01:00
Florian Bruhin a5f2ac5f03 Adjust copyright years. 2016-01-04 07:12:39 +01:00
Florian Bruhin e78d2a8399 tests: Check args for loadFinished signals. 2015-12-17 07:49:28 +01: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 2c5269acd6 Reorganize tests directory. 2015-08-18 20:19:02 +02:00
Renamed from tests/javascript/conftest.py (Browse further)