Ejemplo n.º 1
0
 def testColors(self):
     self.foo.view.button.clicked()
     refresh_gui()
     win = self.foo.bar.win
     win.realize()
     color = get_background(win)
     self.assertEqual(color, "#001100")
     label = self.foo.bar.label
     label.realize()
     color = get_foreground(label)
     self.assertEqual(color, "#CC99FF")
Ejemplo n.º 2
0
 def testColors(self):
     self.foo.view.button.clicked()
     refresh_gui()
     # Broken, not how we use controllers/views in Stoq
     return
     win = self.foo.bar.win
     win.realize()
     color = get_background(win)
     self.assertEqual(color, "#001100")
     label = self.foo.bar.label
     label.realize()
     color = get_foreground(label)
     self.assertEqual(color, "#CC99FF")
Ejemplo n.º 3
0
 def testColors(self):
     self.foo.view.button.clicked()
     refresh_gui()
     # Broken, not how we use controllers/views in Stoq
     return
     win = self.foo.bar.win
     win.realize()
     color = get_background(win)
     self.assertEqual(color, "#001100")
     label = self.foo.bar.label
     label.realize()
     color = get_foreground(label)
     self.assertEqual(color, "#CC99FF")
Ejemplo n.º 4
0
 def testColors(self):
     # Those tests are broken since the creation of SignalProxyObject
     # in commit 5eea7ec2.
     return
     self.foo.view.button.clicked()
     refresh_gui()
     win = self.foo.bar.win
     win.realize()
     color = get_background(win)
     self.assertEqual(color, "#001100")
     label = self.foo.bar.label
     label.realize()
     color = get_foreground(label)
     self.assertEqual(color, "#CC99FF")
Ejemplo n.º 5
0
 def testColors(self):
     # Those tests are broken since the creation of SignalProxyObject
     # in commit 5eea7ec2.
     return
     self.foo.view.button.clicked()
     refresh_gui()
     win = self.foo.bar.win
     win.realize()
     color = get_background(win)
     self.assertEqual(color, "#001100")
     label = self.foo.bar.label
     label.realize()
     color = get_foreground(label)
     self.assertEqual(color, "#CC99FF")