| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
fix engine stop
fix runner
Please enter the commit message for your changes. Lines starting
|
Sorry for the delay, will take a look at this now. |
Sorry, something went wrong.
|
Hm. Perhaps we need a proper way to declare elements in qml first (with parsing them at the build-time). |
Sorry, something went wrong.
|
This pull request is a little to big and covers different topics, not only the TestCase element. It would be a lot easier to review if this was split to independant changes. |
Sorry, something went wrong.
|
@ChALkeR as for the commits, i know its a big one, but im not sure i have time to squash them again in the near future, but here is a description: 82bac2d: adds some file to gitignore (related to the screenshot generator) aa70e8f: render.js, basically the existing render code moved to a separate file and defines some global functions to be available in the qmltest: 83ac1be: replace the existing render code with the refactored render code. 208172c: adds the TestCase.qml element, and a convenience subclass RenderTest.qml and some stylenits. Adds the option to specify additional import paths to the prefixedQmlLoader (not sure that is actually used in this PR), 71b7088: adds the qml testcases, and an example testsuite, tests.js. 07a1bf7: adds support for a before() function in a testcase to change properties before the qml element is rendered. and some minor tweaks. |
Sorry, something went wrong.
|
This has stalled long enough ! Unless someone else objects, I'll take care of splitting that PR in the next days. EDIT: Looks like this is so old that the merge process is fucking up. I cannot for the life of me find what happened to some of the files that weren't created, but edited by this PR... this isn't going to be a breeze. |
Sorry, something went wrong.
|
I don't think we should make render tests more complex. |
Sorry, something went wrong.
That's done in cb3283c. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Added a qml TestCase element that works in both qmlweb and qt. It defines a test function, handles startup delay and timeout, has basic test functions (expect.toBe and fail for now) and a compareRender function.
When a test containing a TestCase element as the child of the root is run in jasmine:
qmlweb-dev now has an utility qtqmltest which can load a qml file and run the testcases defined in it. The compareRender function creates a reference screenshot instead of comparing it.
To test it:
from the qmlweb directory:
then run: node dev/render.js