validate: Add a scenario that switches state many intensively

+ Use it by default in the launcher tests
This commit is contained in:
Thibault Saunier 2014-05-07 13:14:51 +02:00
parent 384686a7f7
commit dae0c4ef81
3 changed files with 43 additions and 0 deletions

View file

@ -18,6 +18,7 @@ scenarios_DATA = simple_seeks.scenario \
switch_subtitle_track.scenario\ switch_subtitle_track.scenario\
switch_subtitle_track_while_paused.scenario\ switch_subtitle_track_while_paused.scenario\
disable_subtitle_track_while_paused.scenario\ disable_subtitle_track_while_paused.scenario\
change_state_intensive.scenario\
switch_audio_track.scenario switch_audio_track.scenario
EXTRA_DIST = simple_seeks.scenario \ EXTRA_DIST = simple_seeks.scenario \
@ -39,4 +40,5 @@ EXTRA_DIST = simple_seeks.scenario \
switch_subtitle_track.scenario\ switch_subtitle_track.scenario\
switch_subtitle_track_while_paused.scenario\ switch_subtitle_track_while_paused.scenario\
disable_subtitle_track_while_paused.scenario\ disable_subtitle_track_while_paused.scenario\
change_state_intensive.scenario\
switch_audio_track.scenario switch_audio_track.scenario

View file

@ -0,0 +1,40 @@
description, duration=0, summary="Set state to NULL->PLAYING->NULL 20 times"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
set-state, state="null"
set-state, state="playing"
stop;

View file

@ -168,6 +168,7 @@ G_V_SCENARIOS = ["play_15s",
"switch_subtitle_track", "switch_subtitle_track",
"switch_subtitle_track_while_paused", "switch_subtitle_track_while_paused",
"disable_subtitle_track_while_paused", "disable_subtitle_track_while_paused",
"change_state_intensive",
"scrub_forward_seeking"] "scrub_forward_seeking"]
G_V_PROTOCOL_VIDEO_RESTRICTION_CAPS = { G_V_PROTOCOL_VIDEO_RESTRICTION_CAPS = {