datahub/test/view-timeline.test.js
Rufus Pollock 61b1482d99 [#73,view/timeline][l]: functioning timeline view using VeriteCo Timeline library.
* *Much* still to do such as auto-selection of date field, checking for end date, parsing of dates, generation of summary text etc
2012-05-22 16:57:17 +01:00

17 lines
418 B
JavaScript

module("View - Timeline");
test('basics', function () {
var dataset = Fixture.getDataset();
var view = new recline.View.Timeline({
model: dataset
});
$('.fixtures').append(view.el);
view.initTimeline();
assertPresent('.vmm-timeline', view.el);
assertPresent('.timenav', view.el);
assertPresent('.timenav', view.el);
equal('2011', view.el.find('.marker.active h4').text());
view.remove();
});