diff --git a/docs/tutorial-views.markdown b/docs/tutorial-views.markdown index 0a4a40be..3aab9627 100644 --- a/docs/tutorial-views.markdown +++ b/docs/tutorial-views.markdown @@ -248,11 +248,11 @@ First, add the additional dependencies for the timeline view. The timeline is bu {% highlight html %} - + - + {% endhighlight %} Now, create a new div for the map (must have an explicit height for the timeline to render): diff --git a/test/index.html b/test/index.html index 905a07ed..34f9b026 100644 --- a/test/index.html +++ b/test/index.html @@ -5,6 +5,8 @@ Qunit Tests + + diff --git a/test/view.timeline.test.js b/test/view.timeline.test.js index d76d52e8..b57b8757 100644 --- a/test/view.timeline.test.js +++ b/test/view.timeline.test.js @@ -43,11 +43,10 @@ test('render etc', function () { }); $('.fixtures').append(view.el); view.render(); - view._initTimeline(); assertPresent('.vco-timeline', view.el); assertPresent('.timenav', view.el); assertPresent('.timenav', view.el); - equal(view.$el.find('.marker.active h3').text(), 'firstfirst'); + equal(view.$el.find('.marker.active h3').text(), 'first'); view.remove(); });