forked from brandonaaron/jquery-cssHooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathborderradiusalt.js
More file actions
executable file
·30 lines (25 loc) · 1.64 KB
/
borderradiusalt.js
File metadata and controls
executable file
·30 lines (25 loc) · 1.64 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
28
29
30
module("borderRadiusAlt");
/*
See why this doesn't work?? (Because of shorthand?)
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("borderTopLeftRadius", 2, function() {
equals( jQuery("#test").css("borderTopLeftRadius"), "5px", "returns values in the correct order" );
equals( jQuery("#test").css("borderTopLeftRadius", "3px").css("borderTopLeftRadius"), "3px", "sets the values properly" );
});
test("borderTopRightRadius", 2, function() {
equals( jQuery("#test").css("borderTopRightRadius"), "5px", "returns values in the correct order" );
equals( jQuery("#test").css("borderTopRightRadius", "3px").css("borderTopRightRadius"), "3px", "sets the values properly" );
});
test("borderBottomRightRadius", 2, function() {
equals( jQuery("#test").css("borderBottomRightRadius"), "5px", "returns values in the correct order" );
equals( jQuery("#test").css("borderBottomRightRadius", "3px").css("borderBottomRightRadius"), "3px", "sets the values properly" );
});
test("borderBottomLeftRadius", 2, function() {
equals( jQuery("#test").css("borderBottomLeftRadius"), "5px", "returns values in the correct order" );
equals( jQuery("#test").css("borderBottomLeftRadius", "3px").css("borderBottomLeftRadius"), "3px", "sets the values properly" );
});