This tests that lineNumberForPosition is reported correctly for textarea and contenteditable elements. On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". FAIL area1.selectionStart = (0); area1.selectionEnd = (0); area1AXUIElement.insertionPointLineNumber; should be 0. Was -1. FAIL area1.selectionStart = (7); area1.selectionEnd = (7); area1AXUIElement.insertionPointLineNumber; should be 1. Was -1. FAIL area1.selectionStart = (14); area1.selectionEnd = (14); area1AXUIElement.insertionPointLineNumber; should be 2. Was -1. PASS area2.focus(); area1AXUIElement.insertionPointLineNumber; is -1 FAIL window.getSelection().setBaseAndExtent(contenteditableLine1, 1, contenteditableLine1, 1); contenteditableAXUIElement.insertionPointLineNumber; should be 0. Was -1. PASS contenteditableLine2.selectionStart = 1; contenteditableLine2.selectionEnd = 1;contenteditableAXUIElement.insertionPointLineNumber; is -1 FAIL window.getSelection().setBaseAndExtent(contenteditableLine3, 1, contenteditableLine3, 1); contenteditableAXUIElement.insertionPointLineNumber; should be 2. Was -1. FAIL textareaAXUIElement.insertionPointLineNumber should be 0. Was -1. PASS successfullyParsed is true TEST COMPLETE Line1 Line3