Bug 1416410 - Fix syntax error in editable wdspec test. r?jgraham draft
authorAndreas Tolfsen <ato@sny.no>
Tue, 14 Nov 2017 13:59:17 -0500
changeset 697819 bd71540075bdc5ab6f50e6b258d1ad2d4d651203
parent 697818 494af8464b22ae377187799a5ba2d2f800c5397e
child 740215 76d89478b8b1ecf9f96c233410f95d56f6869c07
push id89105
push userbmo:ato@sny.no
push dateTue, 14 Nov 2017 19:02:51 +0000
reviewersjgraham
bugs1416410
milestone59.0a1
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
testing/web-platform/tests/webdriver/tests/interaction/send_keys_content_editable.py
--- 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])