- Linting (ESLint): Lint per latest ash-nazg (e.g., named capture)
- Linting (ESLint): Add HTML files to linting and add devDeps for new ash-nazg - npm: Update devDeps
This commit is contained in:
@@ -7,9 +7,10 @@
|
||||
<link rel="stylesheet" href="../node_modules/qunit/qunit/qunit.css"/>
|
||||
<script src="../editor/jquery.min.js"></script>
|
||||
<script>
|
||||
// Mock for browser.js
|
||||
window.svgEditor = {
|
||||
ready () {}
|
||||
ready () {
|
||||
// Mock for browser.js
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="../node_modules/qunit/qunit/qunit.js"></script>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Expects an out of bounds `INDEX_SIZE_ERR` exception.
|
||||
* @param {GenericObject} obj
|
||||
* @param {GenericCallback} fn
|
||||
* @param {Any} arg1
|
||||
* @param {any} arg1
|
||||
* @returns {void}
|
||||
*/
|
||||
function expectOutOfBoundsException (obj, fn, arg1) {
|
||||
|
||||
@@ -290,8 +290,7 @@ QUnit.test('Test getPathDFromElement', function (assert) {
|
||||
QUnit.test('Test getBBoxOfElementAsPath', function (assert) {
|
||||
/**
|
||||
* Wrap `utilities.getBBoxOfElementAsPath` to convert bbox to object for testing.
|
||||
* @implements {module:utilities.getBBoxOfElementAsPath}
|
||||
* @returns {DOMRect|false} The resulting path's bounding box object.
|
||||
* @type {module:utilities.getBBoxOfElementAsPath}
|
||||
*/
|
||||
function getBBoxOfElementAsPath (elem, addSVGElementFromJson, pathActions) {
|
||||
const bbox = utilities.getBBoxOfElementAsPath(elem, addSVGElementFromJson, pathActions);
|
||||
|
||||
Reference in New Issue
Block a user