def do_test(self): decl = safe_parser().parseString(self.value) transform_sheet(self.rules, decl) css = decl.cssText if isinstance(css, bytes): css = css.decode('utf-8') self.set_result(css)
def do_test(self): decl = safe_parser().parseString(self.value) transform_sheet(self.rules, decl) css = decl.cssText if isinstance(css, bytes): css = css.decode('utf-8') self.result.load_text('/* %s */\n\n%s' % (_('Resulting stylesheet'), css), 'css')
def do_test(self): decl = safe_parser().parseString(self.value) transform_sheet(self.rules, decl) css = decl.cssText if isinstance(css, bytes): css = css.decode('utf-8') self.result.load_text('/* %s */\n\n%s' % (_('Resulting stylesheet'), css), 'css')
def do_test(self): decl = safe_parser().parseString(self.value) transform_sheet(self.rules, decl) self.result.load_text( '/* %s */\n\n%s' % (_('Resulting stylesheet'), decl.cssText), 'css')
def do_test(self): decl = safe_parser().parseString(self.value) transform_sheet(self.rules, decl) self.result.load_text('/* %s */\n\n%s' % (_('Resulting stylesheet'), decl.cssText), 'css')