The test failure is caused by firing timeout event before document loaded.

More specifically, step1() tries to set caret position by mouse down, but it doesn't set caret position, because there are no nodes. This reason why below lines are missed in failed result:

EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > PRE > BODY > HTML > #document to 5 of #text > PRE > BODY > HTML > #document toDOMRange:range from 5 of #text > PRE > BODY > HTML > #document to 6 of #text > PRE > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#showExpectations=true&tests=editing%2Fselection%2Fdoubleclick-crash.html

BUG=241855
R=jochen@chromium.org

Review URL: https://codereview.chromium.org/17471003

git-svn-id: svn://svn.chromium.org/blink/trunk@152842 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2 files changed