Skip to content

Commit

Permalink
Correct markup test for change in semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jun 14, 2024
1 parent 1039bfd commit 79bca53
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/markup_renderer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ func Test_snapshot(t *testing.T) {
content: fynecanvas.NewImageFromResource(theme.VolumeDownIcon()),
want: "<canvas size=\"100x100\">\n" +
"\t<content>\n" +
"\t\t<image rsc=\"volumeDownIcon\" size=\"100x100\"/>\n" +
"\t\t<image rsc=\"volumeDownIcon\" size=\"100x100\" themed=\"foreground\"/>\n" +
"\t</content>\n" +
"</canvas>\n",
},
"image themed resource": {
content: fynecanvas.NewImageFromResource(theme.NewThemedResource(fyne.NewStaticResource("resource name", []byte{}))),
want: "<canvas size=\"100x100\">\n" +
"\t<content>\n" +
"\t\t<image rsc=\"resource name\" size=\"100x100\" themed=\"default\"/>\n" +
"\t\t<image rsc=\"resource name\" size=\"100x100\" themed=\"foreground\"/>\n" +
"\t</content>\n" +
"</canvas>\n",
},
Expand Down Expand Up @@ -147,7 +147,7 @@ func Test_snapshot(t *testing.T) {
}(),
want: "<canvas size=\"100x100\">\n" +
"\t<content>\n" +
"\t\t<image rsc=\"zoomOutIcon\" size=\"100x100\" translucency=\"1.3\"/>\n" +
"\t\t<image rsc=\"zoomOutIcon\" size=\"100x100\" themed=\"foreground\" translucency=\"1.3\"/>\n" +
"\t</content>\n" +
"</canvas>\n",
},
Expand All @@ -159,7 +159,7 @@ func Test_snapshot(t *testing.T) {
}(),
want: "<canvas size=\"100x100\">\n" +
"\t<content>\n" +
"\t\t<image fillMode=\"contain\" rsc=\"zoomOutIcon\" size=\"100x100\"/>\n" +
"\t\t<image fillMode=\"contain\" rsc=\"zoomOutIcon\" size=\"100x100\" themed=\"foreground\"/>\n" +
"\t</content>\n" +
"</canvas>\n",
},
Expand All @@ -171,7 +171,7 @@ func Test_snapshot(t *testing.T) {
}(),
want: "<canvas size=\"100x100\">\n" +
"\t<content>\n" +
"\t\t<image fillMode=\"original\" rsc=\"zoomInIcon\" size=\"100x100\"/>\n" +
"\t\t<image fillMode=\"original\" rsc=\"zoomInIcon\" size=\"100x100\" themed=\"foreground\"/>\n" +
"\t</content>\n" +
"</canvas>\n",
},
Expand All @@ -183,7 +183,7 @@ func Test_snapshot(t *testing.T) {
}(),
want: "<canvas size=\"100x100\">\n" +
"\t<content>\n" +
"\t\t<image rsc=\"viewRestoreIcon\" scaleMode=\"pixels\" size=\"100x100\"/>\n" +
"\t\t<image rsc=\"viewRestoreIcon\" scaleMode=\"pixels\" size=\"100x100\" themed=\"foreground\"/>\n" +
"\t</content>\n" +
"</canvas>\n",
},
Expand All @@ -192,7 +192,7 @@ func Test_snapshot(t *testing.T) {
size: fyne.NewSize(theme.IconInlineSize(), theme.IconInlineSize()),
want: "<canvas size=\"100x100\">\n" +
"\t<content>\n" +
"\t\t<image rsc=\"visibilityIcon\" size=\"iconInlineSize\"/>\n" +
"\t\t<image rsc=\"visibilityIcon\" size=\"iconInlineSize\" themed=\"foreground\"/>\n" +
"\t</content>\n" +
"</canvas>\n",
},
Expand Down

0 comments on commit 79bca53

Please sign in to comment.