Skip to content

Commit

Permalink
Revive commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 9, 2022
1 parent 5231042 commit 4c3167e
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions cssutils/tests/test_cssvariablesdeclaration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Testcases for cssutils.css.cssvariablesdelaration.CSSVariablesDeclaration."""

import xml.dom

from . import basetest
import cssutils

Expand Down Expand Up @@ -105,30 +107,26 @@ def test_cssText(self):
}
self.do_equal_r(tests)

# TODO: Fix?
# def test_cssText2(self):
# "CSSVariablesDeclaration.cssText"
# # exception
# tests = {
# u'top': xml.dom.SyntaxErr,
# u'top:': xml.dom.SyntaxErr,
# u'top : ': xml.dom.SyntaxErr,
# u'top:;': xml.dom.SyntaxErr,
# u'top 0': xml.dom.SyntaxErr,
# u'top 0;': xml.dom.SyntaxErr,
#
# u':': xml.dom.SyntaxErr,
# u':0': xml.dom.SyntaxErr,
# u':0;': xml.dom.SyntaxErr,
# u':;': xml.dom.SyntaxErr,
# u': ;': xml.dom.SyntaxErr,
#
# u'0': xml.dom.SyntaxErr,
# u'0;': xml.dom.SyntaxErr,
#
# u';': xml.dom.SyntaxErr,
# }
# self.do_raise_r(tests)
def test_cssText2(self):
"CSSVariablesDeclaration.cssText"

tests = {
'top': xml.dom.SyntaxErr,
'top:': xml.dom.SyntaxErr,
'top : ': xml.dom.SyntaxErr,
'top:;': xml.dom.SyntaxErr,
'top 0': xml.dom.SyntaxErr,
'top 0;': xml.dom.SyntaxErr,
':': xml.dom.SyntaxErr,
':0': xml.dom.SyntaxErr,
':0;': xml.dom.SyntaxErr,
':;': xml.dom.SyntaxErr,
': ;': xml.dom.SyntaxErr,
'0': xml.dom.SyntaxErr,
'0;': xml.dom.SyntaxErr,
';': xml.dom.SyntaxErr,
}
self.do_raise_r(tests)

def test_xVariable(self):
"CSSVariablesDeclaration.xVariable()"
Expand Down

0 comments on commit 4c3167e

Please sign in to comment.