tests: Fix webkitelem test for tagName

This commit is contained in:
Florian Bruhin 2016-08-08 15:28:11 +02:00
parent 8187a334f7
commit 58fb41ab9d

View File

@ -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'