(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestIsFunctionRollback(t *testing.T) { |
| 46 | ok := Doc().Find("div").IsFunction(func(i int, s *Selection) bool { |
| 47 | return s.HasClass("container-fluid") |
| 48 | }) |
| 49 | |
| 50 | if !ok { |
| 51 | t.Error("Expected some div to have a container-fluid class.") |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | func TestIsSelection(t *testing.T) { |
| 56 | sel := Doc().Find("div") |
nothing calls this directly
no test coverage detected
searching dependent graphs…