aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/editor_test.go
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-06-17 11:29:59 -0500
committerGitHub <noreply@github.com>2017-06-17 11:29:59 -0500
commit90f9bb12c628a167d30f6f8b4bfb80438fb675a7 (patch)
tree8fc223551e3aa7f10db924661a448b7623e3d124 /integrations/editor_test.go
parent6233e88f7f89b15d91f8047ccc4b2ad300170ec7 (diff)
downloadgitea-90f9bb12c628a167d30f6f8b4bfb80438fb675a7.tar.gz
gitea-90f9bb12c628a167d30f6f8b4bfb80438fb675a7.zip
fix golint error and rename func for suggestion. (#1997)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Diffstat (limited to 'integrations/editor_test.go')
-rw-r--r--integrations/editor_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/integrations/editor_test.go b/integrations/editor_test.go
index 10d9dc5318..24cb8f1967 100644
--- a/integrations/editor_test.go
+++ b/integrations/editor_test.go
@@ -22,7 +22,7 @@ func TestCreateFile(t *testing.T) {
resp := session.MakeRequest(t, req)
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
- doc := NewHtmlParser(t, resp.Body)
+ doc := NewHTMLParser(t, resp.Body)
lastCommit := doc.GetInputValueByName("last_commit")
assert.NotEmpty(t, lastCommit)
@@ -49,7 +49,7 @@ func TestCreateFileOnProtectedBranch(t *testing.T) {
resp := session.MakeRequest(t, req)
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
- doc := NewHtmlParser(t, resp.Body)
+ doc := NewHTMLParser(t, resp.Body)
// Change master branch to protected
req = NewRequestWithValues(t, "POST", "/user2/repo1/settings/branches?action=protected_branch", map[string]string{
@@ -70,7 +70,7 @@ func TestCreateFileOnProtectedBranch(t *testing.T) {
resp = session.MakeRequest(t, req)
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
- doc = NewHtmlParser(t, resp.Body)
+ doc = NewHTMLParser(t, resp.Body)
lastCommit := doc.GetInputValueByName("last_commit")
assert.NotEmpty(t, lastCommit)
@@ -99,7 +99,7 @@ func testEditFile(t *testing.T, session *TestSession, user, repo, branch, filePa
resp := session.MakeRequest(t, req)
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
- htmlDoc := NewHtmlParser(t, resp.Body)
+ htmlDoc := NewHTMLParser(t, resp.Body)
lastCommit := htmlDoc.GetInputValueByName("last_commit")
assert.NotEmpty(t, lastCommit)