From 4b7b680e3d0edf93fef55b0315ed37c31d501a9a Mon Sep 17 00:00:00 2001
From: Michael Bruning <michael.bruning@qt.io>
Date: Tue, 5 Jul 2016 12:11:30 +0200
Subject: [PATCH] Fix call to tryCompare in tst_download.qml

tryCompare insists on getting the name of the property to be checked as
a string.

Change-Id: Ic879281305e3055eb8e0ff2092a74b6dba06f87a
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
---
 tests/auto/quick/qmltests/data/tst_download.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/auto/quick/qmltests/data/tst_download.qml b/tests/auto/quick/qmltests/data/tst_download.qml
index 7d1e24b4d..e4e93b993 100644
--- a/tests/auto/quick/qmltests/data/tst_download.qml
+++ b/tests/auto/quick/qmltests/data/tst_download.qml
@@ -114,7 +114,7 @@ TestWebEngineView {
             compare(downloadState[1], WebEngineDownloadItem.DownloadInProgress)
             downloadFinishedSpy.wait()
             compare(totalBytes, receivedBytes)
-            tryCompare(downloadState, 2, WebEngineDownloadItem.DownloadCompleted)
+            tryCompare(downloadState, "2", WebEngineDownloadItem.DownloadCompleted)
         }
 
         function test_downloadCancelled() {
-- 
GitLab