Esempio 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")
Esempio 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")
Esempio 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")
Esempio 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")
Esempio 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")