mirror of
https://github.com/penpot/penpot.git
synced 2025-07-28 14:17:29 +02:00
🎉 Add frontend tests for files and events that manage shapes
This commit is contained in:
parent
0cfb66ae16
commit
686814f537
5 changed files with 201 additions and 54 deletions
|
@ -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 {};
|
||||
}
|
||||
})();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue