Modified parser test script.

** NOT PART OF THE BUILD **


git-svn-id: svn://10.0.0.236/trunk@87211 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2001-02-16 17:44:23 +00:00
parent 3f0b291771
commit 5dc914c42b
4 changed files with 24 additions and 28 deletions

View File

@@ -23,7 +23,6 @@
#include "nsParserCIID.h"
#include "nsIParser.h"
#include "nsILoggingSink.h"
#include "CNavDTD.h"
#include "nsIInputStream.h"
#include "prprf.h"
#include <fstream.h>
@@ -46,6 +45,8 @@ static NS_DEFINE_IID(kLoggingSinkCID, NS_LOGGING_SINK_CID);
static NS_DEFINE_IID(kIParserIID, NS_IPARSER_IID);
static NS_DEFINE_IID(kILoggingSinkIID, NS_ILOGGING_SINK_IID);
static NS_DEFINE_CID(kNavDTDCID, NS_CNAVDTD_CID);
//----------------------------------------------------------------------
static void SetupRegistry()
@@ -93,7 +94,7 @@ nsresult ParseData(char* anInputStream,char* anOutputStream) {
if (NS_SUCCEEDED(result)) {
// Create a dtd
nsCOMPtr<nsIDTD> dtd;
result=NS_NewNavHTMLDTD(getter_AddRefs(dtd));
result=nsComponentManager::CreateInstance(kNavDTDCID,nsnull,NS_GET_IID(nsIDTD),getter_AddRefs(dtd));
if(NS_SUCCEEDED(result)) {
// Parse the document, having the sink write the data to fp
PRFileDesc* out;