<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jul 11, 2016 at 1:48 PM, Michael Meeks <span dir="ltr"><<a href="mailto:michael.meeks@collabora.com" target="_blank">michael.meeks@collabora.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="">
On Mon, 2016-07-11 at 10:22 +0530, Mohammed Abdul Azeem wrote:<br></span><span class=""><br>
> 2. SwUiWriterTest::testAutoCorr<br>
> It fails with an uncaught exception of type<br>
> com.sun.star.container.NoSuchElementException.<br>
> It fails at sw/qa/extras/uiwriter/uiwriter.cxx:1034, so I assume these<br>
> statements<br>
> pWrtShell->Insert("Bolt");<br>
> pWrtShell->AutoCorrect(corr, cIns);<br>
> at line 1032 and 1033 is failing for some reason.<br>
> During the execution of those statements, LegacyParser is called with<br>
> these two filters as document handlers.<br>
> com.sun.star.comp.Writer.XMLStylesImporter<br>
> com.sun.star.comp.Writer.XMLContentImporter<br>
<br>
</span>A quick git grep:<br>
<br>
xmloff/source/transform/OOo2Oasis.cxx-OOO_IMPORTER( XMLWriterContentImportOOO,<br>
xmloff/source/transform/OOo2Oasis.cxx:<br>
"com.sun.star.comp.Writer.XMLContentImporter",<br>
xmloff/source/transform/OOo2Oasis.cxx-<br>
"com.sun.star.comp.Writer.XMLOasisContentImporter" )<br>
<br>
        Suggests that there is some sort of wrapper / renaming (?)<br>
<br>
sw/source/filter/xml/xmlimp.cxx-extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL<br>
sw/source/filter/xml/xmlimp.cxx:com_sun_star_comp_Writer_XMLOasisContentImporter_get_implementation(css::uno::XComponentContext* context,<br>
sw/source/filter/xml/xmlimp.cxx-        css::uno::Sequence<css::uno::Any> const &)<br>
<br>
        Might be a good place to look,<br>
<br></blockquote><div>At some point of time ManifestReader::readManifestSequence is called, which calls the parser. But our new parser is not emitting any events for this source, while XParser parses the manifest file and emits some events. I am not sure why this is happening. I have attached the diff -u of outputs of events emitted by both the parsers during SwUiWriterTest::testAutoCorr test.</div><div><br></div><div>Any help is appreciated.</div><div><br></div><div>Thanks,</div><div>Azeem</div></div></div></div>