doc fixes

This commit is contained in:
Martin Angers
2012-08-31 10:47:28 -04:00
parent f1e54e5311
commit a139b5d77f
5 changed files with 103 additions and 41 deletions
+2 -2
View File
@@ -94,9 +94,9 @@ func TestNotSelection(t *testing.T) {
}
}
func TestUnion(t *testing.T) {
func TestIntersection(t *testing.T) {
sel := Doc().Find(".pvk-gutter")
sel2 := Doc().Find("div").Union(sel)
sel2 := Doc().Find("div").Intersection(sel)
if len(sel2.Nodes) != 6 {
t.Errorf("Expected 6 nodes, found %v.", len(sel2.Nodes))
}