diff --git a/tests/html/htmlparser.cpp b/tests/html/htmlparser.cpp index f7814e0f0f..eb759ca73b 100644 --- a/tests/html/htmlparser.cpp +++ b/tests/html/htmlparser.cpp @@ -20,15 +20,13 @@ #endif // WX_PRECOMP #include "wx/html/winpars.h" +#include "wx/scopedptr.h" // Test that parsing invalid HTML simply fails but doesn't crash for example. TEST_CASE("wxHtmlParser::ParseInvalid", "[html][parser][error]") { class NullParser : public wxHtmlWinParser { - public: - virtual wxObject *GetProduct() wxOVERRIDE { return NULL; } - protected: virtual void AddText(const wxString& WXUNUSED(txt)) wxOVERRIDE { } }; @@ -37,17 +35,17 @@ TEST_CASE("wxHtmlParser::ParseInvalid", "[html][parser][error]") wxMemoryDC dc; p.SetDC(&dc); - p.Parse("<"); - p.Parse(" const top(new wxHtmlContainerCell(NULL)); wxHtmlContainerCell* const cont = new wxHtmlContainerCell(NULL); wxHtmlCell* const cell1 = new wxHtmlWordCell("Hello", dc); wxHtmlCell* const cell2 = new wxHtmlColourCell(*wxRED);