Fix TextWebChannel::testInvokeMethodConversion with latest qtbase


QVariant's comparison operator has been changed to no longer perform
type conversions, except for primitive numerical types, which causes
the test to fail in the QJsonValue case.

The comparison

  QCOMPARE(retval, args.at(0).toVariant())

fails because retval is

  QVariant(QJsonValue, QJsonValue(double, 1000)),

while args.at(0).toVariant() gives

  QVariant(qlonglong, 1000).

Change args.at(0).toVariant() to QVariant(args.at(0)) to ensure that
both QVariants contain a QJsonValue.

Change-Id: I5c4102645b5c705ca5b68dc7d308f68c6630b1d5
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
commit742132bb72514e16ad12ecb4e6b017fff25b697c
parentdf1e1400b8b46909ac1cfd3f9245d1d5ed43fbb7
authorJüri Valdmann <juri.valdmann@qt.io>
committerJüri Valdmann <juri.valdmann@qt.io>
commit timeWed, 9 Sep 2020 13:05:55 +0200