ESCInterpreterTest

Extends: GdUnitTestSuite

Description

Constants

MARK_SCENE

const MARK_SCENE = <Object>

SIMPLE_CHOOSER_SCENE

const SIMPLE_CHOOSER_SCENE = <Object>

Members

Methods


before

func before() -> void

after

func after() -> void

test_execute_block_restores_scope_after_break

func test_execute_block_restores_scope_after_break() -> void

test_invalid_numeric_comparison_does_not_succeed_silently

func test_invalid_numeric_comparison_does_not_succeed_silently() -> void

test_print_with_zero_arguments_does_not_native_crash

func test_print_with_zero_arguments_does_not_native_crash() -> void

test_print_with_two_arguments_does_not_native_crash

func test_print_with_two_arguments_does_not_native_crash() -> void

test_stop_in_nested_block_prevents_later_statements

func test_stop_in_nested_block_prevents_later_statements() -> void

test_done_in_nested_dialog_block_prevents_later_statements

func test_done_in_nested_dialog_block_prevents_later_statements() -> void

test_break_one_returns_to_parent_dialog_level

func test_break_one_returns_to_parent_dialog_level() -> void

test_done_exits_entire_nested_dialog_tree

func test_done_exits_entire_nested_dialog_tree() -> void

test_dialog_followup_runs_after_all_options_are_exhausted

func test_dialog_followup_runs_after_all_options_are_exhausted() -> void

test_break_two_exits_two_dialog_levels

func test_break_two_exits_two_dialog_levels() -> void

test_stop_in_dialog_option_prevents_later_event_statements

func test_stop_in_dialog_option_prevents_later_event_statements() -> void

test_delayed_command_in_dialog_option_preserves_ordering

func test_delayed_command_in_dialog_option_preserves_ordering() -> void

test_delayed_command_in_loop_preserves_ordering

func test_delayed_command_in_loop_preserves_ordering() -> void

test_interrupting_delayed_command_stops_event_progress

func test_interrupting_delayed_command_stops_event_progress() -> void

test_interrupting_delayed_command_in_dialog_stops_event_progress

func test_interrupting_delayed_command_in_dialog_stops_event_progress() -> void

test_interrupting_delayed_command_stops_multi_iteration_loop

func test_interrupting_delayed_command_stops_multi_iteration_loop() -> void

test_invalid_command_does_not_continue_event

func test_invalid_command_does_not_continue_event() -> void

test_invalid_command_in_dialog_does_not_continue_event

func test_invalid_command_in_dialog_does_not_continue_event() -> void

test_invalid_command_in_loop_does_not_continue_event

func test_invalid_command_in_loop_does_not_continue_event() -> void

test_script_preserves_multi_target_use_events_without_creating_untargeted_use

func test_script_preserves_multi_target_use_events_without_creating_untargeted_use() -> void

test_dialog_option_scope_shadowing_restores_outer_local

func test_dialog_option_scope_shadowing_restores_outer_local() -> void

test_interrupting_background_channel_does_not_interrupt_front_channel

func test_interrupting_background_channel_does_not_interrupt_front_channel() -> void

test_concurrent_channels_complete_without_interrupting_each_other

func test_concurrent_channels_complete_without_interrupting_each_other() -> void

test_interrupting_channel_clears_queued_successor_events

func test_interrupting_channel_clears_queued_successor_events() -> void

test_concurrent_channels_do_not_block_other_channel_queues

func test_concurrent_channels_do_not_block_other_channel_queues() -> void

test_global_interrupt_stops_running_channels_and_clears_queues

func test_global_interrupt_stops_running_channels_and_clears_queues() -> void

test_queue_event_block_waits_for_correct_background_event_under_concurrency

func test_queue_event_block_waits_for_correct_background_event_under_concurrency() -> void

test_queue_event_block_waits_for_correct_front_event_under_concurrency

func test_queue_event_block_waits_for_correct_front_event_under_concurrency() -> void

test_sequential_front_events_preserve_globals_between_runtime_interpreters

func test_sequential_front_events_preserve_globals_between_runtime_interpreters() -> void

test_background_event_sees_globals_written_by_previous_front_event

func test_background_event_sees_globals_written_by_previous_front_event() -> void

test_running_interpreter_sees_new_global_defined_by_other_channel

func test_running_interpreter_sees_new_global_defined_by_other_channel() -> void

test_queue_background_event_allows_consecutive_duplicate_queue_entries

func test_queue_background_event_allows_consecutive_duplicate_queue_entries() -> void

test_queue_background_event_allows_same_event_after_current_run_starts

func test_queue_background_event_allows_same_event_after_current_run_starts() -> void

test_global_interrupt_preserves_exception_events

func test_global_interrupt_preserves_exception_events() -> void

test_scheduled_front_event_runs_after_current_front_event_while_background_is_busy

func test_scheduled_front_event_runs_after_current_front_event_while_background_is_busy() -> void

test_global_interrupt_preserves_scheduled_events_before_dispatch

func test_global_interrupt_preserves_scheduled_events_before_dispatch() -> void

test_clear_event_queue_preserves_scheduled_events

func test_clear_event_queue_preserves_scheduled_events() -> void

test_interrupt_channel_does_not_affect_still_scheduled_front_events

func test_interrupt_channel_does_not_affect_still_scheduled_front_events() -> void

test_immediate_command_preserves_statement_ordering

func test_immediate_command_preserves_statement_ordering() -> void

test_delayed_command_preserves_statement_ordering

func test_delayed_command_preserves_statement_ordering() -> void

test_set_animations_updates_persisted_player_resource_on_repeat_calls

func test_set_animations_updates_persisted_player_resource_on_repeat_calls() -> void

test_set_speed_rejects_negative_values_but_accepts_zero

func test_set_speed_rejects_negative_values_but_accepts_zero() -> void

test_trigger_actions_select_targeted_events_for_activating_object

func test_trigger_actions_select_targeted_events_for_activating_object() -> void

test_trigger_actions_fall_back_to_targetless_events

func test_trigger_actions_fall_back_to_targetless_events() -> void

test_dialog_start_args_are_passed_to_runtime_dialog

func test_dialog_start_args_are_passed_to_runtime_dialog() -> void

test_dialog_timeout_option_uses_authored_index_after_filtering

func test_dialog_timeout_option_uses_authored_index_after_filtering() -> void

test_dialog_timeout_option_hidden_after_filtering_is_not_available

func test_dialog_timeout_option_hidden_after_filtering_is_not_available() -> void

test_simple_chooser_does_not_start_timer_when_timeout_default_is_hidden

func test_simple_chooser_does_not_start_timer_when_timeout_default_is_hidden() -> void

test_simple_chooser_starts_timer_when_timeout_default_is_visible

func test_simple_chooser_starts_timer_when_timeout_default_is_visible() -> void

test_dialog_start_invalid_avatar_type_returns_error

func test_dialog_start_invalid_avatar_type_returns_error() -> void

test_dialog_start_invalid_timeout_type_returns_error

func test_dialog_start_invalid_timeout_type_returns_error() -> void

test_dialog_option_translation_key_is_passed_to_runtime_dialog

func test_dialog_option_translation_key_is_passed_to_runtime_dialog() -> void

test_dialog_start_invalid_timeout_option_type_returns_error

func test_dialog_start_invalid_timeout_option_type_returns_error() -> void

test_dialog_start_invalid_timeout_option_negative_returns_error

func test_dialog_start_invalid_timeout_option_negative_returns_error() -> void

test_dialog_option_translation_key_beats_legacy_prefix_fallback

func test_dialog_option_translation_key_beats_legacy_prefix_fallback() -> void

test_dialog_option_translation_key_with_condition_survives_runtime_filtering

func test_dialog_option_translation_key_with_condition_survives_runtime_filtering() -> void

test_dialog_option_translation_key_with_expression_preserves_key_and_value

func test_dialog_option_translation_key_with_expression_preserves_key_and_value() -> void

test_compiler_rejects_exact_duplicate_event_targets

func test_compiler_rejects_exact_duplicate_event_targets() -> void