X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Flablgtkmathview%2Ftest%2Ftest.ml;h=6a54c3463dac5a085865682cd31985a205eb1adb;hb=0c6a5aadb1a7746681a8e26fc0b009f847c10557;hp=3561c551c3be3a4512f926efc83840d95eff8ed2;hpb=5c99f78f510b49bc1bcf95d430c98bb18826c63f;p=helm.git diff --git a/helm/DEVEL/lablgtkmathview/test/test.ml b/helm/DEVEL/lablgtkmathview/test/test.ml index 3561c551c..6a54c3463 100644 --- a/helm/DEVEL/lablgtkmathview/test/test.ml +++ b/helm/DEVEL/lablgtkmathview/test/test.ml @@ -88,7 +88,7 @@ let selection_changed mathview (element : Gdome.element option) = flush stdout ;; -let element_over mathview (element : Gdome.element option) _ = +let element_over mathview ((element : Gdome.element option), _, _, _) = print_endline ("element_over: " ^ (match element with None -> "element_over on nothing" @@ -150,7 +150,7 @@ let rec action mathview (element : Gdome.element) = end | None -> assert false (* every element has a parent *) -let click mathview (element : Gdome.element option) _ = +let click mathview ((element : Gdome.element option), _, _, _) = let module G = Gdome in match element with None -> print_string "CLICKED ON NOTHING\n" ; flush stdout @@ -177,7 +177,7 @@ let test_get_selection mathview () = let selection = match mathview#get_selection with Some element -> element#get_tagName#to_string - | None -> "no selection!" + | None -> "no selection! but there are " ^ (string_of_int (List.length mathview#get_selections)) ^ " multiple selections!" in print_string ("selection: " ^ selection ^ "\n") ; flush stdout