From 39ae4966325fc99f5fd873210e53bde280c799d9 Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Thu, 16 Jan 2003 21:35:18 +0000 Subject: [PATCH] No bug - OS/2 only - test - put OS/2 code into test (originally used XP_PC and broke OS/2 - didn't write the OS/2 code at that time) git-svn-id: svn://10.0.0.236/trunk@136441 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/htmlparser/tests/grabpage/grabpage.cpp | 13 +++++++++++++ .../parser/htmlparser/tests/grabpage/grabpage.cpp | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/mozilla/htmlparser/tests/grabpage/grabpage.cpp b/mozilla/htmlparser/tests/grabpage/grabpage.cpp index 318def743e0..01a4f7c0d51 100644 --- a/mozilla/htmlparser/tests/grabpage/grabpage.cpp +++ b/mozilla/htmlparser/tests/grabpage/grabpage.cpp @@ -60,6 +60,11 @@ static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID); #include #include #endif +#ifdef XP_OS2 +#include +#include +#include +#endif class StreamToFile : public nsIStreamListener { public: @@ -260,6 +265,14 @@ PageGrabber::Grab(const nsAFlatCString& aURL) } } #endif + #ifdef XP_OS2 + QMSG qmsg; + while ( !copier->IsDone() ) { + if (WinPeekMsg(0, &qmsg, NULL, 0, 0, PM_REMOVE)) { + WinDispatchMsg(0, &qmsg); + } + } + #endif error = copier->HaveError(); NS_RELEASE(copier); diff --git a/mozilla/parser/htmlparser/tests/grabpage/grabpage.cpp b/mozilla/parser/htmlparser/tests/grabpage/grabpage.cpp index 318def743e0..01a4f7c0d51 100644 --- a/mozilla/parser/htmlparser/tests/grabpage/grabpage.cpp +++ b/mozilla/parser/htmlparser/tests/grabpage/grabpage.cpp @@ -60,6 +60,11 @@ static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID); #include #include #endif +#ifdef XP_OS2 +#include +#include +#include +#endif class StreamToFile : public nsIStreamListener { public: @@ -260,6 +265,14 @@ PageGrabber::Grab(const nsAFlatCString& aURL) } } #endif + #ifdef XP_OS2 + QMSG qmsg; + while ( !copier->IsDone() ) { + if (WinPeekMsg(0, &qmsg, NULL, 0, 0, PM_REMOVE)) { + WinDispatchMsg(0, &qmsg); + } + } + #endif error = copier->HaveError(); NS_RELEASE(copier);