diff options
author | Andres Gomez <agomez@igalia.com> | 2014-07-30 17:34:16 +0300 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@digia.com> | 2014-09-09 13:46:31 +0200 |
commit | 973ae5e0f60d335d1b22f9a2418fe50839d50322 (patch) | |
tree | 6a91a014121c9c942c15f8f94d44542a43f91edc /tests/auto/unit/qmediaplaylist/testdata | |
parent | 18d6560db15d8f65b221717b9a769fd0f00cec35 (diff) |
QMediaNetworkPlaylistProvider: Upon error parsing, stop parsing.
When an error is found parsing a playlist, stop
parsing. This will also prevent the emission of
the "loaded" signal when the parser finishes.
Task-number: QTBUG-40513
Change-Id: Ia814864d0d546806219993f0b727761d5d4e7903
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
Diffstat (limited to 'tests/auto/unit/qmediaplaylist/testdata')
-rw-r--r-- | tests/auto/unit/qmediaplaylist/testdata/test.pls | 10 | ||||
-rw-r--r-- | tests/auto/unit/qmediaplaylist/testdata/totem-pl-example.pls | 5 | ||||
-rw-r--r-- | tests/auto/unit/qmediaplaylist/testdata/trash.pls | 2 |
3 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/unit/qmediaplaylist/testdata/test.pls b/tests/auto/unit/qmediaplaylist/testdata/test.pls new file mode 100644 index 000000000..1b66c3abe --- /dev/null +++ b/tests/auto/unit/qmediaplaylist/testdata/test.pls @@ -0,0 +1,10 @@ +[playlist] + +File1=http://test.host/path +Title1=First +Length1=-1 +File2= http://test.host/path +Title2=Second +Length2=-1 + +NumberOfEntries=2 diff --git a/tests/auto/unit/qmediaplaylist/testdata/totem-pl-example.pls b/tests/auto/unit/qmediaplaylist/testdata/totem-pl-example.pls new file mode 100644 index 000000000..385fe2a30 --- /dev/null +++ b/tests/auto/unit/qmediaplaylist/testdata/totem-pl-example.pls @@ -0,0 +1,5 @@ +[playlist] +X-GNOME-Title=totem-pl-file-example +NumberOfEntries=1 +File1=http://test.host/path +Title1=Silence diff --git a/tests/auto/unit/qmediaplaylist/testdata/trash.pls b/tests/auto/unit/qmediaplaylist/testdata/trash.pls new file mode 100644 index 000000000..639c22b0c --- /dev/null +++ b/tests/auto/unit/qmediaplaylist/testdata/trash.pls @@ -0,0 +1,2 @@ +[playlist] +NumberOfEntries=100 |