Commit 835c1d92 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

label for search contain text

parent 6e99fdef
......@@ -68,7 +68,7 @@ AbstractPanel.prototype._initializeGui = function(){
this.getElement().appendChild(searchQueryDiv);
this.setControlElement(PanelControlElementType.SEARCH_DIV, searchQueryDiv);
var searchLabel = Functions.createElement({type:"div",name:"searchLabel"} );
var searchLabel = Functions.createElement({type:"div",name:"searchLabel", content:"SEARCH:"} );
searchQueryDiv.appendChild(searchLabel);
this.setControlElement(PanelControlElementType.SEARCH_LABEL, searchLabel);
......
......@@ -7,6 +7,7 @@ var Helper = require('../helper');
require("../mocha-config.js");
var AbstractDbPanel = require('../../../main/js/gui/AbstractDbPanel');
var PanelControlElementType = require('../../../main/js/gui/PanelControlElementType');
var chai = require('chai');
var assert = chai.assert;
......@@ -30,6 +31,8 @@ describe('AbstractDbPanel', function() {
customMap : map,
panelName : "search",
});
assert.ok(panel.getControlElement(PanelControlElementType.SEARCH_LABEL).innerHTML != "");
});
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment