diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-05-12 17:44:13 -0700 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-05-12 17:44:13 -0700 |
commit | 523790b111558d88b83d23e5b3f5c65a58b7dae5 (patch) | |
tree | 2c28f6e32b1e0d2bbf1eebe52b27902d27506321 /tests | |
parent | 7e2a704a07b13ae4f9731fea5409b36434bb5da4 (diff) | |
parent | 50a4186ef949ecaf7ab4977048160820587218d2 (diff) | |
download | jquery-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.js | 14 |
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); |