Closed
Bug 850559
Opened 10 years ago
Closed 10 years ago
test_imestate.html needs to call restoreNormalRefresh after advanceTimeAndRefresh
Categories
(Core :: Widget, defect)
Tracking
()
RESOLVED
FIXED
mozilla22
People
(Reporter: karlt, Assigned: karlt)
References
Details
Attachments
(2 files, 3 obsolete files)
1.95 KB,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
5.36 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
http://hg.mozilla.org/mozilla-central/file/1b49fb552e18/dom/interfaces/base/nsIDOMWindowUtils.idl#l1130 The symptoms that I was seeing were that a subsequent mochitest could not open a panel during a load event. When it tried to open a panel during the load event, the mochitest iframe continued to contain the previous mochitest document. This was not just failure to paint the new document as expected from refresh driver issues, because text inputs in the previous test could be selected with the mouse and displayed a cursor.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #724307 -
Flags: review?(masayuki)
Comment 2•10 years ago
|
||
Hmm, I don't familiar with the symptom and the method which you are adding. Could you request review to somebody who is familiar with the method?
Assignee | ||
Updated•10 years ago
|
Attachment #724307 -
Flags: review?(masayuki) → review?(dbaron)
Assignee | ||
Comment 3•10 years ago
|
||
Masayuki, can you explain why this test calls advanceTimeAndRefresh(), please? (I expect that won't be obvious to David, and I don't know)
Flags: needinfo?(masayuki)
Comment 4•10 years ago
|
||
Comment on attachment 724307 [details] [diff] [review] restoreNormalRefresh after advanceTimeAndRefresh This is not the only test with this problem. They seem to be: content/events/test/test_bug574663.html content/events/test/window_wheel_default_action.html widget/tests/test_imestate.html r=dbaron on fixing this. I will disable any of these tests not fixed within 24 hours.
Attachment #724307 -
Flags: review?(dbaron) → review+
Comment 5•10 years ago
|
||
These are regressions from: https://hg.mozilla.org/mozilla-central/rev/3bc2919782a7 https://hg.mozilla.org/mozilla-central/rev/cf7a9685b8d8 https://hg.mozilla.org/mozilla-central/rev/927017027942
Comment 6•10 years ago
|
||
(In reply to David Baron [:dbaron] (don't cc:, use needinfo? instead) from comment #4) > I will disable any of these tests not fixed within 24 hours. To be clear, this is because these mess with later tests in a really bad way. That said, I probably shouldn't have said that -- it's trivial to fix, and it should just be fixed, asap.
Comment 7•10 years ago
|
||
And maybe we should rename advanceTimeAndRefresh to something scarier like controlRefreshTimeAdvanceAndRefresh?
Comment 8•10 years ago
|
||
or controlRefreshTimeAndAdvanceAndRefresh?
Comment 9•10 years ago
|
||
Attachment #724713 -
Flags: review?(karlt)
Comment 10•10 years ago
|
||
Attachment #724714 -
Flags: review?(karlt)
Updated•10 years ago
|
Attachment #724713 -
Attachment is obsolete: true
Attachment #724713 -
Flags: review?(karlt)
Updated•10 years ago
|
Assignee: karlt → dbaron
Comment 11•10 years ago
|
||
Attachment #724715 -
Flags: review?(vladimir)
Comment 12•10 years ago
|
||
er, I wish bzexport didn't change assignee by default
Assignee: dbaron → karlt
Comment 13•10 years ago
|
||
Try run with all three patches: https://tbpl.mozilla.org/?tree=Try&rev=63572c3ff84e Try run with only the assertion: https://tbpl.mozilla.org/?tree=Try&rev=43bcec929438
Assignee | ||
Comment 14•10 years ago
|
||
Comment on attachment 724714 [details] [diff] [review] Assert when a test leaves test control of refresh driver on. Looks fine to me, but, if we do this, then we need to restoreNormalRefresh() in test_imestate.html before runEditableSubframeTests().
Attachment #724714 -
Flags: review?(karlt) → review+
Assignee | ||
Comment 15•10 years ago
|
||
(In reply to David Baron [:dbaron] (don't cc:, use needinfo? instead) from comment #7) > And maybe we should rename advanceTimeAndRefresh to something scarier like > controlRefreshTimeAdvanceAndRefresh? Fine, or perhaps something like advanceTimeRefreshAndPause?
Comment 16•10 years ago
|
||
(In reply to Karl Tomlinson (:karlt) from comment #3) > Masayuki, can you explain why this test calls advanceTimeAndRefresh(), > please? > (I expect that won't be obvious to David, and I don't know) I'm not sure. I probably stole the method from another test. I don't know the method what's doing. So, if you think it's not necessary, please remove it.
Flags: needinfo?(masayuki)
Assignee | ||
Comment 17•10 years ago
|
||
Mac and GTK tests pass (ignore the new test_panel_mouse_coords.xul I was testing) without advanceTimeAndRefresh(). https://tbpl.mozilla.org/?tree=Try&rev=4decd1d97fc1 Waiting for WINNT results: https://tbpl.mozilla.org/?tree=Try&rev=623e7a0fc63e
Comment 18•10 years ago
|
||
Comment on attachment 724714 [details] [diff] [review] Assert when a test leaves test control of refresh driver on. I think this approach isn't practical; I'm testing a patch to make mochitest report test failures if a test leaves things under refresh driver control (and also fix the situation).
Attachment #724714 -
Attachment is obsolete: true
Assignee | ||
Comment 19•10 years ago
|
||
Comment on attachment 724307 [details] [diff] [review] restoreNormalRefresh after advanceTimeAndRefresh Removed advanceTimeAndRefresh from test_imestate.html https://hg.mozilla.org/integration/mozilla-inbound/rev/ac0eadfc2075
Attachment #724307 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Whiteboard: [leave open]
Comment 20•10 years ago
|
||
Comment on attachment 724307 [details] [diff] [review] restoreNormalRefresh after advanceTimeAndRefresh Please don't obsolete the patch because it was checked in.
Attachment #724307 -
Attachment is obsolete: false
Attachment #724307 -
Flags: checkin+
Comment 21•10 years ago
|
||
Comment on attachment 724307 [details] [diff] [review] restoreNormalRefresh after advanceTimeAndRefresh Er, sorry, never mind.
Attachment #724307 -
Attachment is obsolete: true
Attachment #724307 -
Flags: checkin+
Comment 22•10 years ago
|
||
Attachment #725444 -
Flags: review?(ted)
Comment 23•10 years ago
|
||
Try push with the mochitest patch and the other patches here: https://tbpl.mozilla.org/?tree=Try&rev=abf260e55a65 Try push with just the mochitest patch without the patches in this bug: https://tbpl.mozilla.org/?tree=Try&rev=b7e5a29ba76e
Comment 24•10 years ago
|
||
Comment on attachment 725444 [details] [diff] [review] Make mochitests check that the test didn't leave the refresh driver under test control. Review of attachment 725444 [details] [diff] [review]: ----------------------------------------------------------------- This is fine, but should we just add a more user-friendly API to the test harness that automatically cleans this up when the test is finished?
Attachment #725444 -
Flags: review?(ted) → review+
Comment 25•10 years ago
|
||
This patch actually does clean things up, but it also makes the test fail -- I'd rather not have tests that use these APIs without understanding what they are (as happened here).
Attachment #724715 -
Flags: review?(vladimir) → review+
Comment 26•10 years ago
|
||
(In reply to David Baron [:dbaron] (don't cc:, use needinfo? instead) from comment #23) > Try push with the mochitest patch and the other patches here: > https://tbpl.mozilla.org/?tree=Try&rev=abf260e55a65 > > Try push with just the mochitest patch without the patches in this bug: > https://tbpl.mozilla.org/?tree=Try&rev=b7e5a29ba76e The first of these was green; the only failure in the second was: 12:07:48 INFO - 42069 ERROR TEST-UNEXPECTED-FAIL | chrome://mochitests/content/chrome/widget/tests/test_imestate.html | test left refresh driver under test control I'm not sure why the tests in attachment 724715 [details] [diff] [review] weren't causing failures there as well.
Comment 27•10 years ago
|
||
(In reply to David Baron [:dbaron] (don't cc:, use needinfo? instead) from comment #26) > I'm not sure why the tests in attachment 724715 [details] [diff] [review] > weren't causing failures there as well. I guess it's because both are running in a separate *window*. But that could change if we change what has a separate refresh driver and what shares a refresh driver.
Comment 28•10 years ago
|
||
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/70969851084e remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/9c63866c0b1d
Whiteboard: [leave open]
Comment 29•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ac0eadfc2075 https://hg.mozilla.org/mozilla-central/rev/70969851084e https://hg.mozilla.org/mozilla-central/rev/9c63866c0b1d
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Comment 30•10 years ago
|
||
I've not understood this bug's fix yet, however, I want to say, thank you for the fix. And I apologize that I couldn't touch this bug due to working on other bugs. I'll check this bug's change for new tests which I will write. Thank you.
You need to log in
before you can comment on or make changes to this bug.
Description
•