Make wxUIActionSimulator works more reliably on GTK/X11
Add wxXSync class which adds delays between the synthesized events sufficient for them to be processed by the higher layers (X, GTK). This makes it possible to run the UI tests by default with wxGTK. Closes https://github.com/wxWidgets/wxWidgets/pull/1845
This commit is contained in:
		
				
					committed by
					
						 Vadim Zeitlin
						Vadim Zeitlin
					
				
			
			
				
	
			
			
			
						parent
						
							fb5c13ed00
						
					
				
				
					commit
					59ad9f46e6
				
			| @@ -251,7 +251,7 @@ void ListBaseTestCase::KeyDown() | ||||
|  | ||||
|     list->SetFocus(); | ||||
|     wxYield(); | ||||
|     sim.Text("aAbB"); | ||||
|     sim.Text("aAbB"); // 4 letters + 2 shift mods. | ||||
|     wxYield(); | ||||
|  | ||||
|     CPPUNIT_ASSERT_EQUAL(6, keydown.GetCount()); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user