示例#1
0
    def setUp(self):
        self.mixin = parse_mixin('''.fs (@main: 'TitilliumText15L400wt') {
    font-family: @main, 'Helvetica', sans-serif;
}''')
示例#2
0
 def setUp(self):
     self.params = parse_mixin(".mixin(@param: '{') { };").params
示例#3
0
 def setUp(self):
     self.params = parse_mixin('.mixin(@param: 1) { }').params
示例#4
0
 def setUp(self):
     self.params = parse_mixin('.mixin(1);').params
示例#5
0
 def setUp(self):
     self.params = parse_mixin(".mixin('{');").params
示例#6
0
 def test_used_without_brackets(self):
     self.assertEqual(parse_mixin('.mixin;').params, NO_PARAMS)
示例#7
0
 def test_used(self):
     self.assertEqual(parse_mixin('.mixin();').params, NO_PARAMS)
示例#8
0
 def test_declared(self):
     self.assertEqual(parse_mixin('.mixin() { }').params, NO_PARAMS)
示例#9
0
    def setUp(self):
        self.mixin = parse_mixin('''.box-shadow(0 2px 5px rgba(0, 0, 0, 0.125),
0 2px 10px rgba(0, 0, 0, 0.25));''')
示例#10
0
    def setUp(self):
        self.params = parse_mixin('''.mixin (@name: 'a\'', @b: 'b') {
    display: none;
}''').params