Bug 832045 - get_attribute test for boolean attributes; r=jgriffin

This commit is contained in:
David Burns 2013-09-20 21:24:05 +01:00
parent b0d8176319
commit fd2b1a5feb
2 changed files with 8 additions and 0 deletions

View File

@ -11,3 +11,9 @@ class TestGetAttribute(MarionetteTestCase):
self.marionette.navigate(test_html)
l = self.marionette.find_element("id", "mozLink")
self.assertEqual("mozLink", l.get_attribute("id"))
def test_that_we_can_return_a_boolean_attribute_correctly(self):
test_html = self.marionette.absolute_url("html5/boolean_attributes.html")
self.marionette.navigate(test_html)
disabled = self.marionette.find_element("id", "disabled")
self.assertEqual('true', disabled.get_attribute("disabled"))

View File

@ -0,0 +1,2 @@
<!DOCTYPE html>
<input id='disabled' disabled>