git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix setting only one property at a time in .offset({})
[jquery.git]
/
test
/
unit
/
attributes.js
diff --git
a/test/unit/attributes.js
b/test/unit/attributes.js
index
c5700ad
..
d7abbad
100644
(file)
--- a/
test/unit/attributes.js
+++ b/
test/unit/attributes.js
@@
-438,7
+438,7
@@
test("val(Function) with incoming value", function() {
});
var testAddClass = function(valueObj) {
});
var testAddClass = function(valueObj) {
- expect(4);
+ expect(5);
var div = jQuery("div");
div.addClass( valueObj("test") );
var pass = true;
var div = jQuery("div");
div.addClass( valueObj("test") );
var pass = true;
@@
-460,6
+460,10
@@
var testAddClass = function(valueObj) {
div.attr("class", " foo");
div.addClass( valueObj("test") );
equals( div.attr("class"), "foo test", "Make sure there's no extra whitespace." );
div.attr("class", " foo");
div.addClass( valueObj("test") );
equals( div.attr("class"), "foo test", "Make sure there's no extra whitespace." );
+
+ div.attr("class", "foo");
+ div.addClass( valueObj("bar baz") );
+ equals( div.attr("class"), "foo bar baz", "Make sure there isn't too much trimming." );
};
test("addClass(String)", function() {
};
test("addClass(String)", function() {