Commit 03d85761 by Adam

Merge pull request #3383 from edx/adam/ui-disabled-fix

change .ui-disabled to .is-disabled
parents 79fea620 6d356a45
describe("CSS3 workarounds", function() {
describe("pointer-events", function() {
beforeEach(function() {
var html = "<a href='#' class='ui-disabled'>What wondrous life in this I lead</a>";
var html = "<a href='#' class='is-disabled'>What wondrous life in this I lead</a>";
setFixtures(html);
});
......@@ -14,10 +14,10 @@ describe("CSS3 workarounds", function() {
mockBodyStyle["pointerEvents"] = "";
};
pointerEventsNone(".ui-disabled", mockBodyStyle);
spyOnEvent(".ui-disabled", "click");
$(".ui-disabled").click();
expect("click").not.toHaveBeenPreventedOn(".ui-disabled");
pointerEventsNone(".is-disabled", mockBodyStyle);
spyOnEvent(".is-disabled", "click");
$(".is-disabled").click();
expect("click").not.toHaveBeenPreventedOn(".is-disabled");
});
it("should prevent default when pointerEvents is not Supported", function() {
......@@ -31,10 +31,10 @@ describe("CSS3 workarounds", function() {
};
};
pointerEventsNone(".ui-disabled", mockBodyStyle);
spyOnEvent(".ui-disabled", "click");
$(".ui-disabled").click();
expect("click").toHaveBeenPreventedOn(".ui-disabled");
pointerEventsNone(".is-disabled", mockBodyStyle);
spyOnEvent(".is-disabled", "click");
$(".is-disabled").click();
expect("click").toHaveBeenPreventedOn(".is-disabled");
});
});
});
......@@ -13,5 +13,5 @@ var pointerEventsNone = function (selector, supportedStyles) {
};
$(function () {
pointerEventsNone('.ui-disabled', document.body.styles);
pointerEventsNone('.is-disabled', document.body.styles);
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment