tests: Fix webkitelem test for tagName
This commit is contained in:
parent
8187a334f7
commit
58fb41ab9d
@ -402,7 +402,6 @@ class TestWebKitElement:
|
|||||||
('webFrame', lambda e: e.frame()),
|
('webFrame', lambda e: e.frame()),
|
||||||
('geometry', lambda e: e.geometry()),
|
('geometry', lambda e: e.geometry()),
|
||||||
('toOuterXml', lambda e: e.outer_xml()),
|
('toOuterXml', lambda e: e.outer_xml()),
|
||||||
('tagName', lambda e: e.tag_name()),
|
|
||||||
])
|
])
|
||||||
def test_simple_getters(self, elem, attribute, code):
|
def test_simple_getters(self, elem, attribute, code):
|
||||||
sentinel = object()
|
sentinel = object()
|
||||||
@ -421,6 +420,10 @@ class TestWebKitElement:
|
|||||||
mock = getattr(elem._elem, method)
|
mock = getattr(elem._elem, method)
|
||||||
mock.assert_called_with(*args)
|
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):
|
def test_style_property(self, elem):
|
||||||
assert elem.style_property('foo', strategy='computed') == 'bar'
|
assert elem.style_property('foo', strategy='computed') == 'bar'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user