From 140ef2320bbb96ad90b73a884d83198706affaf9 Mon Sep 17 00:00:00 2001 From: fat Date: Thu, 16 May 2013 20:19:51 -0700 Subject: change namespace back to dot notation and someother js shizzle --- js/tests/unit/affix.js | 2 +- js/tests/unit/alert.js | 6 +++--- js/tests/unit/button.js | 2 +- js/tests/unit/carousel.js | 14 +++++++------- js/tests/unit/collapse.js | 12 ++++++------ js/tests/unit/dropdown.js | 7 ++++--- js/tests/unit/modal.js | 26 +++++++++++++------------- js/tests/unit/popover.js | 4 ++-- js/tests/unit/tab.js | 6 +++--- js/tests/unit/tooltip.js | 26 +++++++++++++------------- 10 files changed, 53 insertions(+), 52 deletions(-) (limited to 'js/tests/unit') diff --git a/js/tests/unit/affix.js b/js/tests/unit/affix.js index 9829b05ad..b74bc51e4 100644 --- a/js/tests/unit/affix.js +++ b/js/tests/unit/affix.js @@ -18,7 +18,7 @@ $(function () { test("should exit early if element is not visible", function () { var $affix = $('
').affix() - $affix.data('bs-affix').checkPosition() + $affix.data('bs.affix').checkPosition() ok(!$affix.hasClass('affix'), 'affix class was not added') }) diff --git a/js/tests/unit/alert.js b/js/tests/unit/alert.js index 3054767f6..98b10059e 100644 --- a/js/tests/unit/alert.js +++ b/js/tests/unit/alert.js @@ -1,6 +1,6 @@ $(function () { - module("alerts") + module("alert") test("should provide no conflict", function () { var alert = $.fn.alert.noConflict() @@ -48,12 +48,12 @@ $(function () { $.support.transition = false stop(); $('
') - .bind('bs:alert:close', function (e) { + .on('close.bs.alert', function (e) { e.preventDefault(); ok(true); start(); }) - .bind('bs:alert:closed', function () { + .on('closed.bs.alert', function () { ok(false); }) .alert('close') diff --git a/js/tests/unit/button.js b/js/tests/unit/button.js index aaf480c32..943d36d1b 100644 --- a/js/tests/unit/button.js +++ b/js/tests/unit/button.js @@ -1,6 +1,6 @@ $(function () { - module("buttons") + module("button") test("should provide no conflict", function () { var button = $.fn.button.noConflict() diff --git a/js/tests/unit/carousel.js b/js/tests/unit/carousel.js index 4d0bd6e81..f4acda02a 100644 --- a/js/tests/unit/carousel.js +++ b/js/tests/unit/carousel.js @@ -20,12 +20,12 @@ $(function () { $.support.transition = false stop() $('