[#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:
13
test/view-graph.test.js
Normal file
13
test/view-graph.test.js
Normal file
@@ -0,0 +1,13 @@
|
||||
module("View - FlotGraph");
|
||||
|
||||
test('basics', function () {
|
||||
var dataset = Fixture.getDataset();
|
||||
var view = new recline.View.FlotGraph({
|
||||
model: dataset
|
||||
});
|
||||
$('.fixtures').append(view.el);
|
||||
equal(view.state.get('graphType'), 'lines-and-points');
|
||||
// view will auto render ...
|
||||
assertPresent('.editor', view.el);
|
||||
view.remove();
|
||||
});
|
||||
Reference in New Issue
Block a user