Skip to content

Commit

Permalink
Testing for #2
Browse files Browse the repository at this point in the history
  • Loading branch information
shichen85 committed Dec 2, 2024
1 parent 3ca0ce8 commit 9e8b3e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 27 deletions.
13 changes: 1 addition & 12 deletions Ganary/objects/grc_o_video_end_event_missing/Create_0.gml
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
event_inherited()
if (os_type == os_windows) {
var device_info = os_get_info();
var device_name = device_info[? "video_adapter_description"];
if (device_name == "Microsoft Basic Render Driver"){
show_debug_message("Running in GitHub Actions. Will complete the test in 2 seconds.");
call_later(2, time_source_units_seconds, function(){
olympus_test_resolve();
instance_destroy();
});
}
}
event_inherited()
14 changes: 1 addition & 13 deletions Ganary/objects/grc_o_video_function_test/Create_0.gml
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
event_inherited()
seeked = false;
seeked_position = 500;

if (os_type == os_windows) {
var device_info = os_get_info();
var device_name = device_info[? "video_adapter_description"];
if (device_name == "Microsoft Basic Render Driver"){
show_debug_message("Running in GitHub Actions. Will complete the test in 2 seconds.");
call_later(2, time_source_units_seconds, function(){
olympus_test_resolve();
instance_destroy();
});
}
}
seeked_position = 500;
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ function grc_register_async_function_tests(){
grc_expect_eq(video_format_rgba, video_get_format(), "The format should be rgba");
grc_expect_eq(false, video_is_looping(), "the video should not be looping.");
return grc_instance_create(grc_o_video_function_test);
});
}).only();

olympus_add_async_test("video_end_event_missing", function(){
return grc_instance_create(grc_o_video_end_event_missing);
});
}).only();

olympus_add_async_test("video_open_block", function(){
return grc_instance_create(grc_o_video_open_block);
Expand Down

0 comments on commit 9e8b3e3

Please sign in to comment.