Closed
Bug 264068
Opened 20 years ago
Closed 11 years ago
XTF needs some JS and CPP testcases
Categories
(Core Graveyard :: XTF, defect)
Core Graveyard
XTF
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: aaronr, Assigned: alex)
Details
Attachments
(3 files, 2 obsolete files)
1.36 KB,
patch
|
Details | Diff | Splinter Review | |
21.82 KB,
application/zip
|
Details | |
52.95 KB,
patch
|
Details | Diff | Splinter Review |
XTF needs some testcases to show developers how to use the technology. Best to have testcases that do the same thing, but written in JS AND CPP.
I've got a JS and CPP testcase to contribute. Building it against the trunk right now to make sure it works outside of the xforms branch
here are some testcases that could be included in the tree if they look ok to you. However, there is a crash if you run the .js testcase and click on the SSN textfields instead of tabbing to them. Is this something wrong with my testcase or a bug that needs to be filed?
Comment 3•20 years ago
|
||
One missing thing. NS_IMETHODIMP WidgetSSNElement::HandleDefault(nsIDOMEvent *aEvent, PRBool *aHandled) { *aHandled = PR_FALSE; return NS_OK; }
Comment 4•20 years ago
|
||
Comment on attachment 162139 [details] proposed testcases Ahem, using the same CID as the XForms lib. might not be a good idea :) And two small changes, to remove the warnings: diff ../../tests.orig/ssncpp/WidgetSSNElement.cpp ./WidgetSSNElement.cpp 518c518 < if( fieldValue.Length() < iMaxLen ) --- > if( fieldValue.Length() < (PRUint32) iMaxLen ) 578c578,579 < nsresult res = aChangeEvent->GetTarget( getter_AddRefs(target) ); --- > nsresult rv = aChangeEvent->GetTarget( getter_AddRefs(target) ); > NS_ENSURE_SUCCESS(rv, rv);
Comment 5•20 years ago
|
||
Comment on attachment 162139 [details]
proposed testcases
BTW, remove the Windows CR + LF...
incorporated the suggested changes
Attachment #162139 -
Attachment is obsolete: true
Comment 8•20 years ago
|
||
The ssncpp.xpt file is not installed neither generated, libssncpp.so is installed ok on the components directory, so the CPP version does not works out of the box. the JS vesion work ok
fixed problem where BeginAddingChildren function missing from WidgetSSNElement.cpp
Attachment #162510 -
Attachment is obsolete: true
Comment 10•20 years ago
|
||
attachment #166477 [details] solves the problem I was experiencing
Updated•20 years ago
|
Product: Browser → Seamonkey
Comment 11•20 years ago
|
||
This is interesting (and very helpful!). I've been meaning to write an article on XTF anyway... would anyone object if I provided a SVG-based testcase as I wrote it?
Comment 12•19 years ago
|
||
This should be put on the wiki I think.
Assignee: alex → allan
Component: General → XTF
Product: Mozilla Application Suite → Core
Hardware: PC → All
Comment 13•17 years ago
|
||
I actually have just submitted a xpcshell testcase for bug 378247. (When aaronr first put the testcases up, we didn't have the xpcshell-simple test harness.) Maybe we can start to work on this bug a bit more.
Reporter | ||
Comment 14•17 years ago
|
||
This is similar to the testcases in v3 but written to go in a sample directory since it doesn't really fit into unit testcase harness. It is an XTF extension that uses XBL to do the UI, similar to how XForms does it. Building the directory will build a .xpi that can be installed.
Updated•17 years ago
|
Assignee: allan → xforms
Comment 15•17 years ago
|
||
I am working on script that launch Firefox and automatically shut down the instance after some activity. For example, I can run a script which will: - launch with one extension installed - quit that instance - launch with another extension installed - quit that instance Let me know if this might have some relevance to what you are trying to test here.
Updated•15 years ago
|
Assignee: xforms → alex
QA Contact: general → xtf
Comment 16•11 years ago
|
||
XTF has been removed from the tree.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Comment 17•11 years ago
|
||
[xtfisdead] for filtering purposes.
Updated•10 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•