1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 22:30:54 +00:00
Beego/forms/form_test.go
2014-07-03 23:40:21 +08:00

22 lines
329 B
Go

package forms
import (
"fmt"
"testing"
"./elements"
)
func formTest(t *testing.T) {
rf := NewForm()
username := elements.NewText()
username.SetAttribute("name", "username")
username.SetAttribute("id", "username")
rf.AddElement(username)
button := elements.NewSubmit()
rf.AddElement(rf)
fmt.Println(rf.Render())
}