Icon test case fixes
put a border around the "16px icon in 48px icon widget" test, to verify that the icon is being centered correctly add spacing and fix alignment for general prettiness https://bugzilla.gnome.org/show_bug.cgi?id=633865
This commit is contained in:
parent
dc1e23501c
commit
a2f4e196a1
@ -20,9 +20,10 @@ function addTest(label, icon_props) {
|
||||
if (b.get_children().length > 0)
|
||||
b.add (new St.BoxLayout({ style: 'background: #cccccc; border: 10px transparent white; height: 1px; ' }));
|
||||
|
||||
let hb = new St.BoxLayout({ vertical: false });
|
||||
let hb = new St.BoxLayout({ vertical: false,
|
||||
style: 'spacing: 10px;' });
|
||||
|
||||
hb.add(new St.Label({ text: label }));
|
||||
hb.add(new St.Label({ text: label }), { y_fill: false });
|
||||
hb.add(new St.Icon(icon_props));
|
||||
|
||||
b.add(hb);
|
||||
@ -50,7 +51,7 @@ addTest("Size set by style",
|
||||
addTest("16px icon in 48px icon widget",
|
||||
{ icon_name: 'battery-full',
|
||||
icon_type: St.IconType.SYMBOLIC,
|
||||
style: 'icon-size: 16px; width: 48px; height: 48px;' });
|
||||
style: 'icon-size: 16px; width: 48px; height: 48px; border: 1px solid black;' });
|
||||
|
||||
function iconRow(icons, box_style) {
|
||||
let hb = new St.BoxLayout({ vertical: false, style: box_style });
|
||||
|
Loading…
Reference in New Issue
Block a user