summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2014-10-17 15:44:05 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2014-10-17 15:44:05 -0700
commit42cd58952d71e30ef8ef51996394be217d76c415 (patch)
tree687b9eae92e8e046bf9365ec50d31c97fd72df4d
parent593df3f006bd23f531584d16ea42e31a4b6337ae (diff)
downloadpyscss-42cd58952d71e30ef8ef51996394be217d76c415.tar.gz
Un-xfail the IE alpha() test.
-rw-r--r--scss/tests/extension/test_core.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/scss/tests/extension/test_core.py b/scss/tests/extension/test_core.py
index 94e97c6..8c26aef 100644
--- a/scss/tests/extension/test_core.py
+++ b/scss/tests/extension/test_core.py
@@ -11,9 +11,6 @@ from scss.calculator import Calculator
from scss.extension.core import CoreExtension
from scss.types import Color, Number, String
-import pytest
-xfail = pytest.mark.xfail
-
# TODO many of these tests could also stand to test for failure cases
@@ -21,8 +18,12 @@ def calc(expression):
return Calculator(CoreExtension.namespace).evaluate_expression(expression)
+def render(expression):
+ return calc(expression).render()
+
+
def assert_equivalent(actual, expected):
- assert calc(actual).render() == calc(expected).render()
+ assert render(actual) == render(expected)
# ------------------------------------------------------------------------------
@@ -165,10 +166,9 @@ def test_alpha_opacity():
assert calc('opacity(rgba(black, 0))') == Number(0.)
-@xfail(reason="currently a parse error -- so it still works in practice, but...")
def test_alpha_ie_filter():
# alpha() is supposed to leave the IE filter syntax alone
- assert calc('alpha(filter=20)') == "alpha(filter=20)"
+ assert render('alpha(opacity=20)') == "alpha(opacity=20)"
def test_opacify_fadein():