Skip to content
  • This project
    • Loading...
  • Sign in

张磊 / FileStorageBeego

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • FileStorageBeego
  • forms
  • form_test.go
  • astaxie's avatar
    beego: update licence& fix #669 · fefd8ddb
    astaxie committed 2014-07-03 23:40:21 +0800
    fefd8ddb
form_test.go 329 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
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())
}