| 1234567891011121314151617181920212223242526272829303132 |
- package wui_label
- import (
- "testing"
- "gitp78su.ipnodns.ru/svi/kern/v4/d0"
- )
- type tester struct {
- t *testing.T
- owner *d0.LOwner
- }
- func TestWuiLabel(t *testing.T) {
- sf := &tester{
- t: t,
- owner: d0.LetOwner(1, "test_owner"),
- }
- sf.new()
- }
- // Создаёт новую метку.
- func (sf *tester) new() {
- sf.t.Log("new")
- lbl := NewWuiLabel(sf.owner, d0.LetTxt(sf.owner, "test_lbl")).Hassert("new()")
- if txt := lbl.Text(); txt == nil {
- sf.t.Fatalf("new(): txt==nil")
- }
- if html := lbl.Html(); html.Get() == "" {
- sf.t.Fatalf("new(): html is empty")
- }
- }
|