fix test now that & is converted to &

wilder-portage
Kurt Hindenburg 8 years ago
parent d93aba545b
commit e2aff3645d
  1. 3
      src/autotests/TerminalCharacterDecoderTest.cpp

@ -99,8 +99,7 @@ void TerminalCharacterDecoderTest::testHTMLDecoder_data()
// The below is wrong; only the first rendition is used (eg ignores the |)
QTest::newRow("simple text with underline and italic rendition") << "hello" << QVector<RenditionFlags>(6).fill(RE_UNDERLINE|RE_ITALIC) << "<span style=\"font-family:monospace\"><span style=\"font-decoration:underline;color:#000000;background-color:#ffffff;\">hello</span><br></span>";
// The below should likely have & replaced by &amp;
QTest::newRow("text with &") << "hello &there" << QVector<RenditionFlags>(6).fill(DEFAULT_RENDITION) << "<span style=\"font-family:monospace\"><span style=\"color:#000000;background-color:#ffffff;\">hello &there</span><br></span>";
QTest::newRow("text with &") << "hello &there" << QVector<RenditionFlags>(6).fill(DEFAULT_RENDITION) << "<span style=\"font-family:monospace\"><span style=\"color:#000000;background-color:#ffffff;\">hello &amp;there</span><br></span>";
}
void TerminalCharacterDecoderTest::testHTMLDecoder()

Loading…
Cancel
Save