mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-30 18:34:40 +00:00
01e3ddcda5
Follow up to Iefe98c1f0422dbf034e385b1a41a859d030a2cf4 where we switched from the jquery event delegation pattern to native methods. One thing that we overlooked was that we also need to consider the case where the selector matches the parent of an element, for example a span nested inside an eligible link. I've rethought this logic, to first find the closest eligible element to normalize the element passed to model methods before running matchesSelector. Bug: T325007 Change-Id: I4133751dc900a51829173e9c0d965cbb18e6a33e
32 lines
1 KiB
JSON
32 lines
1 KiB
JSON
{
|
|
"//": "todo: enable caching. There are too many other issues to verify that",
|
|
"//": "caching works correctly.",
|
|
"cache": false,
|
|
|
|
"//": "todo: check coverage on all files not just those included in tests.",
|
|
"//": "Enable when",
|
|
"//": "https://github.com/istanbuljs/nyc/issues/537#issuecomment-390814662",
|
|
"//": "is fixed.",
|
|
"all": false,
|
|
|
|
"//": "Ignore files in vendor/, resources/, and elsewhere.",
|
|
"include": [ "src/**/*.js" ],
|
|
|
|
"//": "Set the coverage percentage by category thresholds.",
|
|
"statements": 83,
|
|
"branches": 70,
|
|
"functions": 82,
|
|
"lines": 90,
|
|
|
|
"//": "Fail if the coverage is below threshold.",
|
|
"check-coverage": true,
|
|
|
|
"//": "Work around source maps being included ",
|
|
"//": "https://github.com/istanbuljs/nyc/issues/847:",
|
|
"//": " Error: ENAMETOOLONG: name too long, open '.../vagrant/mediawiki/extensions/Popups/src/data:application/json;...'",
|
|
"//": "Unfortunately, the reported line numbers appear to be",
|
|
"//": "nondeterministic across runs when all is enabled and incorrect when",
|
|
"//": "disabled.",
|
|
"sourceMap": false
|
|
}
|