forked from brandonaaron/jquery-cssHooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathborderradius.js
More file actions
27 lines (22 loc) · 1.58 KB
/
borderradius.js
File metadata and controls
27 lines (22 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module("borderRadius");
test("borderRadius", 3, function() {
equals( jQuery("#test").css("borderRadius"), "5px 5px 5px 5px", "returns values in the correct order" );
equals( jQuery("#test").css("borderRadius", "3px").css("borderRadius"), "3px 3px 3px 3px", "sets the values properly with 1 value" );
equals( jQuery("#test").css("borderRadius", "3px 0 0 3px").css("borderRadius"), "3px 0px 0px 3px", "sets the values properly with multiple values" );
});
test("borderRadiusTopLeft", 2, function() {
equals( jQuery("#test").css("borderRadiusTopLeft"), "5px", "returns values in the correct order" );
equals( jQuery("#test").css("borderRadiusTopLeft", "3px").css("borderRadiusTopLeft"), "3px", "sets the values properly" );
});
test("borderRadiusTopRight", 2, function() {
equals( jQuery("#test").css("borderRadiusTopRight"), "5px", "returns values in the correct order" );
equals( jQuery("#test").css("borderRadiusTopRight", "3px").css("borderRadiusTopRight"), "3px", "sets the values properly" );
});
test("borderRadiusBottomRight", 2, function() {
equals( jQuery("#test").css("borderRadiusBottomRight"), "5px", "returns values in the correct order" );
equals( jQuery("#test").css("borderRadiusBottomRight", "3px").css("borderRadiusBottomRight"), "3px", "sets the values properly" );
});
test("borderRadiusBottomLeft", 2, function() {
equals( jQuery("#test").css("borderRadiusBottomLeft"), "5px", "returns values in the correct order" );
equals( jQuery("#test").css("borderRadiusBottomLeft", "3px").css("borderRadiusBottomLeft"), "3px", "sets the values properly" );
});