summaryrefslogtreecommitdiffstats
path: root/tests/auto/wasm/selenium/qwasmwindow.py
Commit message (Collapse)AuthorAgeFilesLines
* wasm tests: Update window class in Selenium testPiotr Wierciński2024-12-201-1/+1
| | | | | | | | Rename qt-window to qt-decorated-window to follow changes introduced by: 2ab07b4558ce074fcd6cac699ea71df31fc324f5. Change-Id: I41f84cc201821d620be11b67939aa94664a8d208 Reviewed-by: Morten Johan Sørvig <[email protected]>
* wasm: Fix focus handlingEven Oscar Andersen2024-11-261-0/+19
| | | | | | | | | | | | | | | | | | We had input handling enabled as a precondition for setting focus. This is wrong, we need to have the focus for toggle buttons and other non-input things as well. (Also toggle buttons act on spacebar). Also selects a new active window if the window that is active (i.e a dialog) is deleted. Also shift + tab did not always work, fixed to emit Key_Backtab Fixes: QTBUG-130371 Pick-to: 6.8 Change-Id: I3b36a3e200ba9d4b0791865e75235ddfb72bcaa5 Reviewed-by: Morten Johan Sørvig <[email protected]>
* wasm: Fix tooltip visibleEven Oscar Andersen2024-10-151-0/+19
| | | | | | | | | | Fixes a problem where tooltips only worked for the first instance activated. Fixes: QTBUG-129234 Pick-to: 6.8 Change-Id: I45619b1ca8001b74b148b98a8795000630dcacf7 Reviewed-by: Morten Johan Sørvig <[email protected]>
* tests: Use Chrome provided by env var for Selenium testsPiotr Wierciński2024-09-161-5/+8
| | | | | | | | | Use Chrome and chromedriver version provided by env var for better test stability. Change-Id: I95cb53b40e4b04054327044ca4768dfa0cf15e06 Reviewed-by: Morten Johan Sørvig <[email protected]> Reviewed-by: Even Oscar Andersen <[email protected]>
* wasm: Fix conflict usage for tst_qwasmwindow_harness.htmlEven Oscar Andersen2024-09-051-1/+1
| | | | | | | | | | | | | There is a default tst_qwasmwindow_harness.html created, and we have our own in addition. This creates problems if one runs configure and do not perform a clean build afterwards as we would be left with the autogenerated file. The solution is to rename our custom file so that there is no conflict. Change-Id: I1f0436eea752059d4dcf22407c760339eed46c09 Reviewed-by: Piotr Wierciński <[email protected]>
* wasm: disable spinbox context menu if not ASYNCIFY to avoid deadlockEven Oscar Andersen2024-09-051-0/+35
| | | | | | | | Using exec will lock the application if asyncify is not used Fixes: QTBUG-120925 Change-Id: Ic8b3acc402f3ecbfb07fd8cb80013e02e2421402 Reviewed-by: Morten Johan Sørvig <[email protected]>
* wasm: Fix handling of native windowsEven Oscar Andersen2024-06-131-6/+51
| | | | | | | | | | | | | | | There are two problems 1) internal (not toplevel) windows needs to have the frameLess attribute set. Without this attribute the window is not visible 2) The backingstore needs to use the correct window, if not the symptoms are that the display is not always correctly updated. Seen in the qtdoc/examples/demos/documentviewer demo Fixes: QTBUG-125856 Change-Id: I040d963c0c130214cc70a607090faa006c02f981 Reviewed-by: Morten Johan Sørvig <[email protected]>
* wasm: Disable failing selenium test temporarilyPiotr Wiercinski2024-04-031-0/+2
| | | | | | | Task-number: QTBUG-123942 Change-Id: I89ee1ce70fba69c9b2d6109669186a06a92da039 Reviewed-by: Even Oscar Andersen <[email protected]> Reviewed-by: Tor Arne Vestbø <[email protected]>
* wasm: Document and test OpenGLContext limitationsEven Oscar Andersen2024-03-221-4/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a limit in WebGL that OpenGL context sharing is not supported. There is a proposal from 2013 (https://www.khronos.org/webgl/wiki/SharedResouces), but it seems that it never was implemented. There is an additional limit in that there is exactly one WebGL context for each canvas (i.e. window). A part of the problem here is that the identifier for an OpenGL context is essentially a surface-thread-context triplet. And the thread part might be more difficult to handle in a javascript setting. Regardless of why, we need to have an opinion about what the consequences are, and what we support to what extent. As such this commit: 1) Adds a comment on the QOpenGLContext describing the limitations 2) Adds a qWarning() on the first activation of a shared context. The second item is not complete. We will have problems with multiple individual contexts also, It is just not possible to warn for these cases. The second item covers, maybe, the most common case. Change-Id: I51550a6acb0a7f6f6fa5e9e2c3da080a1d2b498f Reviewed-by: Morten Johan Sørvig <[email protected]>
* wasm: Qt::WA_ShowWithoutActivating was not respectedEven Oscar Andersen2024-03-211-0/+85
| | | | | | | | | | | | The Qt::WA_ShowWithoutActivating flag was not respected Added test in the part of the code that calls requestActivateWindow Added selenium focus test Fixes: QTBUG-122776 Change-Id: I1a248ed4352f86376d615a4cb7022e7ea095d4e7 Reviewed-by: Piotr Wierciński <[email protected]>
* wasm: Fix minimum and default window sizesPiotr Wierciński2024-03-191-2/+1
| | | | | | | | | Remove minimum window size restriction. User should be able to change minimum window size if needed. Set default size to 160x160 to match other platforms. Change-Id: Ic199fc34982021ba38d631476fbb1c51370b2e8e Reviewed-by: Tor Arne Vestbø <[email protected]>
* wasm tests: Use WebDriverManager to install chromedriverPiotr Wiercinski2024-03-131-4/+4
| | | | | | | | | | Use WebDriverManager to install the correct version of chromedriver. This will help avoiding mismatch of Chrome/chromedriver versions, which sometimes happen in CI. Fixes: QTBUG-122729 Change-Id: I40cf62c02c2cb6f57b031cc83b9fa38f6ed2610e Reviewed-by: Simo Fält <[email protected]>
* wasm: Make sure we can add screen after releaseRequestUpdateHold has been calledEven Oscar Andersen2024-03-051-4/+4
| | | | | | | | | | | | | | Before this fix, such screens would not render due to requestUpdateHold is initialized to true and never reset. The fix is to change the requestUpdateHold member to be a static variable, so that it can be read by screens added after requestUpdateHold has been called. Also, add a test that would fail without this fix Change-Id: Idf2ac916766a03480272cd550f9d1ab7fc5c5158 Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Morten Johan Sørvig <[email protected]>
* Correct license for tools filesLucie Gérard2024-03-051-1/+1
| | | | | | | | | | | | According to QUIP-18 [1], all tools file should be LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: Icd5d5be2e04819617e68ff142924de1773bebbad Reviewed-by: Kai Köhne <[email protected]>
* wasm: Refractor Selenium manual test into auto testPiotr Wierciński2024-02-071-0/+911
Using Selenium for WebAssembly testing enables us to test user interactions, which is very valuable. Turning this test into automated allows us to run it in CI pipeline. This will help with detecting regressions. Two of these tests are currently failing on CI machine and they have been temporarily disabled. Change-Id: I754dd05955e55eb031070f5328ef715b7826c2b5 Reviewed-by: Morten Johan Sørvig <[email protected]> Reviewed-by: Qt CI Bot <[email protected]>