Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
1f80cb72
Commit
1f80cb72
authored
Oct 16, 2019
by
Piotr Gawron
Browse files
onvalid background overlay doesn't crash system
parent
eea632d9
Pipeline
#15140
passed with stage
in 12 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
frontend-js/src/test/js/map/CustomMap-test.js
View file @
1f80cb72
...
...
@@ -958,17 +958,6 @@ describe('CustomMap', function () {
});
describe
(
"
init
"
,
function
()
{
it
(
"
invalid background overlay
"
,
function
()
{
var
options
=
helper
.
createCustomMapOptions
();
ServerConnector
.
getSessionData
(
options
.
getProject
()).
setSelectedBackgroundOverlay
(
"
bla
"
);
var
map
=
new
CustomMap
(
options
);
return
map
.
init
().
then
(
function
()
{
assert
.
false
(
"
Error expected
"
);
},
function
()
{
map
.
destroy
();
})
});
it
(
"
non-existing background overlay
"
,
function
()
{
var
options
=
helper
.
createCustomMapOptions
();
ServerConnector
.
getSessionData
(
options
.
getProject
()).
setSelectedBackgroundOverlay
(
-
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment