Permalink
Browse files

additional test case for $() fragment with properties

Proves that Zepto behaves differently than
http://bugs.jquery.com/ticket/12881
  • Loading branch information...
1 parent b788839 commit a5fb36e74eba0eed2c8f4adfd56a6ac77d8e29c9 @dandv dandv committed with mislav Nov 12, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/zepto.html
View
@@ -608,6 +608,13 @@
t.assertEqual('red', el.css('color'))
},
+ testDollarNonemptyFragmentAndProperties: function(t){
+ var zepto = $('<a>Goodbye</a>', { text: "Hello", href: "http://zeptojs.com" })
+ t.assertLength(1, zepto)
+ t.assertEqual('Hello', zepto.text())
+ t.assertEqual('http://zeptojs.com', zepto.attr("href"))
+ },
+
testDollarWithTextNode: function(t){
var textNode = $(document.createTextNode('hi there'))
t.assertLength(1, textNode)

0 comments on commit a5fb36e

Please sign in to comment.