summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVal Doroshchuk <valentyn.doroshchuk@qt.io>2020-09-23 15:19:39 +0200
committerVal Doroshchuk <valentyn.doroshchuk@qt.io>2020-09-23 15:21:56 +0200
commit3a24a182ad406de871a82a7c98cfc836a93c069d (patch)
tree6e61945cb49f6c8737cdd760980d9723d3f1e1c2
parent71607f52f4f20aa9a192c25eb57b8b467a767fea (diff)
downloadqtmultimedia-3a24a182ad406de871a82a7c98cfc836a93c069d.tar.gz
Fix tst_QDeclarativeAudio::videoOutput to check QJSValue values instead
Change-Id: I159af0c7e2574455bc7c7b1343251566b7f2e5f2 Reviewed-by: Val Doroshchuk <valentyn.doroshchuk@qt.io>
-rw-r--r--tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp b/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp
index ded188d72..adcd9cc38 100644
--- a/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp
+++ b/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp
@@ -1246,7 +1246,9 @@ void tst_QDeclarativeAudio::videoOutput()
QVariant surfaces;
surfaces.setValue(jsArray);
audio.setVideoOutput(surfaces);
- QCOMPARE(audio.videoOutput(), surfaces);
+
+ auto arr = audio.videoOutput().value<QJSValue>();
+ QVERIFY(arr.equals(jsArray));
QCOMPARE(spy.count(), 2);
}