From 157ec5feff877cd918a45985ee7368e3d9d7b5b0 Mon Sep 17 00:00:00 2001 From: Thomas Park Date: Thu, 5 Dec 2013 13:05:07 -0500 Subject: 3.0.2 -> 3.0.3 --- bower_components/bootstrap/js/tests/index.html | 52 - bower_components/bootstrap/js/tests/unit/affix.js | 25 - bower_components/bootstrap/js/tests/unit/alert.js | 62 - bower_components/bootstrap/js/tests/unit/button.js | 116 -- .../bootstrap/js/tests/unit/carousel.js | 87 -- .../bootstrap/js/tests/unit/collapse.js | 164 --- .../bootstrap/js/tests/unit/dropdown.js | 219 --- bower_components/bootstrap/js/tests/unit/modal.js | 196 --- .../bootstrap/js/tests/unit/phantom.js | 69 - .../bootstrap/js/tests/unit/popover.js | 133 -- .../bootstrap/js/tests/unit/scrollspy.js | 37 - bower_components/bootstrap/js/tests/unit/tab.js | 86 -- .../bootstrap/js/tests/unit/tooltip.js | 437 ------ .../bootstrap/js/tests/unit/transition.js | 13 - .../bootstrap/js/tests/vendor/jquery.js | 6 - .../bootstrap/js/tests/vendor/qunit.css | 232 --- .../bootstrap/js/tests/vendor/qunit.js | 1510 -------------------- 17 files changed, 3444 deletions(-) delete mode 100644 bower_components/bootstrap/js/tests/index.html delete mode 100644 bower_components/bootstrap/js/tests/unit/affix.js delete mode 100644 bower_components/bootstrap/js/tests/unit/alert.js delete mode 100644 bower_components/bootstrap/js/tests/unit/button.js delete mode 100644 bower_components/bootstrap/js/tests/unit/carousel.js delete mode 100644 bower_components/bootstrap/js/tests/unit/collapse.js delete mode 100644 bower_components/bootstrap/js/tests/unit/dropdown.js delete mode 100644 bower_components/bootstrap/js/tests/unit/modal.js delete mode 100644 bower_components/bootstrap/js/tests/unit/phantom.js delete mode 100644 bower_components/bootstrap/js/tests/unit/popover.js delete mode 100644 bower_components/bootstrap/js/tests/unit/scrollspy.js delete mode 100644 bower_components/bootstrap/js/tests/unit/tab.js delete mode 100644 bower_components/bootstrap/js/tests/unit/tooltip.js delete mode 100644 bower_components/bootstrap/js/tests/unit/transition.js delete mode 100644 bower_components/bootstrap/js/tests/vendor/jquery.js delete mode 100644 bower_components/bootstrap/js/tests/vendor/qunit.css delete mode 100644 bower_components/bootstrap/js/tests/vendor/qunit.js (limited to 'bower_components/bootstrap/js/tests') diff --git a/bower_components/bootstrap/js/tests/index.html b/bower_components/bootstrap/js/tests/index.html deleted file mode 100644 index 4e3d487d..00000000 --- a/bower_components/bootstrap/js/tests/index.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - Bootstrap Plugin Test Suite - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Bootstrap Plugin Test Suite

-

-

-
    -
    -
    - - diff --git a/bower_components/bootstrap/js/tests/unit/affix.js b/bower_components/bootstrap/js/tests/unit/affix.js deleted file mode 100644 index b74bc51e..00000000 --- a/bower_components/bootstrap/js/tests/unit/affix.js +++ /dev/null @@ -1,25 +0,0 @@ -$(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 = $('
    ').affix() - $affix.data('bs.affix').checkPosition() - ok(!$affix.hasClass('affix'), 'affix class was not added') - }) - -}) diff --git a/bower_components/bootstrap/js/tests/unit/alert.js b/bower_components/bootstrap/js/tests/unit/alert.js deleted file mode 100644 index 98b10059..00000000 --- a/bower_components/bootstrap/js/tests/unit/alert.js +++ /dev/null @@ -1,62 +0,0 @@ -$(function () { - - module("alert") - - test("should provide no conflict", function () { - var alert = $.fn.alert.noConflict() - ok(!$.fn.alert, 'alert was set back to undefined (org value)') - $.fn.alert = alert - }) - - test("should be defined on jquery object", function () { - ok($(document.body).alert, 'alert method is defined') - }) - - test("should return element", function () { - ok($(document.body).alert()[0] == document.body, 'document.body returned') - }) - - test("should fade element out on clicking .close", function () { - var alertHTML = '
    ' - + '×' - + '

    Holy guacamole! Best check yo self, you\'re not looking too good.

    ' - + '
    ' - , alert = $(alertHTML).alert() - - alert.find('.close').click() - - ok(!alert.hasClass('in'), 'remove .in class on .close click') - }) - - test("should remove element when clicking .close", function () { - $.support.transition = false - - var alertHTML = '
    ' - + '×' - + '

    Holy guacamole! Best check yo self, you\'re not looking too good.

    ' - + '
    ' - , alert = $(alertHTML).appendTo('#qunit-fixture').alert() - - ok($('#qunit-fixture').find('.alert-message').length, 'element added to dom') - - alert.find('.close').click() - - ok(!$('#qunit-fixture').find('.alert-message').length, 'element removed from dom') - }) - - test("should not fire closed when close is prevented", function () { - $.support.transition = false - stop(); - $('
    ') - .on('close.bs.alert', function (e) { - e.preventDefault(); - ok(true); - start(); - }) - .on('closed.bs.alert', function () { - ok(false); - }) - .alert('close') - }) - -}) diff --git a/bower_components/bootstrap/js/tests/unit/button.js b/bower_components/bootstrap/js/tests/unit/button.js deleted file mode 100644 index 16284e0c..00000000 --- a/bower_components/bootstrap/js/tests/unit/button.js +++ /dev/null @@ -1,116 +0,0 @@ -$(function () { - - module("button") - - test("should provide no conflict", function () { - var button = $.fn.button.noConflict() - ok(!$.fn.button, 'button was set back to undefined (org value)') - $.fn.button = button - }) - - test("should be defined on jquery object", function () { - ok($(document.body).button, 'button method is defined') - }) - - test("should return element", function () { - ok($(document.body).button()[0] == document.body, 'document.body returned') - }) - - test("should return set state to loading", function () { - var btn = $('') - equal(btn.html(), 'mdo', 'btn text equals mdo') - btn.button('loading') - equal(btn.html(), 'fat', 'btn text equals fat') - stop() - setTimeout(function () { - ok(btn.attr('disabled'), 'btn is disabled') - ok(btn.hasClass('disabled'), 'btn has disabled class') - start() - }, 0) - }) - - test("should return reset state", function () { - var btn = $('') - equal(btn.html(), 'mdo', 'btn text equals mdo') - btn.button('loading') - equal(btn.html(), 'fat', 'btn text equals fat') - stop() - setTimeout(function () { - ok(btn.attr('disabled'), 'btn is disabled') - ok(btn.hasClass('disabled'), 'btn has disabled class') - start() - stop() - btn.button('reset') - equal(btn.html(), 'mdo', 'btn text equals mdo') - setTimeout(function () { - ok(!btn.attr('disabled'), 'btn is not disabled') - ok(!btn.hasClass('disabled'), 'btn does not have disabled class') - start() - }, 0) - }, 0) - - }) - - test("should toggle active", function () { - var btn = $('') - ok(!btn.hasClass('active'), 'btn does not have active class') - btn.button('toggle') - ok(btn.hasClass('active'), 'btn has class active') - }) - - test("should toggle active when btn children are clicked", function () { - var btn = $('') - , inner = $('') - btn - .append(inner) - .appendTo($('#qunit-fixture')) - ok(!btn.hasClass('active'), 'btn does not have active class') - inner.click() - ok(btn.hasClass('active'), 'btn has class active') - }) - - test("should toggle active when btn children are clicked within btn-group", function () { - var btngroup = $('
    ') - , btn = $('') - , inner = $('') - btngroup - .append(btn.append(inner)) - .appendTo($('#qunit-fixture')) - ok(!btn.hasClass('active'), 'btn does not have active class') - inner.click() - ok(btn.hasClass('active'), 'btn has class active') - }) - - test("should check for closest matching toggle", function () { - var group = '
    ' + - '' + - '' + - '' + - '
    ' - - group = $(group) - - var btn1 = $(group.children()[0]) - var btn2 = $(group.children()[1]) - var btn3 = $(group.children()[2]) - - group.appendTo($('#qunit-fixture')) - - ok(btn1.hasClass('active'), 'btn1 has active class') - ok(btn1.find('input').prop('checked'), 'btn1 is checked') - ok(!btn2.hasClass('active'), 'btn2 does not have active class') - ok(!btn2.find('input').prop('checked'), 'btn2 is not checked') - btn2.find('input').click() - ok(!btn1.hasClass('active'), 'btn1 does not have active class') - ok(!btn1.find('input').prop('checked'), 'btn1 is checked') - ok(btn2.hasClass('active'), 'btn2 has active class') - ok(btn2.find('input').prop('checked'), 'btn2 is checked') - }) - -}) diff --git a/bower_components/bootstrap/js/tests/unit/carousel.js b/bower_components/bootstrap/js/tests/unit/carousel.js deleted file mode 100644 index badf0886..00000000 --- a/bower_components/bootstrap/js/tests/unit/carousel.js +++ /dev/null @@ -1,87 +0,0 @@ -$(function () { - - module("carousel") - - test("should provide no conflict", function () { - var carousel = $.fn.carousel.noConflict() - ok(!$.fn.carousel, 'carousel was set back to undefined (org value)') - $.fn.carousel = carousel - }) - - test("should be defined on jquery object", function () { - ok($(document.body).carousel, 'carousel method is defined') - }) - - test("should return element", function () { - ok($(document.body).carousel()[0] == document.body, 'document.body returned') - }) - - test("should not fire sliden when slide is prevented", function () { - $.support.transition = false - stop() - $('