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
260f91de56
Replaced os.path by the pathlib equivalent in unit/javascript folder
2021-03-03 15:35:40 +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
a4d1b88348
tests: Don't set iframe.src in test_appendchild.js
...
The test file was taken from acid3, which does actually serve documents
for those locations.
For us, those documents never were available (as we're using `setHtml`
which uses a `data` URL internally), but the test does work just fine
without them. It was intended to test `appendChild` with different tags,
see the original commit (6c241f96ed ) as
well as #2723 for details.
So far, them being there wasn't a problem, but with Qt 5.15.2 (or rather
the underlying Chromium 83), we get errors logged like this one:
"Invalid relative frame source URL (xhtml.3) within data URL.", source: (47)
So let's just not set them at all.
See #5752 .
2020-10-13 18:05:25 +02:00
Florian Bruhin
9e4276db9b
Adjust copyrights for 2020
2020-01-04 18:21:17 +01:00
Florian Bruhin
7b87f6760f
Split config.stylesheet into separate module
...
This avoids circular imports such as:
urlutils -> config -> jinja -> urlutils
2019-12-20 16:54:08 +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
Florian Bruhin
0e11b85474
Re-enable stylesheet tests for Qt 5.12
...
This partially reverts commit 0953596ed6 .
This reverts commit 0aa342eae6 .
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
0953596ed6
Skip remaining tests which are broken on Qt 5.12
...
See #4320 , #4244
2018-12-11 18:36:52 +01:00
Florian Bruhin
0aa342eae6
Mark test_appendchild as xfail on Qt 5.12
...
See #4244
2018-12-11 11:05:06 +01:00
Florian Bruhin
718376f154
Refactor JS escaping
...
This renames javascript.convert_js_arg() to javascript.to_js() and uses that
instead of string_escape() where possible.
2018-09-27 16:36:28 +02:00
Florian Bruhin
d2207f66f1
Skip test_set_error entirely
...
See #3771
2018-04-16 17:14:14 +02:00
Florian Bruhin
a5f1022330
Log document.body in JS tests
2018-03-20 11:56:46 +01:00
Florian Bruhin
85d3d4baba
Mark test_set_error as flaky
2018-03-20 10:25:03 +01:00
Florian Bruhin
561295238d
Another try at stabilizing test_set_error
2018-03-20 08:58:48 +01:00
Florian Bruhin
81827a3150
Try to stabilize stylesheet tests
2018-03-20 07:05:03 +01:00
Florian Bruhin
ea1e52ea7c
Load page before loading stylesheets
...
If we don't do this, when doing:
self.config_stub.val.content.user_stylesheets = css_path
then _update_stylesheet gets called before the stylesheet QWebEngineScript did
run (as there was no load yet), so we get:
[:2] Uncaught TypeError: Cannot read property 'stylesheet' of undefined!
Instead, load the page first and then update the stylesheet.
This tests that live updating works properly, and also makes sure we don't run
into the problem described above.
2018-03-19 21:44:47 +01:00
Florian Bruhin
1162e640c5
Remove unused imports
2018-03-19 19:42:56 +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
232fd19422
Fix unit tests after refactoring
2018-03-19 09:53:35 +01:00
Florian Bruhin
6f028e9ad0
Update copyright years
2018-02-05 12:19:50 +01:00
Florian Bruhin
6a90cebe85
Get rid of backslash
2017-11-19 14:29:22 +01:00
Jay Kamat
6c241f96ed
Add test for appendChild #2723
...
Does some of #3295
2017-11-17 17:52:35 -05:00
Jay Kamat
92a6e61b52
Use importorskip to skip stylesheet tests on webkit only systems
2017-11-15 02:05:34 -05:00
Jay Kamat
28572ce3b1
Fix stylesheet tests crashing when no QtWebEngine available
2017-11-14 00:00:53 -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
155ee198cd
Update stylesheet tests for updates in stylesheet.js
2017-11-10 12:19:49 -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
04b66e1a0a
Add a test for svg files
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
9a1d10ca11
Add tests which override existing css
2017-11-09 14:44:33 -05:00
Jay Kamat
e7fdff5632
Implement basic stylesheet tests
2017-11-09 14:44:32 -05:00
Jay Kamat
2b5e8daba0
Implement qtwebengine version of JSTester
2017-11-09 14:44:32 -05:00