Ejemplo n.º 1
0
 def test_storingColors(self):
     self.settings.setValue("ColorScheme/htmlTags", "green")
     self.settings.setValue("ColorScheme/htmlSymbols", "#ff8800")
     self.settings.setValue("ColorScheme/htmlComments", "#abc")
     updateColorScheme(self.settings)
     self.assertEqual(colorScheme["htmlTags"], QColor(0x00, 0x80, 0x00))
     self.assertEqual(colorScheme["htmlSymbols"], QColor(0xFF, 0x88, 0x00))
     self.assertEqual(colorScheme["htmlStrings"], Qt.darkYellow)  # default
     self.assertEqual(colorScheme["htmlComments"], QColor(0xAA, 0xBB, 0xCC))
Ejemplo n.º 2
0
	def test_storingColors(self):
		self.settings.setValue('ColorScheme/htmlTags', 'green')
		self.settings.setValue('ColorScheme/htmlSymbols', '#ff8800')
		self.settings.setValue('ColorScheme/htmlComments', '#abc')
		updateColorScheme(self.settings)
		self.assertEqual(colorScheme['htmlTags'], QColor(0x00, 0x80, 0x00))
		self.assertEqual(colorScheme['htmlSymbols'], QColor(0xff, 0x88, 0x00))
		self.assertEqual(colorScheme['htmlStrings'], Qt.darkYellow) # default
		self.assertEqual(colorScheme['htmlComments'], QColor(0xaa, 0xbb, 0xcc))
Ejemplo n.º 3
0
 def test_storingColors(self):
     self.settings.setValue('ColorScheme/htmlTags', 'green')
     self.settings.setValue('ColorScheme/htmlSymbols', '#ff8800')
     self.settings.setValue('ColorScheme/htmlComments', '#abc')
     updateColorScheme(self.settings)
     self.assertEqual(colorScheme['htmlTags'], QColor(0x00, 0x80, 0x00))
     self.assertEqual(colorScheme['htmlSymbols'], QColor(0xff, 0x88, 0x00))
     self.assertEqual(colorScheme['htmlStrings'], Qt.darkYellow)  # default
     self.assertEqual(colorScheme['htmlComments'], QColor(0xaa, 0xbb, 0xcc))