X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=tests%2Fbugs%2Fvis%2Fbug25775;h=32937d05d91ad819a30aab50c506727627bb0eaa;hb=aaf8d6a98d5aa23513bbb7f0e8528764e1e0ebb4;hpb=b008226203ed49193c60aed10c2846944d77bf9c diff --git a/tests/bugs/vis/bug25775 b/tests/bugs/vis/bug25775 index f1b7aba15c..32937d05d9 100644 --- a/tests/bugs/vis/bug25775 +++ b/tests/bugs/vis/bug25775 @@ -1,25 +1,16 @@ puts "========" -puts "OCC25775" +puts "0025775: Default Gradient Backgound in V3d_Viewer has no effect in new created V3d_View" puts "========" puts "" -################################################################ -# "Default Gradient Backgound" in V3d_Viewer has no effect in new created V3d_View. -################################################################ -pload ALL +pload VISUALIZATION vbackground -default -gradient BLACK GRAY25 -gradientMode HORIZONTAL vinit View1 w=400 h=400 -if { [checkcolor 399 100 0.25 0.25 0.25] != 1 } { - puts "Error: bug with default gradient color is reproduced." -} +if { [vreadpixel 399 100 -rgb -name] != "GRAY25" } { puts "Error: bug with default gradient color is reproduced." } vinit View2 w=400 h=400 -if { [checkcolor 399 100 0.25 0.25 0.25] != 1 } { - puts "Error: bug with default gradient color is reproduced." -} +if { [vreadpixel 399 100 -rgb -name] != "GRAY25" } { puts "Error: bug with default gradient color is reproduced." } -vbackground -default -color 0.501961 0.501961 0.501961 +vbackground -default -color GRAY50 vinit View3 -if { [checkcolor 100 100 0.5 0.5 0.5] != 1 } { - puts "Error: bug with default background color is reproduced." -} +if { [vreadpixel 100 100 -rgb -name] != "GRAY50" } { puts "Error: bug with default background color is reproduced." }