()
| 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<()> { |
nothing calls this directly
no test coverage detected