diff options
Diffstat (limited to 'tests/tst_qml/tst_quickstreamer.qml')
-rw-r--r-- | tests/tst_qml/tst_quickstreamer.qml | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/tests/tst_qml/tst_quickstreamer.qml b/tests/tst_qml/tst_quickstreamer.qml index 6ce8dc5..acf32c5 100644 --- a/tests/tst_qml/tst_quickstreamer.qml +++ b/tests/tst_qml/tst_quickstreamer.qml @@ -1,4 +1,3 @@ -import QtQuick 2.0 import QtTest 1.0 import QuickStreamer 1.0 @@ -18,6 +17,16 @@ TestCase { } } + AudioTestSrc { + id: audioTestSourceByIdentifier + wave: AudioTestSrcWave.WhiteNoise + } + + AudioTestSrc { + id: audioTestSourceByString + wave: "VioletNoise" + } + function test_nameProperty() { compare(pipeline.name, "pipeline0") @@ -27,8 +36,6 @@ TestCase { function test_children() { - console.log(pipeline.children) - compare(pipeline.children.length, 2) compare(pipeline.children[0], appSource) compare(pipeline.children[1], appSink) @@ -36,4 +43,26 @@ TestCase { compare(appSink.children, undefined) compare(appSource.children, undefined) } + + function test_enums() + { + compare(AudioTestSrcWave.Sine, 0) + compare(AudioTestSrcWave.Square, 1) + compare(AudioTestSrcWave.Saw, 2) + compare(AudioTestSrcWave.Triangle, 3) + compare(AudioTestSrcWave.Silence, 4) + compare(AudioTestSrcWave.WhiteNoise, 5) + compare(AudioTestSrcWave.PinkNoise, 6) + compare(AudioTestSrcWave.SineTable, 7) + compare(AudioTestSrcWave.Ticks, 8) + compare(AudioTestSrcWave.GaussianNoise, 9) + compare(AudioTestSrcWave.RedNoise, 10) + compare(AudioTestSrcWave.BlueNoise, 11) + compare(AudioTestSrcWave.VioletNoise, 12) + + compare(audioTestSourceByIdentifier.wave, 5) + compare(audioTestSourceByString.wave, 12) + + compare(ElementState.Playing, 4) + } } |