Skip to content

Commit 40eec8c

Browse files
davidlesieurjespirit
authored andcommitted
Update test specs for new class names.
1 parent 12d5216 commit 40eec8c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/specs/KeyboardSupportSpec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ describe("Keyboard Support Tests", function() {
5454
handle1 = $("#testSlider").find(".slider-handle:first");
5555

5656
// Check for no tooltip before focus
57-
var tooltipIsShown = $("#testSlider").find("div.tooltip").hasClass("in");
57+
var tooltipIsShown = $("#testSlider").find("div.tooltip").hasClass("show");
5858
expect(tooltipIsShown).toBeFalsy();
5959

6060
handle1.focus();
6161

6262
// Tooltip should be present after focus
63-
tooltipIsShown = $("#testSlider").find("div.tooltip").hasClass("in");
63+
tooltipIsShown = $("#testSlider").find("div.tooltip").hasClass("show");
6464
expect(tooltipIsShown).toBeTruthy();
6565
});
6666

@@ -91,13 +91,13 @@ describe("Keyboard Support Tests", function() {
9191
var $tooltip = $("#testSlider").children("div.tooltip");
9292

9393
// Check for shown tooltip before focus
94-
var tooltipIsShown = $tooltip.hasClass("in");
94+
var tooltipIsShown = $tooltip.hasClass("show");
9595
expect(tooltipIsShown).toBeTruthy();
9696

9797
handle1.focus();
9898

9999
// Tooltip should remain present after focus
100-
tooltipIsShown = $tooltip.hasClass("in");
100+
tooltipIsShown = $tooltip.hasClass("show");
101101
expect(tooltipIsShown).toBeTruthy();
102102
});
103103
});

test/specs/TooltipSplitOptionSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ describe("'tooltip_split' Option tests", function() {
5757
});
5858

5959
it("should be aligned above the handle on init if set to 'top'", function() {
60-
expect($tooltipMin.hasClass("top")).toBeTruthy();
61-
expect($tooltipMax.hasClass("top")).toBeTruthy();
60+
expect($tooltipMin.hasClass("bs-tooltip-top")).toBeTruthy();
61+
expect($tooltipMax.hasClass("bs-tooltip-top")).toBeTruthy();
6262
});
6363
});
6464

0 commit comments

Comments
 (0)