Sha256: ecd48bbf889b2832d48e030d29738f4a612edf9aff9d9e749b01d9e5c6b4cf3e

Contents?: true

Size: 791 Bytes

Versions: 39

Compression:

Stored size: 791 Bytes

Contents

$(function () {

    module("affix")

      test("should provide no conflict", function () {
        var affix = $.fn.affix.noConflict()
        ok(!$.fn.affix, 'affix was set back to undefined (org value)')
        $.fn.affix = affix
      })

      test("should be defined on jquery object", function () {
        ok($(document.body).affix, 'affix method is defined')
      })

      test("should return element", function () {
        ok($(document.body).affix()[0] == document.body, 'document.body returned')
      })

      test("should exit early if element is not visible", function () {
        var $affix = $('<div style="display: none"></div>').affix()
        $affix.data('bs.affix').checkPosition()
        ok(!$affix.hasClass('affix'), 'affix class was not added')
      })

})

Version data entries

39 entries across 39 versions & 5 rubygems

Version Path
praxis-0.16.1 lib/api_browser/app/bower_components/bootstrap-sass/js/tests/unit/affix.js
praxis-0.16.0 lib/api_browser/app/bower_components/bootstrap-sass/js/tests/unit/affix.js
praxis-0.15.0 lib/api_browser/app/bower_components/bootstrap-sass/js/tests/unit/affix.js
praxis-0.14.0 lib/api_browser/app/bower_components/bootstrap-sass/js/tests/unit/affix.js
praxis-0.13.0 lib/api_browser/app/bower_components/bootstrap-sass/js/tests/unit/affix.js
praxis-0.11.2 lib/api_browser/app/bower_components/bootstrap-sass/js/tests/unit/affix.js
praxis-0.11.1 lib/api_browser/app/bower_components/bootstrap-sass/js/tests/unit/affix.js
praxis-0.11 lib/api_browser/app/bower_components/bootstrap-sass/js/tests/unit/affix.js
praxis-0.11pre lib/api_browser/app/bower_components/bootstrap-sass/js/tests/unit/affix.js
praxis-0.10.1 lib/api_browser/app/bower_components/bootstrap-sass/js/tests/unit/affix.js
praxis-0.10.0 lib/api_browser/app/bower_components/bootstrap-sass/js/tests/unit/affix.js
praxis-0.9 lib/api_browser/app/bower_components/bootstrap-sass/js/tests/unit/affix.js
test_server-0.3.4 vendor/assets/components/bootstrap-sass/js/tests/unit/affix.js
test_server-0.3.2 vendor/assets/components/bootstrap-sass/js/tests/unit/affix.js
test_server-0.3.1 vendor/assets/components/bootstrap-sass/js/tests/unit/affix.js
test_server-0.2.4 vendor/assets/components/bootstrap-sass/js/tests/unit/affix.js
test_server-0.2.3 vendor/assets/components/bootstrap-sass/js/tests/unit/affix.js
test_server-0.2.2 vendor/assets/components/bootstrap-sass/js/tests/unit/affix.js
test_server-0.2.1 vendor/assets/components/bootstrap-sass/js/tests/unit/affix.js
test_server-0.2.0 vendor/assets/components/bootstrap-sass/js/tests/unit/affix.js