Esempio n. 1
0
    def test_conform_weird_whitespace_str(self):
        """QLinearGradientConformer weird whitespace qss to scss."""

        c = QLinearGradientConformer()
        self.assertEqual(c.to_scss(self.qss_weird_whitespace_str),
                         self.css_str)
Esempio n. 2
0
    def test_conform_multiline_str(self):
        """QLinearGradientConformer multiline qss to scss."""

        c = QLinearGradientConformer()
        self.assertEqual(c.to_scss(self.qss_multiline_str), self.css_str)
Esempio n. 3
0
    def test_does_not_affect_css_form(self):
        """QLinearGradientConformer no affect on css qlineargradient func."""

        c = QLinearGradientConformer()
        self.assertEqual(c.to_scss(self.css_str), self.css_str)
        self.assertEqual(c.to_qss(self.css_str), self.css_str)
Esempio n. 4
0
    def test_conform_vars_str(self):
        """QLinearGradientConformer qss with vars to scss."""

        c = QLinearGradientConformer()
        self.assertEqual(c.to_scss(self.qss_vars_str), self.css_vars_str)
Esempio n. 5
0
 def test_float_coords(self):
     c = QLinearGradientConformer()
     self.assertEqual(c.to_scss(self.qss_float_coords_str),
                      self.css_float_coords_str)
Esempio n. 6
0
    def test_incomplete_coords(self):
        """QLinearGradientConformer qss with not all 4 coordinates given."""

        c = QLinearGradientConformer()
        self.assertEqual(c.to_scss(self.qss_incomplete_coords_str),
                         self.css_incomplete_coords_str)