@@ -110,7 +110,7 @@ func TestParseTopCodeBlock(t *testing.T) {
110110 code := "start func() {\n }\n \n func2() {\n } // comment"
111111 term := "adb shell am start -a VIEW \\ \n -d \" http://host\" app"
112112 content := types .NewListNode ()
113- var lang string ;
113+ var lang string
114114 content .Append (types .NewCodeNode (code , false , lang ))
115115 content .Append (types .NewCodeNode (term , true , lang ))
116116
@@ -127,9 +127,9 @@ func TestParseTopCodeBlock(t *testing.T) {
127127 cur : doc .FirstChild ,
128128 }
129129 parseTop (ds )
130-
131- html1 , _ := render .HTML ("" , ds .step .Content )
132- html2 , _ := render .HTML ("" , content )
130+ var ctx render. Context
131+ html1 , _ := render .HTML (ctx , ds .step .Content )
132+ html2 , _ := render .HTML (ctx , content )
133133 s1 := strings .TrimSpace (string (html1 ))
134134 s2 := strings .TrimSpace (string (html2 ))
135135 if s1 != s2 {
@@ -492,7 +492,7 @@ func TestParseDoc(t *testing.T) {
492492 "http://host/file.java" , types .NewTextNode ("a file" )))
493493 content .Append (h )
494494
495- var lang string ;
495+ var lang string
496496 code := "start func() {\n }\n \n func2() {\n } // comment"
497497 cn := types .NewCodeNode (code , false , lang )
498498 cn .MutateBlock (1 )
@@ -523,8 +523,9 @@ func TestParseDoc(t *testing.T) {
523523 })
524524 content .Append (sv )
525525
526- html1 , _ := render .HTML ("" , step .Content )
527- html2 , _ := render .HTML ("" , content )
526+ var ctx render.Context
527+ html1 , _ := render .HTML (ctx , step .Content )
528+ html2 , _ := render .HTML (ctx , content )
528529 if html1 != html2 {
529530 t .Errorf ("step.Content:\n \n %s\n want:\n \n %s" , html1 , html2 )
530531 }
@@ -578,8 +579,9 @@ func TestParseFragment(t *testing.T) {
578579 para .MutateBlock (true )
579580 want = append (want , para )
580581
581- html1 , _ := render .HTML ("" , nodes ... )
582- html2 , _ := render .HTML ("" , want ... )
582+ var ctx render.Context
583+ html1 , _ := render .HTML (ctx , nodes ... )
584+ html2 , _ := render .HTML (ctx , want ... )
583585 if html1 != html2 {
584586 t .Errorf ("nodes:\n \n %s\n want:\n \n %s" , html1 , html2 )
585587 }
0 commit comments