Last active
December 29, 2015 15:49
-
-
Save AutomatedTester/7693699 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HG changeset patch | |
# User David Burns <dburns@mozilla.com> | |
# Date 1385654203 0 | |
# Thu Nov 28 15:56:43 2013 +0000 | |
# Node ID 12fc3a5101ee243d22d6f07d022208de9f400ee9 | |
# Parent 234a044ca9425ea538eaec00cbb64d333529657d | |
[mq]: 942730 | |
diff --git a/testing/marionette/client/marionette/tests/unit/test_text.py b/testing/marionette/client/marionette/tests/unit/test_text.py | |
--- a/testing/marionette/client/marionette/tests/unit/test_text.py | |
+++ b/testing/marionette/client/marionette/tests/unit/test_text.py | |
@@ -22,8 +22,17 @@ class TestText(MarionetteTestCase): | |
def test_sendKeys(self): | |
test_html = self.marionette.absolute_url("test.html") | |
self.marionette.navigate(test_html) | |
l = self.marionette.find_element("name", "myInput") | |
self.assertEqual("asdf", self.marionette.execute_script("return arguments[0].value;", [l])) | |
l.send_keys("o") | |
self.assertEqual("asdfo", self.marionette.execute_script("return arguments[0].value;", [l])) | |
+ | |
+ def test_send_keys_to_type_input(self): | |
+ test_html = self.marionette.absolute_url("html5/test_html_inputs.html") | |
+ self.marionette.navigate(test_html) | |
+ num_input = self.marionette.find_element('id', 'number') | |
+ self.assertEqual("", self.marionette.execute_script("return arguments[0].value", [num_input])) | |
+ import pdb; pdb.set_trace() | |
+ num_input.send_keys("1234") | |
+ self.assertEqual('1234', self.marionette.execute_script("return arguments[0].value", [num_input])) | |
diff --git a/testing/marionette/client/marionette/www/html5/test_html_inputs.html b/testing/marionette/client/marionette/www/html5/test_html_inputs.html | |
new file mode 100644 | |
--- /dev/null | |
+++ b/testing/marionette/client/marionette/www/html5/test_html_inputs.html | |
@@ -0,0 +1,2 @@ | |
+<!DOCTYPE html> | |
+<input id='number' type=number> | |
\ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment