Bug 1416410 - Fix syntax error in editable wdspec test. r?jgraham
A comment in the send_keys_content_editable.py test caused a
"SyntaxError: Non-ASCII character '\xe2'" to be raised because it
contained a unicode apostrophe. We failed to notice this before
because we did not ERROR on the harness level.
MozReview-Commit-ID: 69fZtOssp0p
--- a/testing/web-platform/tests/webdriver/tests/interaction/send_keys_content_editable.py
+++ b/testing/web-platform/tests/webdriver/tests/interaction/send_keys_content_editable.py
@@ -6,17 +6,17 @@ from tests.support.inline import inline
def test_sets_insertion_point_to_end(session):
session.url = inline('<div contenteditable=true>Hello,</div>')
input = session.find.css("div", all=False)
input.send_keys(' world!')
text = session.execute_script('return arguments[0].innerText', args=[input])
assert "Hello, world!" == text.strip()
-# 12. Let current text length be the element’s length.
+# 12. Let current text length be the element's length.
#
# 13. Set the text insertion caret using set selection range using current
# text length for both the start and end parameters.
def test_sets_insertion_point_to_after_last_text_node(session):
session.url = inline('<div contenteditable=true>Hel<span>lo</span>,</div>')
input = session.find.css("div", all=False)
input.send_keys(" world!")
text = session.execute_script("return arguments[0].innerText", args=[input])