mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-03-16 22:10:32 +00:00
* Switched qunit dependency to npm * Fixed testem not working * Switched test.js build to use node-qunit. As stated in the QUnit docs: The qunit package prior to 2.4.1 is an alternative CLI that is now published as node-qunit. * Introduced qunit 2.4.1, with an npm script for running node tests * Switched testem page fixture to use qunit package instead of qunitjs * Configured testem to run in headless mode, and use new npm node test script for "Node" launcher configuration. This means that individual tests will show up in testem output via the the `tap` test protocol. * Made canvas_static 'toDataURL cropping' test asynchronous. * Configured QUnit testTimeout and enabled 'noglobals' config * Updated .travis.yml config to do cross-browser/env testing via Testem * Specify qunit binary directly to fix confict with binary from node-qunit * Avoid test hanging by aborting the animated cursor * Firefox test fix, and enabled in Testem config
34 lines
660 B
JSON
34 lines
660 B
JSON
{
|
|
"framework": "qunit",
|
|
"serve_files": [
|
|
"test/fixtures/test_script.js",
|
|
"dist/fabric.js",
|
|
"test/unit/*.js"
|
|
],
|
|
"routes": {
|
|
"/fixtures": "test/fixtures"
|
|
},
|
|
"test_page": "tests.mustache?hidepassed&hideskipped&timeout=60000",
|
|
"browser_args": {
|
|
"Chrome": [ "--headless", "--disable-gpu", "--remote-debugging-port=9222" ],
|
|
"Firefox": [ "--headless" ]
|
|
},
|
|
"launch_in_dev": [
|
|
"Chrome",
|
|
"Node",
|
|
"Firefox"
|
|
],
|
|
"launch_in_ci": [
|
|
"Chrome",
|
|
"Node",
|
|
"Firefox"
|
|
],
|
|
"launchers": {
|
|
"Node": {
|
|
"command": "npm run test:node",
|
|
"protocol": "tap"
|
|
}
|
|
},
|
|
"timeout": 540,
|
|
"parallel": 4
|
|
}
|