(t *testing.T)
| 24 | } |
| 25 | |
| 26 | func TestNoInlineContainer(t *testing.T) { |
| 27 | b := core.NewBody() |
| 28 | assert.NoError(t, ReadHTMLString(NewContext(), b, `<h1>Test</h1>`)) |
| 29 | if tag := b.Child(0).AsTree().Property("tag"); tag != "body" { |
| 30 | t.Errorf("expected first child to be body but got %v", tag) |
| 31 | } |
| 32 | if strings.Contains(b.Child(0).AsTree().Child(0).AsTree().Name, "inline") { |
| 33 | t.Errorf("expected no inline container for h1 but got %v", b.Child(0)) |
| 34 | } |
| 35 | } |
nothing calls this directly
no test coverage detected