VisualEditor/VisualEditor (main)

sourcepatches
$ date
--- stdout ---
Wed Mar 27 13:05:57 UTC 2024

--- end ---
$ git clone file:///srv/git/VisualEditor-VisualEditor.git repo --depth=1 -b master
--- stderr ---
Cloning into 'repo'...
--- stdout ---

--- end ---
$ git config user.name libraryupgrader
--- stdout ---

--- end ---
$ git config user.email tools.libraryupgrader@tools.wmflabs.org
--- stdout ---

--- end ---
$ git submodule update --init
--- stdout ---

--- end ---
$ grr init
--- stdout ---
Installed commit-msg hook.

--- end ---
$ git show-ref refs/heads/master
--- stdout ---
27245dd01b53dde49cc6515d2f0c60b670f832d0 refs/heads/master

--- end ---
$ /usr/bin/npm audit --json
--- stdout ---
{
  "auditReportVersion": 2,
  "vulnerabilities": {
    "grunt-css-url-embed": {
      "name": "grunt-css-url-embed",
      "severity": "moderate",
      "isDirect": true,
      "via": [
        "request"
      ],
      "effects": [],
      "range": ">=1.1.0",
      "nodes": [
        "node_modules/grunt-css-url-embed"
      ],
      "fixAvailable": {
        "name": "grunt-css-url-embed",
        "version": "1.0.4",
        "isSemVerMajor": true
      }
    },
    "request": {
      "name": "request",
      "severity": "moderate",
      "isDirect": false,
      "via": [
        {
          "source": 1096727,
          "name": "request",
          "dependency": "request",
          "title": "Server-Side Request Forgery in Request",
          "url": "https://github.com/advisories/GHSA-p8p7-x288-28g6",
          "severity": "moderate",
          "cwe": [
            "CWE-918"
          ],
          "cvss": {
            "score": 6.1,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
          },
          "range": "<=2.88.2"
        },
        "tough-cookie"
      ],
      "effects": [
        "grunt-css-url-embed"
      ],
      "range": "*",
      "nodes": [
        "node_modules/request"
      ],
      "fixAvailable": {
        "name": "grunt-css-url-embed",
        "version": "1.0.4",
        "isSemVerMajor": true
      }
    },
    "tough-cookie": {
      "name": "tough-cookie",
      "severity": "moderate",
      "isDirect": false,
      "via": [
        {
          "source": 1096643,
          "name": "tough-cookie",
          "dependency": "tough-cookie",
          "title": "tough-cookie Prototype Pollution vulnerability",
          "url": "https://github.com/advisories/GHSA-72xf-g2v4-qvf3",
          "severity": "moderate",
          "cwe": [
            "CWE-1321"
          ],
          "cvss": {
            "score": 6.5,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
          },
          "range": "<4.1.3"
        }
      ],
      "effects": [
        "request"
      ],
      "range": "<4.1.3",
      "nodes": [
        "node_modules/tough-cookie"
      ],
      "fixAvailable": {
        "name": "grunt-css-url-embed",
        "version": "1.0.4",
        "isSemVerMajor": true
      }
    }
  },
  "metadata": {
    "vulnerabilities": {
      "info": 0,
      "low": 0,
      "moderate": 3,
      "high": 0,
      "critical": 0,
      "total": 3
    },
    "dependencies": {
      "prod": 1,
      "dev": 709,
      "optional": 14,
      "peer": 6,
      "peerOptional": 0,
      "total": 709
    }
  }
}

--- end ---
$ /usr/bin/npm audit --json
--- stdout ---
{
  "auditReportVersion": 2,
  "vulnerabilities": {
    "grunt-css-url-embed": {
      "name": "grunt-css-url-embed",
      "severity": "moderate",
      "isDirect": true,
      "via": [
        "request"
      ],
      "effects": [],
      "range": ">=1.1.0",
      "nodes": [
        "node_modules/grunt-css-url-embed"
      ],
      "fixAvailable": {
        "name": "grunt-css-url-embed",
        "version": "1.0.4",
        "isSemVerMajor": true
      }
    },
    "request": {
      "name": "request",
      "severity": "moderate",
      "isDirect": false,
      "via": [
        {
          "source": 1096727,
          "name": "request",
          "dependency": "request",
          "title": "Server-Side Request Forgery in Request",
          "url": "https://github.com/advisories/GHSA-p8p7-x288-28g6",
          "severity": "moderate",
          "cwe": [
            "CWE-918"
          ],
          "cvss": {
            "score": 6.1,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
          },
          "range": "<=2.88.2"
        },
        "tough-cookie"
      ],
      "effects": [
        "grunt-css-url-embed"
      ],
      "range": "*",
      "nodes": [
        "node_modules/request"
      ],
      "fixAvailable": {
        "name": "grunt-css-url-embed",
        "version": "1.0.4",
        "isSemVerMajor": true
      }
    },
    "tough-cookie": {
      "name": "tough-cookie",
      "severity": "moderate",
      "isDirect": false,
      "via": [
        {
          "source": 1096643,
          "name": "tough-cookie",
          "dependency": "tough-cookie",
          "title": "tough-cookie Prototype Pollution vulnerability",
          "url": "https://github.com/advisories/GHSA-72xf-g2v4-qvf3",
          "severity": "moderate",
          "cwe": [
            "CWE-1321"
          ],
          "cvss": {
            "score": 6.5,
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
          },
          "range": "<4.1.3"
        }
      ],
      "effects": [
        "request"
      ],
      "range": "<4.1.3",
      "nodes": [
        "node_modules/tough-cookie"
      ],
      "fixAvailable": {
        "name": "grunt-css-url-embed",
        "version": "1.0.4",
        "isSemVerMajor": true
      }
    }
  },
  "metadata": {
    "vulnerabilities": {
      "info": 0,
      "low": 0,
      "moderate": 3,
      "high": 0,
      "critical": 0,
      "total": 3
    },
    "dependencies": {
      "prod": 1,
      "dev": 709,
      "optional": 14,
      "peer": 6,
      "peerOptional": 0,
      "total": 709
    }
  }
}

--- end ---
Attempting to npm audit fix
$ /usr/bin/npm audit fix --dry-run --only=dev --json
--- stderr ---
npm WARN invalid config only="dev" set in command line options
npm WARN invalid config Must be one of: null, prod, production
--- stdout ---
{
  "added": 709,
  "removed": 0,
  "changed": 0,
  "audited": 710,
  "funding": 111,
  "audit": {
    "auditReportVersion": 2,
    "vulnerabilities": {
      "grunt-css-url-embed": {
        "name": "grunt-css-url-embed",
        "severity": "moderate",
        "isDirect": true,
        "via": [
          "request"
        ],
        "effects": [],
        "range": ">=1.1.0",
        "nodes": [
          "node_modules/grunt-css-url-embed"
        ],
        "fixAvailable": {
          "name": "grunt-css-url-embed",
          "version": "1.0.4",
          "isSemVerMajor": true
        }
      },
      "request": {
        "name": "request",
        "severity": "moderate",
        "isDirect": false,
        "via": [
          {
            "source": 1096727,
            "name": "request",
            "dependency": "request",
            "title": "Server-Side Request Forgery in Request",
            "url": "https://github.com/advisories/GHSA-p8p7-x288-28g6",
            "severity": "moderate",
            "cwe": [
              "CWE-918"
            ],
            "cvss": {
              "score": 6.1,
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
            },
            "range": "<=2.88.2"
          },
          "tough-cookie"
        ],
        "effects": [
          "grunt-css-url-embed"
        ],
        "range": "*",
        "nodes": [
          "node_modules/request"
        ],
        "fixAvailable": {
          "name": "grunt-css-url-embed",
          "version": "1.0.4",
          "isSemVerMajor": true
        }
      },
      "tough-cookie": {
        "name": "tough-cookie",
        "severity": "moderate",
        "isDirect": false,
        "via": [
          {
            "source": 1096643,
            "name": "tough-cookie",
            "dependency": "tough-cookie",
            "title": "tough-cookie Prototype Pollution vulnerability",
            "url": "https://github.com/advisories/GHSA-72xf-g2v4-qvf3",
            "severity": "moderate",
            "cwe": [
              "CWE-1321"
            ],
            "cvss": {
              "score": 6.5,
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
            },
            "range": "<4.1.3"
          }
        ],
        "effects": [
          "request"
        ],
        "range": "<4.1.3",
        "nodes": [
          "node_modules/tough-cookie"
        ],
        "fixAvailable": {
          "name": "grunt-css-url-embed",
          "version": "1.0.4",
          "isSemVerMajor": true
        }
      }
    },
    "metadata": {
      "vulnerabilities": {
        "info": 0,
        "low": 0,
        "moderate": 3,
        "high": 0,
        "critical": 0,
        "total": 3
      },
      "dependencies": {
        "prod": 1,
        "dev": 709,
        "optional": 14,
        "peer": 6,
        "peerOptional": 0,
        "total": 709
      }
    }
  }
}

--- end ---
{"added": 709, "removed": 0, "changed": 0, "audited": 710, "funding": 111, "audit": {"auditReportVersion": 2, "vulnerabilities": {"grunt-css-url-embed": {"name": "grunt-css-url-embed", "severity": "moderate", "isDirect": true, "via": ["request"], "effects": [], "range": ">=1.1.0", "nodes": ["node_modules/grunt-css-url-embed"], "fixAvailable": {"name": "grunt-css-url-embed", "version": "1.0.4", "isSemVerMajor": true}}, "request": {"name": "request", "severity": "moderate", "isDirect": false, "via": [{"source": 1096727, "name": "request", "dependency": "request", "title": "Server-Side Request Forgery in Request", "url": "https://github.com/advisories/GHSA-p8p7-x288-28g6", "severity": "moderate", "cwe": ["CWE-918"], "cvss": {"score": 6.1, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}, "range": "<=2.88.2"}, "tough-cookie"], "effects": ["grunt-css-url-embed"], "range": "*", "nodes": ["node_modules/request"], "fixAvailable": {"name": "grunt-css-url-embed", "version": "1.0.4", "isSemVerMajor": true}}, "tough-cookie": {"name": "tough-cookie", "severity": "moderate", "isDirect": false, "via": [{"source": 1096643, "name": "tough-cookie", "dependency": "tough-cookie", "title": "tough-cookie Prototype Pollution vulnerability", "url": "https://github.com/advisories/GHSA-72xf-g2v4-qvf3", "severity": "moderate", "cwe": ["CWE-1321"], "cvss": {"score": 6.5, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"}, "range": "<4.1.3"}], "effects": ["request"], "range": "<4.1.3", "nodes": ["node_modules/tough-cookie"], "fixAvailable": {"name": "grunt-css-url-embed", "version": "1.0.4", "isSemVerMajor": true}}}, "metadata": {"vulnerabilities": {"info": 0, "low": 0, "moderate": 3, "high": 0, "critical": 0, "total": 3}, "dependencies": {"prod": 1, "dev": 709, "optional": 14, "peer": 6, "peerOptional": 0, "total": 709}}}}
$ /usr/bin/npm audit fix --only=dev
--- stderr ---
npm WARN invalid config only="dev" set in command line options
npm WARN invalid config Must be one of: null, prod, production
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
--- stdout ---

added 708 packages, and audited 709 packages in 17s

111 packages are looking for funding
  run `npm fund` for details

# npm audit report

request  *
Severity: moderate
Server-Side Request Forgery in Request - https://github.com/advisories/GHSA-p8p7-x288-28g6
Depends on vulnerable versions of tough-cookie
fix available via `npm audit fix --force`
Will install grunt-css-url-embed@1.0.4, which is a breaking change
node_modules/request
  grunt-css-url-embed  >=1.1.0
  Depends on vulnerable versions of request
  node_modules/grunt-css-url-embed

tough-cookie  <4.1.3
Severity: moderate
tough-cookie Prototype Pollution vulnerability - https://github.com/advisories/GHSA-72xf-g2v4-qvf3
fix available via `npm audit fix --force`
Will install grunt-css-url-embed@1.0.4, which is a breaking change
node_modules/tough-cookie

3 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

--- end ---
$ package-lock-lint package-lock.json
--- stdout ---
Checking package-lock.json

--- end ---
Verifying that tests still pass
$ /usr/bin/npm ci
--- stderr ---
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated kad-fs@0.0.4: This package is no longer maintained.
npm WARN deprecated kad-memstore@0.0.1: This package is no longer maintained.
--- stdout ---

> visualeditor@0.0.0 postinstall
> cd rebaser && npm ci


added 191 packages, and audited 192 packages in 4s

10 packages are looking for funding
  run `npm fund` for details

10 vulnerabilities (8 moderate, 2 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

> visualeditor@0.0.0 prepare
> grunt build

Running "clean:dist" (clean) task
>> 0 paths cleaned.

Running "concat:rebaser.build" (concat) task

Running "concat:visualEditor.rebase.scripts" (concat) task

Running "concat:visualEditor.rebase.styles" (concat) task

Running "concat:js" (concat) task

Running "concat:css-apex" (concat) task

Running "concat:css-wikimediaui" (concat) task

Running "concat:jquery.i18n" (concat) task

Running "concat:jquery.uls.data" (concat) task

Running "less:dist" (less) task
>> 3 stylesheets created.

Running "clean:less" (clean) task
>> 3 paths cleaned.

Running "cssjanus:apex" (cssjanus) task
File "dist/visualEditor-apex.rtl.css" created.

Running "cssjanus:wikimediaui" (cssjanus) task
File "dist/visualEditor-wikimediaui.rtl.css" created.

Running "cssUrlEmbed:dist" (cssUrlEmbed) task

Processing source file "dist/visualEditor-apex.css"
2 embeddable URLs found

Processing source file "dist/visualEditor-apex.rtl.css"
2 embeddable URLs found

Processing source file "dist/visualEditor-wikimediaui.css"
2 embeddable URLs found

Processing source file "dist/visualEditor-wikimediaui.rtl.css"
2 embeddable URLs found
>> "../../../ui/styles/images/resize-nw-se.svg" embedded
>> "../../../ui/styles/images/resize-nw-se.svg" embedded
>> "../../../ui/styles/images/resize-nw-se.svg" embedded
>> "../../../ui/styles/images/resize-nw-se.svg" embedded
>> "../../../ui/styles/images/resize-ne-sw.svg" embedded
File "dist/visualEditor-apex.css" created
>> "../../../ui/styles/images/resize-ne-sw.svg" embedded
File "dist/visualEditor-apex.rtl.css" created
>> "../../../ui/styles/images/resize-ne-sw.svg" embedded
File "dist/visualEditor-wikimediaui.css" created
>> "../../../ui/styles/images/resize-ne-sw.svg" embedded
File "dist/visualEditor-wikimediaui.rtl.css" created

Running "copy:i18n" (copy) task
Copied 227 files

Running "copy:lib" (copy) task
Created 29 directories, copied 1486 files

Running "buildloader:iframe" (buildloader) task
>> File ".jsduck/eg-iframe.html" written.

Running "buildloader:desktopDemoApex" (buildloader) task
>> File "demos/ve/desktop.html" written.

Running "buildloader:desktopDemoApexDist" (buildloader) task
>> File "demos/ve/desktop-dist.html" written.

Running "buildloader:desktopDemoWikimediaUI" (buildloader) task
>> File "demos/ve/desktop-wikimediaui.html" written.

Running "buildloader:desktopDemoWikimediaUIDist" (buildloader) task
>> File "demos/ve/desktop-dist-wikimediaui.html" written.

Running "buildloader:mobileDemo" (buildloader) task
>> File "demos/ve/mobile.html" written.

Running "buildloader:mobileDemoDist" (buildloader) task
>> File "demos/ve/mobile-dist.html" written.

Running "buildloader:minimalDemo" (buildloader) task
>> File "demos/ve/minimal.html" written.

Running "buildloader:minimalDemoRtl" (buildloader) task
>> File "demos/ve/minimal-rtl.html" written.

Running "buildloader:performanceTest" (buildloader) task
>> File "demos/ve/performance.html" written.

Running "buildloader:test" (buildloader) task
>> File "tests/index.html" written.

Done.

added 708 packages, and audited 709 packages in 23s

111 packages are looking for funding
  run `npm fund` for details

3 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

--- end ---
$ /usr/bin/npm test
--- stdout ---

> visualeditor@0.0.0 test
> grunt test

Running "tyops:src" (tyops) task
>> No typos found; 620 files checked for 19 typos.

Running "eslint:all" (eslint) task

/src/repo/rebaser/src/logToTestCase.js
  82:1  warning  Found readFile from package "fs" with non literal argument at index 0  security/detect-non-literal-fs-filename

✖ 1 problem (0 errors, 1 warning)


Running "stylelint:all" (stylelint) task
>> Linted 1 files without errors

Running "banana:all" (banana) task
>> 1 message directory checked.

Running "git-build" task

Running "clean:dist" (clean) task
>> 12 paths cleaned.

Running "concat:rebaser.build" (concat) task

Running "concat:visualEditor.rebase.scripts" (concat) task

Running "concat:visualEditor.rebase.styles" (concat) task

Running "concat:js" (concat) task

Running "concat:css-apex" (concat) task

Running "concat:css-wikimediaui" (concat) task

Running "concat:jquery.i18n" (concat) task

Running "concat:jquery.uls.data" (concat) task

Running "less:dist" (less) task
>> 3 stylesheets created.

Running "clean:less" (clean) task
>> 3 paths cleaned.

Running "cssjanus:apex" (cssjanus) task
File "dist/visualEditor-apex.rtl.css" created.

Running "cssjanus:wikimediaui" (cssjanus) task
File "dist/visualEditor-wikimediaui.rtl.css" created.

Running "cssUrlEmbed:dist" (cssUrlEmbed) task

Processing source file "dist/visualEditor-apex.css"
2 embeddable URLs found

Processing source file "dist/visualEditor-apex.rtl.css"
2 embeddable URLs found

Processing source file "dist/visualEditor-wikimediaui.css"
2 embeddable URLs found

Processing source file "dist/visualEditor-wikimediaui.rtl.css"
2 embeddable URLs found
>> "../../../ui/styles/images/resize-nw-se.svg" embedded
>> "../../../ui/styles/images/resize-nw-se.svg" embedded
>> "../../../ui/styles/images/resize-nw-se.svg" embedded
>> "../../../ui/styles/images/resize-nw-se.svg" embedded
>> "../../../ui/styles/images/resize-ne-sw.svg" embedded
File "dist/visualEditor-apex.css" created
>> "../../../ui/styles/images/resize-ne-sw.svg" embedded
File "dist/visualEditor-apex.rtl.css" created
>> "../../../ui/styles/images/resize-ne-sw.svg" embedded
File "dist/visualEditor-wikimediaui.css" created
>> "../../../ui/styles/images/resize-ne-sw.svg" embedded
File "dist/visualEditor-wikimediaui.rtl.css" created

Running "copy:i18n" (copy) task
Copied 227 files

Running "copy:lib" (copy) task
Created 29 directories, copied 1486 files

Running "buildloader:iframe" (buildloader) task
>> File ".jsduck/eg-iframe.html" written.

Running "buildloader:desktopDemoApex" (buildloader) task
>> File "demos/ve/desktop.html" written.

Running "buildloader:desktopDemoApexDist" (buildloader) task
>> File "demos/ve/desktop-dist.html" written.

Running "buildloader:desktopDemoWikimediaUI" (buildloader) task
>> File "demos/ve/desktop-wikimediaui.html" written.

Running "buildloader:desktopDemoWikimediaUIDist" (buildloader) task
>> File "demos/ve/desktop-dist-wikimediaui.html" written.

Running "buildloader:mobileDemo" (buildloader) task
>> File "demos/ve/mobile.html" written.

Running "buildloader:mobileDemoDist" (buildloader) task
>> File "demos/ve/mobile-dist.html" written.

Running "buildloader:minimalDemo" (buildloader) task
>> File "demos/ve/minimal.html" written.

Running "buildloader:minimalDemoRtl" (buildloader) task
>> File "demos/ve/minimal-rtl.html" written.

Running "buildloader:performanceTest" (buildloader) task
>> File "demos/ve/performance.html" written.

Running "buildloader:test" (buildloader) task
>> File "tests/index.html" written.

Running "karma:chrome" (karma) task

START:
27 03 2024 13:07:58.033:WARN [filelist]: All files matched by "/src/repo/node_modules/qunit/qunit/qunit.js" were excluded or matched by prior matchers.
27 03 2024 13:07:58.035:WARN [filelist]: All files matched by "/src/repo/src/dm/ve.dm.RebaseClient.js" were excluded or matched by prior matchers.
27 03 2024 13:07:58.035:WARN [filelist]: All files matched by "/src/repo/src/dm/ve.dm.SurfaceSynchronizer.js" were excluded or matched by prior matchers.
27 03 2024 13:07:58.035:WARN [filelist]: All files matched by "/src/repo/src/ui/widgets/ve.ui.AuthorItemWidget.js" were excluded or matched by prior matchers.
27 03 2024 13:07:58.035:WARN [filelist]: All files matched by "/src/repo/src/ui/tools/ve.ui.AuthorListPopupTool.js" were excluded or matched by prior matchers.
27 03 2024 13:07:58.035:WARN [filelist]: All files matched by "/src/repo/src/ve.FakePeer.js" were excluded or matched by prior matchers.
27 03 2024 13:07:58.035:WARN [filelist]: All files matched by "/src/repo/rebaser/src/dm/ve.dm.RebaseDocState.js" were excluded or matched by prior matchers.
27 03 2024 13:07:58.035:WARN [filelist]: All files matched by "/src/repo/rebaser/src/dm/ve.dm.RebaseServer.js" were excluded or matched by prior matchers.
27 03 2024 13:07:58.036:WARN [filelist]: All files matched by "/src/repo/rebaser/src/dm/ve.dm.DocumentStore.js" were excluded or matched by prior matchers.
27 03 2024 13:07:58.036:WARN [filelist]: All files matched by "/src/repo/rebaser/src/dm/ve.dm.ProtocolServer.js" were excluded or matched by prior matchers.
27 03 2024 13:08:07.094:INFO [karma-server]: Karma v6.4.2 server started at http://localhost:9876/
27 03 2024 13:08:07.094:INFO [launcher]: Launching browsers ChromeCustom with concurrency unlimited
27 03 2024 13:08:07.098:INFO [launcher]: Starting browser ChromeHeadless
27 03 2024 13:08:11.259:INFO [Chrome Headless 122.0.6261.128 (Linux x86_64)]: Connected on socket kq2OgvNuQEGm5YYmAAAB with id 44287712
Chrome Headless 122.0.6261.128 (Linux x86_64) LOG: 'Less has finished and no sheets were loaded.'
  ve
    ✔ compareClassLists
    ✔ isInstanceOfAny
    ✔ getDomAttributes
    ✔ setDomAttributes
    ✔ sparseSplice
    ✔ batchSplice
    ✔ batchPush
    ✔ insertIntoArray
    ✔ escapeHtml
    ✔ addHeadTag
    ✔ createDocumentFromHtml
    ✔ resolveUrl
    ✔ resolveAttributes
    ✔ fixBase
    ✔ isUriComponentValid
    ✔ safeDecodeURIComponent
    ✔ isBlockElement/isVoidElement
    ✔ graphemeSafeSubstring
    ✔ getCommonAncestor
    ✔ getCommonStartSequenceLength
    ✔ adjacentDomPosition
    ✔ deepFreeze
    ✔ deepFreeze (on cyclic structure)
    ✔ deepFreeze (recursive, aliased)
    ✔ ve.minimizeRects
  ve.DiffMatchPatch
    ✔ indexOf/lastIndexOf
  ve.EventSequencer
    ✔ EventSequencer
  ve.Scheduler
    ✔ Call with no real async
    ✔ Call with delay
    ✔ Test that throws an exception
    ✔ Test that never succeeds
  ve.Range
    ✔ Basic usage (isCollapsed, isBackwards, getLength, equals, equalsSelection, containsOffset, containsRange, touchesRange)
    ✔ Modification (flip, truncate, expand, translate)
    ✔ Factory methods & serialization (newCoveringRange, newFromJSON, toJSON)
  ve.Document
    ✔ getDocumentNode
  ve.Node
    ✔ getType
    ✔ getParent
    ✔ getRoot
  ve.BranchNode
    ✔ getChildren
    ✔ indexOf
    ✔ setDocument
  ve.sanitize
    ✔ ve.sanitizeHtml
    ✔ ve.sanitizeHtmlToDocument
    ✔ ve.setAttributeSafe
  ve.FakePeer
    ✔ interactions
  ve.dm.Annotation
    ✔ getHashObject
  ve.dm.AnnotationSet
    ✔ Basic usage
    ✔ Comparable
  ve.dm.LinkAnnotation
    ✔ getFragment
  ve.dm.NodeFactory
    ✔ getChildNodeTypes
    ✔ getParentNodeTypes
    ✔ canNodeHaveChildren
    ✔ canNodeTakeAnnotation
    ✔ canNodeHaveChildrenNotContent
    ✔ initialization
  ve.dm.Node
    ✔ canHaveChildren
    ✔ canHaveChildrenNotContent
    ✔ getLength
    ✔ getOuterLength
    ✔ setLength
    ✔ adjustLength
    ✔ getAttribute
    ✔ setRoot
    ✔ attach
    ✔ detach
    ✔ canBeMergedWith
    ✔ getClonedElement
  ve.dm.Converter
    ✔ getModelFromDom
    ✔ getModelFromDom with store argument
    ✔ getDomFromModel
    ✔ getFullData
    ✔ roundTripMetadata
  ve.dm.SourceConverter
    ✔ conversion
  ve.dm.BranchNode
    ✔ canHaveChildren
    ✔ canHaveChildrenNotContent
    ✔ setRoot
    ✔ setDocument
    ✔ push
    ✔ pop
    ✔ unshift
    ✔ shift
    ✔ splice
  ve.dm.LeafNode
    ✔ canHaveChildren
    ✔ canHaveChildrenNotContent
    ✔ getAnnotations
  ve.dm.TextNode
    ✔ getOuterLength
  ve.dm.Document
    ✔ constructor
    ✔ newBlankDocument
    ✔ getData
    ✔ getFullData
    ✔ cloneFromRange
    ✔ getRelativeOffset
    ✔ getRelativeRange
    ✔ getBranchNodeFromOffset
    ✔ hasSlugAtOffset
    ✔ getDataFromNode
    ✔ getOuterLength
    ✔ selectNodes
    ✔ rangeInsideOneLeafNode
    ✔ shallowCloneFromRange
    ✔ protection against double application of transactions
    ✔ getNearestCursorOffset
    ✔ Selection equality
    ✔ findText (plain text)
    ✔ findText (non-text content)
    ✔ fixupInsertion
    ✔ read-only and offset caching
  ve.dm.HashValueStore
    ✔ hash(es)
    ✔ value(s)
    ✔ slice
  ve.dm.InternalList
    ✔ getDocument
    ✔ queueItemHtml/getItemHtmlQueue
    ✔ convertToData
    ✔ clone
  ve.dm.LinearData
    ✔ basic usage
    ✔ slice(Object)/splice(Object)/batchSplice
  ve.dm.Transaction
    ✔ translateOffset
    ✔ translateRange
    ✔ getModifiedRange
    ✔ Metadata transactions
  ve.dm.TransactionBuilder
    ✔ newFromInsertion
    ✔ newFromRemoval
    ✔ newFromReplacement
    ✔ newFromDocumentInsertion
    ✔ newFromAttributeChanges
    ✔ newFromAnnotation
    ✔ newFromContentBranchConversion
    ✔ newFromWrap
    ✔ pushRetain
    ✔ pushReplacement
    ✔ pushReplaceElementAttribute
    ✔ isNoOp
    ✔ operations/build from operations
    ✔ newFromRemoval preserving metadata
  ve.dm.TransactionSquasher
    ✔ squash
  ve.dm.Change
    ✔ rebaseTransactions
    ✔ Change operations
    ✔ Rebase with conflicting annotations
    ✔ toJSON/deserialize/unsafeDeserialize
    ✔ Minified serialization
    ✔ Same-offset typing
  ve.dm.RebaseServer
    ✔ Rebase
  ve.dm.DocumentStore
    ✔ Create
  ve.dm.TransportServer
    ✔ Create
  ve.dm.TreeModifier
    ✔ treeDiff
    ✔ modify
    ✔ bare content
    ✔ unbalanced insertion
    ✔ applyTreeOperation: ensureNotText
    ✔ setupBlockSlugs
    ✔ checkEqualData
    ✔ TreeCursor#crossIgnoredNodes
    ✔ TreeCursor#normalizeCursor
  ve.dm.TransactionProcessor
    ✔ commit
    ✔ undo clear annotation
  ve.dm.Surface
    ✔ getDocument
    ✔ getSelection
    ✔ setSelection out of range
    ✔ contextChange events
    ✔ documentUpdate/select events
    ✔ breakpoint/undo/redo
    ✔ multi-user undo
    ✔ change rollback
    ✔ range translation
    ✔ staging
    ✔ getOffsetFromSourceOffset / getSourceOffsetFromOffset / getRangeFromSourceOffsets
    ✔ autosave
  ve.dm.SurfaceFragment
    ✔ constructor
    ✔ update
    ✔ getSelectedModels
    ✔ getAnnotations
    ✔ hasAnnotations
    ✔ adjustLinearSelection
    ✔ truncateLinearSelection
    ✔ collapseToStart/End
    ✔ expandLinearSelection (annotation)
    ✔ expandLinearSelection (closest)
    ✔ expandLinearSelection (word)
    ✔ removeContent
    ✔ delete
    ✔ insertContent/insertDocument
    ✔ changeAttributes
    ✔ wrapNodes/unwrapNodes
    ✔ rewrapNodes
    ✔ wrapAllNodes
    ✔ rewrapAllNodes
    ✔ isolateAndUnwrap
  ve.dm.SourceSurfaceFragment
    ✔ insertContent/insertDocument
  ve.dm.ModelRegistry
    ✔ register/unregister/matchElement
    ✔ isAnnotation
  ve.dm.MetaList
    ✔ constructor/getItems/getItemsInGroup/indexOf
    ✔ onNodeAttached/onNodeDetached
  ve.dm.Scalable
    ✔ construction/clone/getters/setters/toggleDefault/clearers
    ✔ getBoundedDimensions/getCurrentScale/isCurrentDimensionsValid/isTooSmall/isTooLarge
    ✔ isDefault/toggleDefault
    ✔ isDimensionsObjectValid
    ✔ getDimensionsFromValue
  ve.dm.LinearSelection
    ✔ Construction and getters (getRange(s))
    ✔ Basic methods (collapse*, isCollased, equals, isNull)
    ✔ Factory methods & serialization (newFromJSON, toJSON, getDescription)
  ve.dm.NullSelection
    ✔ Construction and getters (getDocument, getRanges)
    ✔ Basic methods (collapse*, isCollased, equals, isNull)
    ✔ Factory methods & serialization (newFromJSON, toJSON, getDescription)
  ve.dm.TableSelection
    ✔ Construction and getters (getDocument, getRanges, getOuterRanges, getTableNode)
    ✔ Basic methods (expand, collapse*, getRange(s), isCollased, isSingleCell, equals, isNull, isFullRow/Col, getRow/ColCount)
    ✔ Factory methods & serialization (newFromJSON, toJSON, getDescription)
  ve.dm.FlatLinearData
    ✔ getType/isOpenElementData/isCloseElementData
    ✔ isElementData
    ✔ containsElementData
  ve.dm.ElementLinearData
    ✔ getAnnotationsFromOffset
    ✔ getAnnotationsFromRange
    ✔ getInsertionAnnotationsFromRange
    ✔ getAnnotatedRangeFromOffset
    ✔ trimOuterSpaceFromRange
    ✔ isContentOffset
    ✔ isStructuralOffset
    ✔ getCharacterData
    ✔ isPlainText
    ✔ getText
    ✔ getSourceText
    ✔ isContentData
    ✔ getRelativeOffset
    ✔ getRelativeContentOffset
    ✔ getNearestContentOffset
    ✔ getRelativeStructuralOffset
    ✔ getNearestStructuralOffset
    ✔ getWordRange
    ✔ sanitize
    ✔ countNonInternalElements
    ✔ hasContent
    ✔ getAnnotationHashesFromOffset
    ✔ getUsedStoreValues
    ✔ compareElements and compareElementsUnannotated
  ve.ce
    ✔ getDomHash/getDomText (with ve.dm.Converter)
    ✔ getDomHash/getDomText (without ve.dm.Converter)
    ✔ getOffset
    ✔ isShortcutKey
    ✔ nextCursorOffset
    ✔ resolveTestOffset
    ✔ fakeImes
    ✔ isAfterAnnotationBoundary
  ve.ce.Document
    ✔ Converter tests
    ✔ getNodeAndOffset
    ✔ attachedRoot
  ve.ce.Surface
    ✔ handleObservedChanges (content changes)
    ✔ handleDataTransfer/handleDataTransferItems
    ✔ getClipboardHash
    ✔ onCopy
27 03 2024 13:08:17.900:WARN [web-server]: 404: /null
    ✔ beforePaste/afterPaste
    ✔ onDocumentDragStart/onDocumentDrop
    ✔ getSelectionState
    ✔ findBlockSlug
    ✔ selectFirstSelectableContentOffset/selectLastSelectableContentOffset
    ✔ getViewportRange
  ve.ce.RangeState
    ✔ Basic tests
  ve.ce.TextState
    ✔ getChangeTransaction
  ve.ce.NodeFactory
    ✔ splitNodeOnEnter/getDescription
    ✔ initialization
  ve.ce.AnnotationFactory
    ✔ canAnnotationBeActive/getDescription
    ✔ initialization
  ve.ce.Node
    ✔ getModel
    ✔ getParent
    ✔ attach
    ✔ detach
  ve.ce.BranchNode
    ✔ splitOnEnter
    ✔ canHaveChildren
    ✔ canHaveChildrenNotContent
    ✔ updateTagName
    ✔ getDomPosition
    ✔ onSplice
  ve.ce.ContentBranchNode
    ✔ getRenderedContents
  ve.ce.LeafNode
    ✔ splitOnEnter
    ✔ canHaveChildren
    ✔ canHaveChildrenNotContent
  ve.ce.Selection
    ✔ Rects
    ✔ getDirectionality
    ✔ equals
  ve.ce.LinearArrowKeyDownHandler
    ✔ special key down: linear arrow keys
  ve.ce.LinearDeleteKeyDownHandler
    ✔ special key down: linear backspace/delete
  ve.ce.LinearEnterKeyDownHandler
    ✔ special key down: linear enter
  ve.ce.LinearEscapeKeyDownHandler
    ✔ special key down: linear escape
  ve.ce.TableArrowKeyDownHandler
    ✔ special key down: table arrow keys (complex movements)
    ✔ special key down: table arrow keys (simple movements)
  ve.ce.TableDeleteKeyDownHandler
    ✔ special key down: table backspace/delete
  ve.ce.TableEnterKeyDownHandler
    ✔ special key down: table enter
  ve.ce.TableF2KeyDownHandler
    ✔ special key down: table f2
  ve.ce.ResizableNode
    ✔ updateSizeLabel
    ✔ resize events
    ✔ notResizable
  ve.ce.TextNode
    ✔ getAnnotatedHtml
  ve.ce.TableNode
    ✔ getNearestCellNode
    ✔ getFirstSectionNode
    ✔ onTableMouseDown/onTableMouseMove/onTableMouseUp/onTableDblClick
    ✔ onTableMouseDown
  ve.init.Target
    ✔ createModelFromDom/parseDocument (source mode)
  ve.init.sa.Platform
    ✔ getUserConfig
    ✔ setUserConfig
    ✔ messages
    ✔ parsedMessage
  ve.init.ConflictableStorage
    ✔ Basic methods
    ✔ Conflict handling
  ve.ui.DataTransferHandlerFactory
    ✔ getHandlerNameForItem
  ve.ui.Trigger
    ✔ constructor
  ve.ui.Sequence
    ✔ findAndExecuteSequences
  ve.ui.DiffElement
    ✔ Diffing
    ✔ compareAttributes/describeChanges
  ve.ui.PreviewElement
    ✔ Basic tests
  ve.ui.AnnotationAction
    ✔ toggle
  ve.ui.BlockquoteAction
    ✔ wrap/unwrap/toggle
  ve.ui.ContentAction
    ✔ insert/remove/select/selectAll
  ve.ui.FormatAction
    ✔ convert
  ve.ui.IndentationAction
    ✔ increase/decrease
  ve.ui.LinkAction
    ✔ autolink
  ve.ui.ListAction
    ✔ (un)wrap
  ve.ui.TableAction
    ✔ create / insert / mergeCells / delete / changeCellStyle / moveRelative
  ve.ui.WindowAction
    ✔ Basic open/close
  ve.ui.DSVFileTransferHandler
    ✔ getInsertableData
  ve.ui.UrlStringTransferHandler
    ✔ paste
  ve.ui.FindAndReplaceDialog
    ✔ find fragments
    ✔ replace all
  ve.ui.FragmentInspector
    ✔ Different selections and inputs

Finished in 14.08 secs / 13.68 secs @ 13:08:27 GMT+0000 (Coordinated Universal Time)

SUMMARY:
✔ 321 tests completed

=============================== Coverage summary ===============================
Statements   : 81.39% ( 18563/22807 )
Branches     : 73.21% ( 8052/10997 )
Functions    : 72.98% ( 2331/3194 )
Lines        : 81.22% ( 18225/22438 )
================================================================================

Running "karma:firefox" (karma) task
27 03 2024 13:08:28.062:WARN [filelist]: All files matched by "/src/repo/node_modules/qunit/qunit/qunit.js" were excluded or matched by prior matchers.
27 03 2024 13:08:28.062:WARN [filelist]: All files matched by "/src/repo/src/dm/ve.dm.RebaseClient.js" were excluded or matched by prior matchers.
27 03 2024 13:08:28.062:WARN [filelist]: All files matched by "/src/repo/src/dm/ve.dm.SurfaceSynchronizer.js" were excluded or matched by prior matchers.
27 03 2024 13:08:28.062:WARN [filelist]: All files matched by "/src/repo/src/ui/widgets/ve.ui.AuthorItemWidget.js" were excluded or matched by prior matchers.
27 03 2024 13:08:28.062:WARN [filelist]: All files matched by "/src/repo/src/ui/tools/ve.ui.AuthorListPopupTool.js" were excluded or matched by prior matchers.
27 03 2024 13:08:28.062:WARN [filelist]: All files matched by "/src/repo/src/ve.FakePeer.js" were excluded or matched by prior matchers.
27 03 2024 13:08:28.062:WARN [filelist]: All files matched by "/src/repo/rebaser/src/dm/ve.dm.RebaseDocState.js" were excluded or matched by prior matchers.
27 03 2024 13:08:28.063:WARN [filelist]: All files matched by "/src/repo/rebaser/src/dm/ve.dm.RebaseServer.js" were excluded or matched by prior matchers.
27 03 2024 13:08:28.063:WARN [filelist]: All files matched by "/src/repo/rebaser/src/dm/ve.dm.DocumentStore.js" were excluded or matched by prior matchers.
27 03 2024 13:08:28.063:WARN [filelist]: All files matched by "/src/repo/rebaser/src/dm/ve.dm.ProtocolServer.js" were excluded or matched by prior matchers.
27 03 2024 13:08:28.165:INFO [karma-server]: Karma v6.4.2 server started at http://localhost:9876/
27 03 2024 13:08:28.165:INFO [launcher]: Launching browsers FirefoxHeadless with concurrency unlimited
27 03 2024 13:08:28.169:INFO [launcher]: Starting browser FirefoxHeadless
27 03 2024 13:08:33.700:INFO [Firefox 115.0 (Linux x86_64)]: Connected on socket 650TntFy2trq5WC7AAAD with id 5285229
Firefox 115.0 (Linux x86_64) LOG: 'Less has finished and no sheets were loaded.'
................................................................................
................................................................................
................................................................................
........27 03 2024 13:08:39.780:WARN [web-server]: 404: /null
........................................................................
.
Firefox 115.0 (Linux x86_64): Executed 321 of 321 SUCCESS (16.467 secs / 16.276 secs)

Done.

--- end ---
$ package-lock-lint package-lock.json
--- stdout ---
Checking package-lock.json

--- end ---
[DNM] there are no updates
$ git add .
--- stdout ---

--- end ---
$ git commit -F /tmp/tmpbup_zwot
--- stdout ---
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

--- end ---

npm dependencies

Development dependencies

Logs

Source code is licensed under the AGPL.