|
|
@ -21,6 +21,12 @@ class MyTestCase(unittest.TestCase): |
|
|
|
text = utils.css_tool.getInlineStyle("diffFiles", "diffA") |
|
|
|
self.assertEqual(len(text), 37) |
|
|
|
self.assertEqual(("style" in text), True) |
|
|
|
text = utils.css_tool.getInlineStyle("diffFiles", "acceptA") |
|
|
|
self.assertEqual(len(text), 23) |
|
|
|
self.assertEqual(("style" in text), True) |
|
|
|
text = utils.css_tool.getInlineStyle("resultFile", "result1") |
|
|
|
self.assertEqual(len(text), 36) |
|
|
|
self.assertEqual(("style" in text), True) |
|
|
|
text = utils.css_tool.getInternalStyle("diffFiles") |
|
|
|
self.assertEqual(len(text), 84) |
|
|
|
text = utils.css_tool.getExternalStyle("diffFiles") |
|
|
@ -30,10 +36,21 @@ class MyTestCase(unittest.TestCase): |
|
|
|
text = utils.css_tool.getInlineStyle("diffFiles", "diffA") |
|
|
|
self.assertEqual(len(text), 13) |
|
|
|
self.assertEqual(("class" in text), True) |
|
|
|
text = utils.css_tool.getInlineStyle("resultFile", "result1") |
|
|
|
self.assertEqual(len(text), 15) |
|
|
|
self.assertEqual(("class" in text), True) |
|
|
|
text = utils.css_tool.getInternalStyle("diffFiles") |
|
|
|
print(text) |
|
|
|
self.assertEqual(len(text), 237) |
|
|
|
self.assertEqual(("<style>" in text), True) |
|
|
|
text = utils.css_tool.getInternalStyle("resultFile") |
|
|
|
print(text) |
|
|
|
self.assertEqual(len(text), 283) |
|
|
|
self.assertEqual(("<style>" in text), True) |
|
|
|
text = utils.css_tool.getInternalStyle("diffFiles,resultFile") |
|
|
|
print(text) |
|
|
|
self.assertEqual(len(text), 440) |
|
|
|
self.assertEqual(("<style>" in text), True) |
|
|
|
text = utils.css_tool.getExternalStyle("diffFiles") |
|
|
|
self.assertEqual(len(text), 0) |
|
|
|
print(text) |
|
|
@ -51,6 +68,10 @@ class MyTestCase(unittest.TestCase): |
|
|
|
self.assertEqual(len(text), 189) |
|
|
|
print(text) |
|
|
|
print(str(len(text))) |
|
|
|
text = utils.css_tool.getExternalStyle("diffFiles,resultFile") |
|
|
|
self.assertEqual(len(text), 422) |
|
|
|
print(text) |
|
|
|
print(str(len(text))) |
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
unittest.main() |
|
|
|