From 191dd5796f00bd4d8b9a029be9a43716a71d4d36 Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Fri, 23 Aug 2013 10:03:44 +0100 Subject: [PATCH] [timeline][xs]: micro followup to upgrade of timeline in ccf60d00f09473d244b5efaf83e423d833c25b39. * tweak to test * update tutorial to reference right vendor libs --- docs/tutorial-views.markdown | 4 ++-- test/index.html | 2 ++ test/view.timeline.test.js | 3 +-- 3 files changed, 5 insertions(+), 4 deletions(-) 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(); });