示例#1
0
 def testToString_07 (self):
     style = StcStyle(fore=u"", back=u"", bold=True, italic=True)
     self.assertEqual (style.tostr(), u"bold,italic")
示例#2
0
 def testToString_04 (self):
     style = StcStyle(bold=True, italic=True, underline=True)
     self.assertEqual (style.tostr(), u"fore:#000000,back:#FFFFFF,bold,italic,underline")
示例#3
0
 def testToString_05 (self):
     style = StcStyle(fore=u"#AAAAAA", back=u"#BBBBBB", bold=True)
     self.assertEqual (style.tostr(), u"fore:#AAAAAA,back:#BBBBBB,bold")
示例#4
0
 def testToString_01 (self):
     style = StcStyle()
     self.assertEqual (style.tostr(), u"fore:#000000,back:#FFFFFF")
示例#5
0
 def testToString_02 (self):
     style = StcStyle(bold=True)
     self.assertEqual (style.tostr(), u"fore:#000000,back:#FFFFFF,bold")
示例#6
0
 def testToString_05(self):
     style = StcStyle(fore="#AAAAAA", back="#BBBBBB", bold=True)
     self.assertEqual(style.tostr(), "fore:#AAAAAA,back:#BBBBBB,bold")
示例#7
0
 def testToString_07(self):
     style = StcStyle(fore="", back="", bold=True, italic=True)
     self.assertEqual(style.tostr(), "bold,italic")
示例#8
0
 def testToString_02(self):
     style = StcStyle(bold=True)
     self.assertEqual(style.tostr(), "fore:#000000,back:#FFFFFF,bold")
示例#9
0
 def testToString_04(self):
     style = StcStyle(bold=True, italic=True, underline=True)
     self.assertEqual(style.tostr(),
                      "fore:#000000,back:#FFFFFF,bold,italic,underline")
示例#10
0
 def testToString_01(self):
     style = StcStyle()
     self.assertEqual(style.tostr(), "fore:#000000,back:#FFFFFF")
示例#11
0
 def testToString_06(self):
     style = StcStyle(fore="", back="", bold=True)
     self.assertEqual(style.tostr(), "bold")
示例#12
0
 def testToString_03(self):
     style = StcStyle(bold=True, italic=True)
     self.assertEqual(style.tostr(), "fore:#000000,back:#FFFFFF,bold,italic")
示例#13
0
 def testToString_06(self):
     style = StcStyle(fore=u"", back=u"", bold=True)
     self.assertEqual(style.tostr(), u"bold")
示例#14
0
 def testToString_03(self):
     style = StcStyle(bold=True, italic=True)
     self.assertEqual(style.tostr(),
                      u"fore:#000000,back:#FFFFFF,bold,italic")