diff --git a/tests/unit/browser/webkit/test_webkitelem.py b/tests/unit/browser/webkit/test_webkitelem.py index 2fec4d1dc..ea613699e 100644 --- a/tests/unit/browser/webkit/test_webkitelem.py +++ b/tests/unit/browser/webkit/test_webkitelem.py @@ -402,7 +402,6 @@ class TestWebKitElement: ('webFrame', lambda e: e.frame()), ('geometry', lambda e: e.geometry()), ('toOuterXml', lambda e: e.outer_xml()), - ('tagName', lambda e: e.tag_name()), ]) def test_simple_getters(self, elem, attribute, code): sentinel = object() @@ -421,6 +420,10 @@ class TestWebKitElement: mock = getattr(elem._elem, method) mock.assert_called_with(*args) + def test_tag_name(self, elem): + elem._elem.tagName.return_value = 'SPAN' + assert elem.tag_name() == 'span' + def test_style_property(self, elem): assert elem.style_property('foo', strategy='computed') == 'bar'