Prevent browser console errors during testing
The `Driver._cleanup` method is removing all stylesheets between test runs, which causes "TypeError: styleElement.parentNode is null" console errors in `FontLoader.clear`. As can also be seen during various tests, some of the changes I made in PR 7972 unfortunately causes console errors. It seems that I didn't test this properly, since it *should* have been obvious to me that while tests are triggered using Node.js, the files in question are run within the *browser*. My apologies for not testing this thoroughly, and for causing unnecessary churn in the code!
This commit is contained in:
parent
cae8d97c4c
commit
e416032b38
4 changed files with 9 additions and 13 deletions
|
@ -251,7 +251,7 @@ var rasterizeAnnotationLayer = (function rasterizeAnnotationLayerClosure() {
|
|||
/**
|
||||
* @class
|
||||
*/
|
||||
var Driver = (function DriverClosure() {
|
||||
var Driver = (function DriverClosure() { // eslint-disable-line no-unused-vars
|
||||
/**
|
||||
* @constructs Driver
|
||||
* @param {DriverOptions} options
|
||||
|
@ -685,5 +685,3 @@ var Driver = (function DriverClosure() {
|
|||
|
||||
return Driver;
|
||||
})();
|
||||
|
||||
exports.Driver = Driver;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue