void tst_QXmppMessage::testAmp() { const QByteArray xml("<message type=\"normal\">" "<body>hi!</body>" "<amp status=\"notify\" xmlns=\"http://jabber.org/protocol/amp' to='13323@u1\">" "<rule action=\"notify\" condition=\"deliver\" value=\"stored\"/>" "<rule action=\"notify\" condition=\"deliver\" value=\"none\"/>" "</amp>" "</message>"); QXmppMessage message; parsePacket(message, xml); QCOMPARE(message.isAmp(), true); // QCOMPARE(message.xhtml(), QLatin1String("<p style=\"font-weight:bold\">hi!</p>")); serializePacket(message, xml); }