🎉 Add frontend tests for files and events that manage shapes

This commit is contained in:
Andrés Moya 2021-01-19 15:15:17 +01:00 committed by Andrey Antukh
parent 0cfb66ae16
commit 686814f537
5 changed files with 201 additions and 54 deletions

View file

@ -29,6 +29,14 @@ goog.scope(function() {
}
})();
app.util.globals.document = (function() {
if (typeof goog.global.document !== "undefined") {
return goog.global.document;
} else {
return {};
}
})();
app.util.globals.location = (function() {
if (typeof goog.global.location !== "undefined") {
return goog.global.location;
@ -36,5 +44,13 @@ goog.scope(function() {
return {};
}
})();
app.util.globals.navigator = (function() {
if (typeof goog.global.navigator !== "undefined") {
return goog.global.navigator;
} else {
return {};
}
})();
});