1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-23 02:50:54 +00:00
Beego/forms/form_test.go

22 lines
329 B
Go
Raw Normal View History

2014-07-03 15:40:21 +00:00
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())
}