Closed Bug 1499996 Opened 6 years ago Closed 6 years ago

Intermittent layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to forward in non-scrollable editable div in the body: selection should be expanded into the last line (got: text node in span#s6) - got [object

Categories

(Core :: Layout, defect, P5)

defect

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox64 --- fixed
firefox65 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: masayuki)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

Filed by: btara [at] mozilla.com https://treeherder.mozilla.org/logviewer.html#?job_id=206297111&repo=autoland https://queue.taskcluster.net/v1/task/Uv8NvIP-SfW-SkJdgAqsXQ/runs/0/artifacts/public/logs/live_backing.log [task 2018-10-18T06:13:07.501Z] 06:13:07 INFO - TEST-PASS | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to forward in non-scrollable editable div in the body: selection should be expanded from the first line's 3rd insertion point [task 2018-10-18T06:13:07.501Z] 06:13:07 INFO - Buffered messages finished [task 2018-10-18T06:13:07.501Z] 06:13:07 INFO - TEST-UNEXPECTED-FAIL | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to forward in non-scrollable editable div in the body: selection should be expanded into the last line (got: text node in span#s6) - got [object Text], expected [object Text] [task 2018-10-18T06:13:07.506Z] 06:13:07 INFO - SimpleTest.is@SimpleTest/SimpleTest.js:312:5 [task 2018-10-18T06:13:07.506Z] 06:13:07 INFO - doTests@layout/base/tests/test_expanding_selection_per_page.html:226:3 [task 2018-10-18T06:13:07.506Z] 06:13:07 INFO - async*onload@layout/base/tests/window_empty_document.html:1:1 [task 2018-10-18T06:13:07.508Z] 06:13:07 INFO - TEST-PASS | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to forward in non-scrollable editable div in the body: selection should be expanded to end of the last line [task 2018-10-18T06:13:07.510Z] 06:13:07 INFO - TEST-PASS | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to backward in non-scrollable editable div in the body: editable div shouldn't be scrollable [task 2018-10-18T06:13:07.512Z] 06:13:07 INFO - Not taking screenshot here: see the one that was previously logged [task 2018-10-18T06:13:07.513Z] 06:13:07 INFO - TEST-UNEXPECTED-FAIL | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to backward in non-scrollable editable div in the body: selection should be expanded into the first line (got: text node in span#s1) - got [object Text], expected [object Text] [task 2018-10-18T06:13:07.516Z] 06:13:07 INFO - SimpleTest.is@SimpleTest/SimpleTest.js:312:5 [task 2018-10-18T06:13:07.517Z] 06:13:07 INFO - doTests@layout/base/tests/test_expanding_selection_per_page.html:241:3 [task 2018-10-18T06:13:07.520Z] 06:13:07 INFO - async*onload@layout/base/tests/window_empty_document.html:1:1 [task 2018-10-18T06:13:07.521Z] 06:13:07 INFO - TEST-PASS | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to backward in non-scrollable editable div in the body: selection should be expanded to start of the first line [task 2018-10-18T06:13:07.521Z] 06:13:07 INFO - TEST-PASS | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to backward in non-scrollable editable div in the body: selection should be expanded from the last line (got: text node in span#s5) [task 2018-10-18T06:13:07.521Z] 06:13:07 INFO - TEST-PASS | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to backward in non-scrollable editable div in the body: selection should be expanded from the last line's 3rd insertion point [task 2018-10-18T06:13:07.523Z] 06:13:07 INFO - TEST-PASS | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to forward in scrollable div (but not scrollable along y-axis) in the editable div: scrollTop should be 0 at initialization [task 2018-10-18T06:13:07.526Z] 06:13:07 INFO - TEST-PASS | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to forward in scrollable div (but not scrollable along y-axis) in the editable div: scrollable div in the editable div (but not scrollable along y-axis) shouldn't be scrollable [task 2018-10-18T06:13:07.526Z] 06:13:07 INFO - TEST-PASS | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to forward in scrollable div (but not scrollable along y-axis) in the editable div: selection should be expanded from the first line (got: text node in span#s3) [task 2018-10-18T06:13:07.528Z] 06:13:07 INFO - TEST-PASS | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to forward in scrollable div (but not scrollable along y-axis) in the editable div: selection should be expanded from the first line's 3rd insertion point [task 2018-10-18T06:13:07.531Z] 06:13:07 INFO - Not taking screenshot here: see the one that was previously logged [task 2018-10-18T06:13:07.532Z] 06:13:07 INFO - TEST-UNEXPECTED-FAIL | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to forward in scrollable div (but not scrollable along y-axis) in the editable div: selection should be expanded into the last editable line (got: text node in span#s6) - got [object Text], expected [object Text] [task 2018-10-18T06:13:07.533Z] 06:13:07 INFO - SimpleTest.is@SimpleTest/SimpleTest.js:312:5 [task 2018-10-18T06:13:07.534Z] 06:13:07 INFO - doTests@layout/base/tests/test_expanding_selection_per_page.html:277:3 [task 2018-10-18T06:13:07.535Z] 06:13:07 INFO - async*onload@layout/base/tests/window_empty_document.html:1:1 [task 2018-10-18T06:13:07.542Z] 06:13:07 INFO - TEST-PASS | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to forward in scrollable div (but not scrollable along y-axis) in the editable div: selection should be expanded to end of the last editable line [task 2018-10-18T06:13:07.544Z] 06:13:07 INFO - TEST-PASS | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to backward in scrollable div (but not scrollable along y-axis) in the editable div: scrollable div (but not scrollable along y-axis) in the editable div shouldn't be scrollable [task 2018-10-18T06:13:07.546Z] 06:13:07 INFO - Not taking screenshot here: see the one that was previously logged [task 2018-10-18T06:13:07.547Z] 06:13:07 INFO - TEST-UNEXPECTED-FAIL | layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to backward in scrollable div (but not scrollable along y-axis) in the editable div: selection should be expanded into the first editable line (got: text node in span#s1) - got [object Text], expected [object Text] [task 2018-10-18T06:13:07.548Z] 06:13:07 INFO - SimpleTest.is@SimpleTest/SimpleTest.js:312:5 [task 2018-10-18T06:13:07.549Z] 06:13:07 INFO - doTests@layout/base/tests/test_expanding_selection_per_page.html:292:3 [task 2018-10-18T06:13:07.550Z] 06:13:07 INFO - async*onload@layout/base/tests/window_empty_document.html:1:1
Summary: Intermittent Test Verify layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to forward in non-scrollable editable div in the body: selection should be expanded into the last line (got: text node in span#s6) - got [object → Intermittent layout/base/tests/test_expanding_selection_per_page.html | Expanding selection to forward in non-scrollable editable div in the body: selection should be expanded into the last line (got: text node in span#s6) - got [object
Masayuki, this fail started with https://hg.mozilla.org/integration/autoland/rev/02a07fe8780872236c65ddc30470209bef95b71b. Can you please take a look?
Flags: needinfo?(masayuki)
I'm seeing this go perma-orange on linux64 on some trypushes where I remove initial about:blank from the initial new windows that open (https://treeherder.mozilla.org/#/jobs?repo=try&revision=2a1416e0ea05d318211db0e3ffd0d3951d0eae4e&selectedJob=207070966 ). At least locally for me, adding: await SimpleTest.promiseFocus(aWindow); at the very start of the `async function doTests(aWindow)`, makes this pass --verify. Of course, I have no idea if that will also fix the win10 QR issues, but I figured I would mention it in case it does help...
Thank you! I was confused at why the orange occurs so frequently on opt build bug not so on debug builds. But if debug build is enough slow to wait focus, it makes sense.
Flags: needinfo?(masayuki)
FYI: I work slowly due to bug 1499551 :-(
Assignee: nobody → masayuki
Status: NEW → ASSIGNED
test_expanding_selection_per_page.html creates another window and requires focus event on each case which creates editing host because EditorEventListener::Focus() sets ancestor limit of Selection as the editing host. Therefore, if the window itself does not have focus, focus event won't be fired on editing hosts. So, the reason why the orange occurs almost all with opt build is, debug build is enough slow to wait focus of new window before running test.
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/d9c2a804cbc8 Wait to run tests until new window gets focus r=smaug
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: