M dist/mcp-test/src/test/java/cardemo/CarDemoTest.java
- this automated test is now a complete example for how to test an ajax web application in an automated fashion. M dom/classes/org/mozilla/dom/NodeImpl.java M dom/jni/org_mozilla_dom_NodeImpl.cpp - implement getTextContent() from DOM level 3. M webclient/build-tests.xml - add cardemoTest to unit test list as a place-holder until I can write a testcase that doesn't require the public Internet. A webclient/classes_spec/org/mozilla/mcp/AjaxListener.java - New class. Docs forthcoming. M webclient/classes_spec/org/mozilla/mcp/MCP.java - new methods to support complete ajax automated testing. M webclient/src_moz/AjaxListener.cpp M webclient/src_moz/AjaxListener.h - add mIsObserving flag. From our dtor, make sure to remove ourselves from the EmbedProgress. M webclient/src_moz/EmbedProgress.cpp M webclient/src_moz/EmbedProgress.h - We need to add ourselves as an observer both from SetCapturePageInfo and SetEventRegistration. M webclient/src_moz/NativeBrowserControl.cpp - Unit testing found a bug! We can't call mWindow->ReleaseChildren() until after we remove ourself as a listener. git-svn-id: svn://10.0.0.236/trunk@221594 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -244,9 +244,6 @@ NativeBrowserControl::Destroy(void)
|
||||
if (mEventReceiver)
|
||||
mEventReceiver = nsnull;
|
||||
|
||||
// destroy our child window
|
||||
mWindow->ReleaseChildren();
|
||||
|
||||
// release navigation
|
||||
mNavigation = nsnull;
|
||||
|
||||
@@ -259,12 +256,15 @@ NativeBrowserControl::Destroy(void)
|
||||
nsIWebProgressListener::GetIID());
|
||||
weakRef = nsnull;
|
||||
supportsWeak = nsnull;
|
||||
|
||||
|
||||
// Now that we have removed the listener, release our progress
|
||||
// object
|
||||
mProgressGuard = nsnull;
|
||||
mProgress = nsnull;
|
||||
fflush(stdout);
|
||||
|
||||
// destroy our child window
|
||||
mWindow->ReleaseChildren();
|
||||
|
||||
parentHWnd = nsnull;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user