better frag checking

This commit is contained in:
jez 2009-01-03 21:41:45 +00:00
parent c7a3f9be3f
commit ae1b2f0acb
2 changed files with 4 additions and 1 deletions

View file

@ -309,6 +309,7 @@
<test-case id="ConflictResolution__77782" compare="fragment"/>
<test-case id="ConflictResolution__77783" compare="fragment"/>
<test-case id="ConflictResolution__77784" compare="fragment"/>
<test-case id="ConflictResolution__77802" compare="fragment"/>
<test-case id="ConflictResolution__77833" compare="fragment"/>
<test-case id="ConflictResolution__77847" compare="fragment"/>
<test-case id="ConflictResolution__77870" compare="fragment"/>

View file

@ -394,7 +394,7 @@ protected:
if(refs2 == outs2)
return;
assertImplementation(false, "Expected XML frag:\n" + refs + "\nbut got:\n" + outs);
assertImplementation(false, "Expected XML frag:\n" + refs + "\nbut got:\n" + outs + "\n=====\n" + refs2 + "\nbut:\n" + outs2 + "\n\n====\n\n");
} // runTest
std::string docToString(Arabica::DOM::Node<std::string> node)
@ -419,6 +419,8 @@ protected:
index = text.find_first_of(" ");
}
t.setNodeValue(text);
if(text.length() == 0)
t.getParentNode().removeChild(t);
}
} // stripWhitespace