mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 832045 - get_attribute test for boolean attributes; r=jgriffin
This commit is contained in:
parent
b0d8176319
commit
fd2b1a5feb
@ -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"))
|
||||
|
@ -0,0 +1,2 @@
|
||||
<!DOCTYPE html>
|
||||
<input id='disabled' disabled>
|
Loading…
Reference in New Issue
Block a user