- Fix: Avoid errors occurring in Chrome now for supportsGoodTextCharPos

- Linting: Avoid Jamilih file in doc linting
- Testing: Add testcafe (ESLint plugin/rules, accessibility test
  (failing), ui test beginnings (passing))
- Docs: Add "Testing" prefix to contributing file
- npm: Bump to 3.0.0-rc.3
This commit is contained in:
Brett Zamir
2018-09-30 12:05:50 +08:00
parent 1a214ae444
commit 71b2b33e41
19 changed files with 2474 additions and 35 deletions

15
dist/index-es.js vendored
View File

@@ -2666,7 +2666,7 @@ var supportsPathInsertItemBefore_ = function () {
} catch (err) {}
return false;
}(); // text character positioning (for IE9)
}(); // text character positioning (for IE9 and now Chrome)
var supportsGoodTextCharPos_ = function () {
@@ -2678,9 +2678,16 @@ var supportsGoodTextCharPos_ = function () {
var text = document.createElementNS(NS.SVG, 'text');
text.textContent = 'a';
svgcontent.append(text);
var pos = text.getStartPositionOfChar(0).x;
svgroot.remove();
return pos === 0;
try {
// Chrome now fails here
var pos = text.getStartPositionOfChar(0).x;
return pos === 0;
} catch (err) {
return false;
} finally {
svgroot.remove();
}
}();
var supportsPathBBox_ = function () {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

15
dist/index-umd.js vendored
View File

@@ -2672,7 +2672,7 @@
} catch (err) {}
return false;
}(); // text character positioning (for IE9)
}(); // text character positioning (for IE9 and now Chrome)
var supportsGoodTextCharPos_ = function () {
@@ -2684,9 +2684,16 @@
var text = document.createElementNS(NS.SVG, 'text');
text.textContent = 'a';
svgcontent.append(text);
var pos = text.getStartPositionOfChar(0).x;
svgroot.remove();
return pos === 0;
try {
// Chrome now fails here
var pos = text.getStartPositionOfChar(0).x;
return pos === 0;
} catch (err) {
return false;
} finally {
svgroot.remove();
}
}();
var supportsPathBBox_ = function () {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -2474,7 +2474,7 @@
} catch (err) {}
return false;
}(); // text character positioning (for IE9)
}(); // text character positioning (for IE9 and now Chrome)
var supportsGoodTextCharPos_ = function () {
@@ -2486,9 +2486,16 @@
var text = document.createElementNS(NS.SVG, 'text');
text.textContent = 'a';
svgcontent.append(text);
var pos = text.getStartPositionOfChar(0).x;
svgroot.remove();
return pos === 0;
try {
// Chrome now fails here
var pos = text.getStartPositionOfChar(0).x;
return pos === 0;
} catch (err) {
return false;
} finally {
svgroot.remove();
}
}();
var supportsPathBBox_ = function () {