@@ -10,6 +10,7 @@ use crate::{Services, SlideApp};
1010
1111#[ test]
1212fn spelling_dialog_changes_and_ignores_words ( ) {
13+ let _gpu = crate :: gpu_lock:: gpu_lock ( ) ;
1314 let aff = "SET UTF-8\n TRY esianrtolcdugmphbyfvkwzxjq\n SFX S Y 1\n SFX S 0 s .\n " ;
1415 let dic = "6\n the/S\n slide/S\n quarter/S\n plan/S\n our\n for\n " ;
1516 deckcraft_engine:: spell:: install ( "en-US" , deckcraft_engine:: spell:: Dictionary :: parse ( aff. as_bytes ( ) , dic. as_bytes ( ) ) ) ;
@@ -49,6 +50,7 @@ fn spelling_dialog_changes_and_ignores_words() {
4950/// typed; the context menu's correction and Add to Dictionary clear them.
5051#[ test]
5152fn squiggles_mark_misspelt_words_in_the_background ( ) {
53+ let _gpu = crate :: gpu_lock:: gpu_lock ( ) ;
5254 let aff = "SET UTF-8\n TRY esianrtolcdugmphbyfvkwzxjq\n SFX S Y 1\n SFX S 0 s .\n " ;
5355 let dic = "7\n the/S\n slide/S\n quarter/S\n plan/S\n our\n for\n review\n " ;
5456 deckcraft_engine:: spell:: install ( "xx-SQ" , deckcraft_engine:: spell:: Dictionary :: parse ( aff. as_bytes ( ) , dic. as_bytes ( ) ) ) ;
@@ -115,6 +117,7 @@ fn squiggles_mark_misspelt_words_in_the_background() {
115117/// gets there a few milliseconds per frame.
116118#[ test]
117119fn squiggles_in_table_cells_and_notes_and_on_the_ui_thread ( ) {
120+ let _gpu = crate :: gpu_lock:: gpu_lock ( ) ;
118121 let aff = "SET UTF-8\n TRY esianrtolcdugmphbyfvkwzxjq\n SFX S Y 1\n SFX S 0 s .\n " ;
119122 let dic = "10\n the/S\n plan/S\n sales\n region/S\n total/S\n north\n south\n remember\n to\n show\n " ;
120123 deckcraft_engine:: spell:: install ( "xx-TB" , deckcraft_engine:: spell:: Dictionary :: parse ( aff. as_bytes ( ) , dic. as_bytes ( ) ) ) ;
@@ -192,6 +195,7 @@ fn right_click(h: &mut Harness<'_, SlideApp>, pos: egui::Pos2) {
192195/// dialog marks text and Do Not Check Spelling clears its squiggles.
193196#[ test]
194197fn notes_menu_language_dialog_and_repeated_words ( ) {
198+ let _gpu = crate :: gpu_lock:: gpu_lock ( ) ;
195199 use egui:: accesskit:: Role ;
196200 let aff = "SET UTF-8\n TRY esianrtolcdugmphbyfvkwzxjq\n " ;
197201 let dic = "6\n the\n plan\n remember\n is\n good\n work\n " ;
0 commit comments