[gnome-shell] Icon test case fixes



commit a2f4e196a19263708d055fd4036028c91f1cb034
Author: Dan Winship <danw gnome org>
Date:   Fri Nov 5 10:04:10 2010 -0400

    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

 tests/interactive/icons.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/tests/interactive/icons.js b/tests/interactive/icons.js
index 829516d..5ccd9ab 100644
--- a/tests/interactive/icons.js
+++ b/tests/interactive/icons.js
@@ -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 });



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]