[#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
This commit is contained in:
Rufus Pollock
2012-05-22 16:57:17 +01:00
parent cbe668f0e3
commit 61b1482d99
6 changed files with 7905 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
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();
});