(t *testing.T)
| 367 | } |
| 368 | |
| 369 | func TestGenElementsNullProperties(t *testing.T) { |
| 370 | t.Parallel() |
| 371 | rt := getTestRuntimeWithDoc(t, testGenElems) |
| 372 | nullTests := []struct { |
| 373 | id string |
| 374 | property string |
| 375 | }{ |
| 376 | {"audio2", "crossOrigin"}, |
| 377 | {"img3", "crossOrigin"}, |
| 378 | {"link2", "crossOrigin"}, |
| 379 | } |
| 380 | |
| 381 | for _, test := range nullTests { |
| 382 | v, err := rt.RunString(`doc.find("#` + test.id + `").get(0).` + test.property + `()`) |
| 383 | if err != nil { |
| 384 | t.Errorf("Error for property name '%s' on element id '#%s':\n%+v", test.property, test.id, err) |
| 385 | } else if v.Export() != nil { |
| 386 | t.Errorf("Expected null for property name '%s' on element id '#%s'", test.property, test.id) |
| 387 | } |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | func TestGenElementsURLProperties(t *testing.T) { |
| 392 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…