aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-12 17:44:13 -0700
committerScott González <scott.gonzalez@gmail.com>2011-05-12 17:44:13 -0700
commit523790b111558d88b83d23e5b3f5c65a58b7dae5 (patch)
tree2c28f6e32b1e0d2bbf1eebe52b27902d27506321 /tests
parent7e2a704a07b13ae4f9731fea5409b36434bb5da4 (diff)
parent50a4186ef949ecaf7ab4977048160820587218d2 (diff)
downloadjquery-ui-523790b111558d88b83d23e5b3f5c65a58b7dae5.tar.gz
jquery-ui-523790b111558d88b83d23e5b3f5c65a58b7dae5.zip
Merge pull request #257 from dcneiner/buttonset-rtl
Fixed #6796
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/button/button_core.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/unit/button/button_core.js b/tests/unit/button/button_core.js
index 5b30aa860..692c40320 100644
--- a/tests/unit/button/button_core.js
+++ b/tests/unit/button/button_core.js
@@ -67,4 +67,18 @@ test("buttonset", function() {
ok( set.children("label:eq(2)").is(".ui-button.ui-corner-right:not(.ui-corner-all)") );
});
+test("buttonset (rtl)", function() {
+ var parent = $("#radio1").parent();
+ // Set to rtl
+ parent.attr("dir", "rtl");
+
+ var set = $("#radio1").buttonset();
+ ok( set.is(".ui-buttonset") );
+ same( set.children(".ui-button").length, 3 );
+ same( set.children("input:radio.ui-helper-hidden-accessible").length, 3 );
+ ok( set.children("label:eq(0)").is(".ui-button.ui-corner-right:not(.ui-corner-all)") );
+ ok( set.children("label:eq(1)").is(".ui-button:not(.ui-corner-all)") );
+ ok( set.children("label:eq(2)").is(".ui-button.ui-corner-left:not(.ui-corner-all)") );
+});
+
})(jQuery);