Re: mozmill error running testcase

12 views
Skip to first unread message

Gary Kwong

unread,
Feb 23, 2009, 2:57:15 AM2/23/09
to Wayne Mery, Dan Mosedale (TB Mac), mozmi...@googlegroups.com, Clint Talbert, Mikeal Rogers
Wayne, you should post to Mozmill's newsgroup. Cross-posting.

ref http://groups.google.com/group/mozmill-dev

(cc'ing ctalbert and Mikeal for their info as well)

-Gary
nth10sd


On 2/23/09 2:39 AM, Wayne Mery wrote:
> I am I doing this correctly?
>
> Attempting to run mozmill test for Bug 374577 (CAPS) using mozmill 1.02
> and TB 3.0b2 I get
>
> fail :: undefined +exception: [Exception... "Component returned failure
> code: 0x80004005 (NS_ERROR_FAILURE) [nsIMsgFolder.getChildNamed]"
> nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
> file:///C:/Users/wsm0/AppData/Roaming/Thunderbird/Profiles/4jc4urc0.default/extensions/moz...@mozilla.com/resource/modules/frame.js
> -> file:///C:/test-msg-content-policy.js :: test_jsContentPolicy :: line
> 203" data: no]test: function test_jsContentPolicy() {
> dump("test_jsContentPolicy() starting\n");
> mainWindow.ClearMessagePane();
> MC.sleep(10000);
> var localTestFolder = ensureFreshTestFolder();
> var inbox = localRootFolder.getChildNamed("Inbox");
> mainWindow.gFolderTreeView.selectFolder(inbox);
> mainWindow.gFolderTreeView.selectFolder(localTestFolder);
> MC.sleep(10000);
> checkJsInMail(localTestFolder);
> checkJsInNonMessageContent();
> checkJsInMail(localTestFolder);
> checkJsInNonMessageContent();
> dump("finished test_jsContentPolicy()\n");
> }

Henrik Skupin

unread,
Feb 23, 2009, 3:19:02 AM2/23/09
to mozmi...@googlegroups.com, Wayne Mery, Dan Mosedale (TB Mac)
Gary Kwong wrote on 22.02.2009 23:57 Uhr:
> Wayne, you should post to Mozmill's newsgroup. Cross-posting.
>
> ref http://groups.google.com/group/mozmill-dev

Seems like the test has been stripped off. We need more info.

Henrik

Ludovic Hirlimann

unread,
Feb 23, 2009, 8:13:47 AM2/23/09
to MozMill Developers


On Feb 23, 9:19 am, Henrik Skupin <hsku...@mozilla.com> wrote:
> Gary Kwong wrote on 22.02.2009 23:57 Uhr:
>
> > Wayne, you should post to Mozmill's newsgroup. Cross-posting.
>
> > refhttp://groups.google.com/group/mozmill-dev
>
What do you guys need ? the test ? It's available at <http://
hg.mozilla.org/comm-central/file/b65ce77398b0/mail/test/mozmill/test-
msg-content-policy.js>.
What else would you like to know Henrik ?


Ludo

wsm

unread,
Feb 23, 2009, 8:14:23 AM2/23/09
to MozMill Developers

Mikeal Rogers

unread,
Feb 23, 2009, 2:55:37 PM2/23/09
to mozmi...@googlegroups.com
This is an exception in the actual test code and isn't related to the
framework at all so I can't really be of much help :(

One thing I would say is that it's safer to put the controller
creation in a setupModule in case a test that gets run before this one
decides to close and then reopen the main window. If it does then MC
won't have a valid window anymore.

http://code.google.com/p/mozmill/wiki/MozMillTestBasics

But this failure isn't related to MC at all.

Line 203 in your test is causing:
Exception... "Component returned
failure code: 0x80004005 (NS_ERROR_FAILURE)
[nsIMsgFolder.getChildNamed]" nsresult: "0x80004005
(NS_ERROR_FAILURE)

-Mikeal

Henrik Skupin

unread,
Feb 23, 2009, 11:53:20 PM2/23/09
to mozmi...@googlegroups.com
wsm wrote on 23.02.2009 5:14 Uhr:

> fail :: undefined +exception: [Exception... "Component returned
> failure code: 0x80004005 (NS_ERROR_FAILURE)
> [nsIMsgFolder.getChildNamed]" nsresult: "0x80004005

While checking the source I noticed that simply the folder cannot be found:
http://mxr.mozilla.org/comm-central/source/mailnews/base/util/nsMsgDBFolder.cpp#2912

You should check why your Inbox gets deleted...

Henrik

Reply all
Reply to author
Forward
0 new messages