Skip to content
Snippets Groups Projects
Commit b433d5bc authored by Piotr Gawron's avatar Piotr Gawron
Browse files

help tip for submaps

parent 220cfd36
No related branches found
No related tags found
1 merge request!32Resolve "Help tips"
......@@ -12,6 +12,8 @@ var Functions = require('../../Functions');
function SubmapPanel(params) {
params.panelName = "submap";
params.helpTip = "The Submaps tab summarizes all the submap networks uploaded together and linked to the main network of <b>'"
+ params.parent.getMap().getProject().getName() + "'</b> project.";
Panel.call(this, params);
var self = this;
......
......@@ -24,11 +24,16 @@ describe('SubmapPanel', function() {
new SubmapPanel({
element : div,
customMap : map
customMap : map,
parent : {
getMap : function() {
return map;
}
}
});
assert.equal(logger.getWarnings().length, 0);
var buttons = div.getElementsByTagName("button");
assert.equal(buttons.length, 0);
assert.equal(buttons.length, 1);
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment