예제 #1
0
    def test_multi_line_value(self):
        self.assertEqual(parse_property('''src: local('Vollkorn'),
url('http://themes.googleusercontent.com/font?kit=_3YMy3W41J9lZ9YHm0HVxA')
format('truetype');
display: block;''').value,'''local('Vollkorn'),
url('http://themes.googleusercontent.com/font?kit=_3YMy3W41J9lZ9YHm0HVxA')
format('truetype')''')
예제 #2
0
    def test_multi_line_value(self):
        self.assertEqual(
            parse_property('''src: local('Vollkorn'),
url('http://themes.googleusercontent.com/font?kit=_3YMy3W41J9lZ9YHm0HVxA')
format('truetype');
display: block;''').value, '''local('Vollkorn'),
url('http://themes.googleusercontent.com/font?kit=_3YMy3W41J9lZ9YHm0HVxA')
format('truetype')''')
예제 #3
0
    def setUp(self):
        self.property = parse_property(\
"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.png');")
예제 #4
0
 def test_multi_line(self):
     self.assertEqual(parse_property('display:block;\ndisplay:none').value,
                      'block')
예제 #5
0
 def test_single_line(self):
     self.assertEqual(parse_property('display:block;display:none').value,
                      'block')
예제 #6
0
 def setUp(self):
     self.property = parse_property("font-family: sans-serif;")
예제 #7
0
 def test_single_line(self):
     self.assertEqual(
         parse_property('display:block;display:none').value, 'block')
예제 #8
0
 def setUp(self):
     self.property = parse_property('content: url(/uri);')
예제 #9
0
 def setUp(self):
     self.property = parse_property("content: url('/uri');")
예제 #10
0
 def setUp(self):
     self.property = parse_property('content: url(/uri);')
예제 #11
0
 def setUp(self):
     self.property = parse_property("content: '\0000A9';")
예제 #12
0
 def setUp(self):
     self.property = parse_property('quotes: "{" "}";')
예제 #13
0
    def setUp(self):
        self.property = parse_property(\
"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.png');")
예제 #14
0
 def test_multi_line(self):
     self.assertEqual(
         parse_property('display:block;\ndisplay:none').value, 'block')
예제 #15
0
 def setUp(self):
     self.property = parse_property('quotes: "{" "}";')
예제 #16
0
    def setUp(self):
        self.property = parse_property('''src: local('Vollkorn'),
url('http://themes.googleusercontent.com/font?kit=_3YMy3W41J9lZ9YHm0HVxA')
format('truetype');''')
예제 #17
0
 def setUp(self):
     self.property = parse_property("content: '\0000A9';")
예제 #18
0
    def setUp(self):
        self.property = parse_property('''src: local('Vollkorn'),
url('http://themes.googleusercontent.com/font?kit=_3YMy3W41J9lZ9YHm0HVxA')
format('truetype');''')
예제 #19
0
 def setUp(self):
     self.property = parse_property("content: url('/uri');")
예제 #20
0
 def setUp(self):
     self.property = parse_property("font-family: sans-serif;")