[#88,refactor/state,api-change][m]: FlotGraph now uses state plus DataExplorer takes care of parsing state from Hash.
* First test for FlotGraph view (#45) * Move convenience functions for testing present of elements to test/base.js from view-grid.test.js
This commit is contained in:
11
test/base.js
11
test/base.js
@@ -14,3 +14,14 @@ var Fixture = {
|
||||
}
|
||||
};
|
||||
|
||||
function assertPresent(selector, el) {
|
||||
var found = el ? $(el).find(selector) : $(selector);
|
||||
ok(found.length > 0);
|
||||
}
|
||||
|
||||
function assertNotPresent(selector, el) {
|
||||
var found = el ? $(el).find(selector) : $(selector);
|
||||
ok(found.length > 0);
|
||||
equal(found.length, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user