MCPcopy Create free account
hub / github.com/daisy/MathCAT / zoom_in

Function zoom_in

src/navigate.rs:867–881  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

865
866 #[test]
867 fn zoom_in() -> Result<()> {
868 let mathml_str = "<math id='math'><mfrac id='mfrac'>
869 <msup id='msup'><mi id='base'>b</mi><mn id='exp'>2</mn></msup>
870 <mi id='denom'>d</mi>
871 </mfrac></math>";
872 init_default_prefs(mathml_str, "Enhanced");
873 return MATHML_INSTANCE.with(|package_instance| {
874 let package_instance = package_instance.borrow();
875 let mathml = get_element(&*package_instance);
876 test_command("ZoomIn", mathml, "msup");
877 test_command("ZoomIn", mathml, "base");
878 test_command("ZoomIn", mathml, "base");
879 return Ok( () );
880 });
881 }
882
883 #[test]
884 fn test_init_navigate_move_right() -> Result<()> {

Callers

nothing calls this directly

Calls 3

init_default_prefsFunction · 0.85
get_elementFunction · 0.85
test_commandFunction · 0.85

Tested by

no test coverage detected