Closed
Bug 760410
Opened 13 years ago
Closed 13 years ago
Regression in test dnd/testhtml.js ("Unexpectedly found element ID: item1")
Categories
(Testing Graveyard :: Mozmill, defect)
Testing Graveyard
Mozmill
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: whimboo, Assigned: ahal)
References
Details
(Keywords: regression, Whiteboard: [mozmill-2.0+])
Attachments
(1 file, 2 obsolete files)
1.67 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
While working on getting all the JS tests enabled again, I have seen that we have a regression in the following test:
https://github.com/mozautomation/mozmill/blob/master/mutt/mutt/tests/js/dnd/testhtml.js
After the drag and drop action the the element item1 is still present for Mozmill while it doesn't exist anymore in the page. I have verified that with Firebug.
This is working fine with Mozmill 1.5.12 but is broken on master. I assume it has been caused by the MozmillElement feature.
Requesting for blocking Mozmill 2.0. I will search for the regression range.
Reporter | ||
Comment 1•13 years ago
|
||
Yeah, that has been broken since the MozElement class has been introduced in bug 632451.
Blocks: 632451
Keywords: regressionwindow-wanted
Reporter | ||
Comment 2•13 years ago
|
||
The same applies to the test (test.xul) which runs under chrome.
Ahal, would you mind taking a look at this?
Whiteboard: [mozmill-2.0?] → [mozmill-2.0+]
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → ahalberstadt
Status: NEW → ASSIGNED
Reporter | ||
Comment 4•13 years ago
|
||
Just a note for you Andrew, I will not touch those affected tests by my patch on bug 760418. So you can work independently on it.
Reporter | ||
Comment 5•13 years ago
|
||
What I meant were the example files which are stored in the extension. But I have moved the dnd tests under mutt/tests/js/controller. Please see the before mentioned bug and my pull request which is still in WIP but hopefully fixed by tomorrow.
Reporter | ||
Updated•13 years ago
|
Assignee | ||
Comment 6•13 years ago
|
||
The test is definitely broken, but I don't think the regression is caused by bug 632451 since the dragToElement function calls EventUtils directly.
It looks like the mouseDown followed by mouseMove works as expected, but then the mouseUp event is not being processed. I'll have to look deeper into EventUtils for this one.
Assignee | ||
Comment 7•13 years ago
|
||
I was mistaken in the previous comment, it is the controller.assertNodeNotExist method that wasn't working. And it was caused by the mozelement refactor.
The problem was that the DOM object was getting stored locally in JS and doesn't get rechecked for existence. Luckily there is a built-in element.exists() method for exactly this reason so the fix is simple.
Attachment #631493 -
Flags: review?(hskupin)
Reporter | ||
Comment 8•13 years ago
|
||
Comment on attachment 631493 [details] [diff] [review]
Patch 1.0 - Fix broken controller.assertNode* methods
As already filed as bug 763056, lets get all those crufty old assert methods removed in favor of the assertions module then.
Attachment #631493 -
Flags: review?(hskupin) → review-
Reporter | ||
Comment 9•13 years ago
|
||
So lets get the test fixed and re-enabled by using assert/except.ok(elem.exists().
Assignee | ||
Comment 10•13 years ago
|
||
Fixes this test. I left the controller.assert* methods alone as they will be removed in the other bug.
Attachment #631493 -
Attachment is obsolete: true
Attachment #631902 -
Flags: review?(hskupin)
Reporter | ||
Comment 11•13 years ago
|
||
Comment on attachment 631902 [details] [diff] [review]
Patch 2.0 - Fix controller/dnd_content.js
Please also enable the test in the manifest.
Attachment #631902 -
Flags: review?(hskupin) → review-
Assignee | ||
Comment 12•13 years ago
|
||
dnd_chrome.js had the same problem so I fixed and enabled it as well.
Attachment #631902 -
Attachment is obsolete: true
Attachment #631944 -
Flags: review?(hskupin)
Reporter | ||
Comment 13•13 years ago
|
||
Comment on attachment 631944 [details] [diff] [review]
Patch 3.0 - Fix dnd_content.js and dnd_chrome.js
Wohoo! Great. Thanks Ahal.
Attachment #631944 -
Flags: review?(hskupin) → review+
Assignee | ||
Comment 14•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•