From ca3278b892e739aa139270271918ea2b0de0d8cc Mon Sep 17 00:00:00 2001 From: Andrew Comminos Date: Wed, 8 Jul 2015 10:10:00 +0200 Subject: [PATCH] Bug 1180840 - Make test_focus.xul not expect a specific text selection position after mouse event synthesis. r=enn --HG-- extra : rebase_source : d01d5a8c6d2c728b80a15bf89c8fca231228904a --- dom/tests/mochitest/chrome/window_focus.xul | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dom/tests/mochitest/chrome/window_focus.xul b/dom/tests/mochitest/chrome/window_focus.xul index 1a00e65e7cda..958c5bf21670 100644 --- a/dom/tests/mochitest/chrome/window_focus.xul +++ b/dom/tests/mochitest/chrome/window_focus.xul @@ -464,8 +464,7 @@ function startTest() } } - is(t19.selectionStart, 0, "input focused from mouse selectionStart"); - is(t19.selectionEnd, 0, "input focused from mouse selectionEnd"); + ok(t19.selectionStart == t19.selectionEnd, "input focused from mouse selection"); // mouse clicking on elements that are not tabbable for (idx = 1; idx <= kFocusSteps; idx++) {