bootstrap-source/bootstrap-3.0.3/js/tests/unit/scrollspy.js
changeset 115 a9d04f5f5650
parent 114 6093dda9fe38
child 116 00287f05dc6a
     1.1 --- a/bootstrap-source/bootstrap-3.0.3/js/tests/unit/scrollspy.js	Sat Jan 18 12:34:36 2014 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,37 +0,0 @@
     1.4 -$(function () {
     1.5 -
     1.6 -    module("scrollspy")
     1.7 -
     1.8 -      test("should provide no conflict", function () {
     1.9 -        var scrollspy = $.fn.scrollspy.noConflict()
    1.10 -        ok(!$.fn.scrollspy, 'scrollspy was set back to undefined (org value)')
    1.11 -        $.fn.scrollspy = scrollspy
    1.12 -      })
    1.13 -
    1.14 -      test("should be defined on jquery object", function () {
    1.15 -        ok($(document.body).scrollspy, 'scrollspy method is defined')
    1.16 -      })
    1.17 -
    1.18 -      test("should return element", function () {
    1.19 -        ok($(document.body).scrollspy()[0] == document.body, 'document.body returned')
    1.20 -      })
    1.21 -
    1.22 -      test("should switch active class on scroll", function () {
    1.23 -        var sectionHTML = '<div id="masthead"></div>'
    1.24 -          , $section = $(sectionHTML).append('#qunit-fixture')
    1.25 -          , topbarHTML ='<div class="topbar">'
    1.26 -          + '<div class="topbar-inner">'
    1.27 -          + '<div class="container">'
    1.28 -          + '<h3><a href="#">Bootstrap</a></h3>'
    1.29 -          + '<ul class="nav">'
    1.30 -          + '<li><a href="#masthead">Overview</a></li>'
    1.31 -          + '</ul>'
    1.32 -          + '</div>'
    1.33 -          + '</div>'
    1.34 -          + '</div>'
    1.35 -          , $topbar = $(topbarHTML).scrollspy()
    1.36 -
    1.37 -        ok($topbar.find('.active', true))
    1.38 -      })
    1.39 -
    1.40 -})
Impressum Datenschutzerklärung