@@ -110,7 +110,7 @@ func TestParseTopCodeBlock(t *testing.T) {
110
110
code := "start func() {\n }\n \n func2() {\n } // comment"
111
111
term := "adb shell am start -a VIEW \\ \n -d \" http://host\" app"
112
112
content := types .NewListNode ()
113
- var lang string ;
113
+ var lang string
114
114
content .Append (types .NewCodeNode (code , false , lang ))
115
115
content .Append (types .NewCodeNode (term , true , lang ))
116
116
@@ -127,9 +127,9 @@ func TestParseTopCodeBlock(t *testing.T) {
127
127
cur : doc .FirstChild ,
128
128
}
129
129
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 )
133
133
s1 := strings .TrimSpace (string (html1 ))
134
134
s2 := strings .TrimSpace (string (html2 ))
135
135
if s1 != s2 {
@@ -492,7 +492,7 @@ func TestParseDoc(t *testing.T) {
492
492
"http://host/file.java" , types .NewTextNode ("a file" )))
493
493
content .Append (h )
494
494
495
- var lang string ;
495
+ var lang string
496
496
code := "start func() {\n }\n \n func2() {\n } // comment"
497
497
cn := types .NewCodeNode (code , false , lang )
498
498
cn .MutateBlock (1 )
@@ -523,8 +523,9 @@ func TestParseDoc(t *testing.T) {
523
523
})
524
524
content .Append (sv )
525
525
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 )
528
529
if html1 != html2 {
529
530
t .Errorf ("step.Content:\n \n %s\n want:\n \n %s" , html1 , html2 )
530
531
}
@@ -578,8 +579,9 @@ func TestParseFragment(t *testing.T) {
578
579
para .MutateBlock (true )
579
580
want = append (want , para )
580
581
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 ... )
583
585
if html1 != html2 {
584
586
t .Errorf ("nodes:\n \n %s\n want:\n \n %s" , html1 , html2 )
585
587
}
0 commit comments