From 79c7a225b39f754e2cf7cf23b8d52c37b6332c55 Mon Sep 17 00:00:00 2001 From: Matthew Leon Grinshpun Date: Sat, 15 Oct 2011 14:49:10 -0400 Subject: [PATCH 1/5] failing button ui shadow tests --- tests/unit/buttonMarkup/buttonMarkup_core.js | 9 +++++++++ tests/unit/buttonMarkup/index.html | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/tests/unit/buttonMarkup/buttonMarkup_core.js b/tests/unit/buttonMarkup/buttonMarkup_core.js index 88f36565..8e78e4d7 100644 --- a/tests/unit/buttonMarkup/buttonMarkup_core.js +++ b/tests/unit/buttonMarkup/buttonMarkup_core.js @@ -15,4 +15,13 @@ same( group.find("a > span.ui-corner-right").length, 1, "only 1 right cornered button"); same( group.find("a > span:not(.ui-corner-left):not(.ui-corner-right)").length, linkCount - 2, "only 2 buttons are cornered"); }); + + test( "control group buttons should respect theme-related data attributes", function(){ + var group = $("#control-group-content"); + + ok(!group.find('[data-shadow=false]').hasClass("ui-shadow"), + "buttons with data-shadow=false should not have the ui-shadow class"); + ok(!group.find('[data-corners=false]').hasClass("ui-corners"), + "buttons with data-corners=false should not have the ui-corner class"); + }); })(jQuery); diff --git a/tests/unit/buttonMarkup/index.html b/tests/unit/buttonMarkup/index.html index e3108a1e..0e987ee2 100644 --- a/tests/unit/buttonMarkup/index.html +++ b/tests/unit/buttonMarkup/index.html @@ -24,6 +24,11 @@
+