]> OCCT Git - occt-copy.git/commitdiff
# update test cases
authorkgv <kgv@opencascade.com>
Sat, 21 Sep 2019 12:04:16 +0000 (15:04 +0300)
committerkgv <kgv@opencascade.com>
Sat, 21 Sep 2019 12:04:16 +0000 (15:04 +0300)
12 files changed:
tests/bugs/vis/bug25136
tests/bugs/vis/bug25459_coloredshape
tests/bugs/vis/bug25544_graytexture
tests/bugs/vis/bug25723
tests/bugs/vis/bug25723_1
tests/bugs/vis/bug26680
tests/bugs/vis/bug26719_1
tests/bugs/vis/bug27083
tests/bugs/vis/bug27836
tests/bugs/vis/bug28004
tests/bugs/vis/bug29791
tests/bugs/xde/bug25381

index 9a49851e4185b56e8e1d01be94dd6a1d05460bf5..10c214b38211cea5c3922311004e39494af12dab 100644 (file)
@@ -10,7 +10,7 @@ vaxo
 
 # create default color scale
 vcolorscale cs1 -demo -xy 0 0
-foreach {y aColor} {20 RED 60 DARKORANGE1 100 GOLD 140 GREENYELLOW 220 GREEN 250 SPRINGGREEN 290 CYAN 330 DODGERBLUE1 370 BLUE} { if { [vreadpixel 15 $y rgb name] != "$aColor" } { puts "Error: wrong color at $y" } }
+foreach {y aColor} {20 RED 60 DARKORANGE1 100 GOLD 140 GREENYELLOW 220 GREEN 250 MEDIUMSPRINGGREEN 290 CYAN 330 DODGERBLUE1 370 BLUE} { if { [vreadpixel 15 $y rgb name] != "$aColor" } { puts "Error: wrong color at $y" } }
 
 # reduce color scale range and number of intervals
 vcolorscale cs2 -range 0 20 5 -xy 60 0
@@ -26,5 +26,5 @@ vcolorscale cs4 -color 1 0.42 0.35 0.8
 vcolorscale cs4 -color 5 pink
 vcolorscale cs4 -label 6 "last"
 vcolorscale cs4 -title "My color scale"
-foreach {y aColor} {60 PINK 120 RED 200 GREEN 280 BLUE 350 MEDIUMPURPLE2} { if { [vreadpixel 215 $y rgb name] != "$aColor" } { puts "Error: wrong color at $y" } }
+foreach {y aColor} {60 PINK 120 RED 200 GREEN 280 BLUE 350 LIGHTSTEELBLUE3} { if { [vreadpixel 215 $y rgb name] != "$aColor" } { puts "Error: wrong color at $y" } }
 vdump ${imagedir}/${casename}.png
index b61ffe4030a60314229c5135dcb0185e69a37014..92f08d5c259aadd9251ff2e719625098b58a2fb9 100644 (file)
@@ -18,4 +18,4 @@ vaspects b -subshapes b_3 -setcolor RED
 vaspects b -setmaterial PLASTIC
 
 # validate results
-if { [vreadpixel 128 256 -rgb -name] != "BROWN"} { puts "Error: wrong Face color" }
+if { [vreadpixel 128 256 -rgb -name] != "RED4"} { puts "Error: wrong Face color" }
index 42794caf19fc10e14a36d5f5c7c749afa493c76c..e7c3574cf4b1d13c968e58a5db4f880dc2ab7a01 100644 (file)
@@ -19,5 +19,5 @@ vtexture b 1 -modulate off
 set aColorDec [vreadpixel 290 180 rgb name]
 vdump $imagedir/${casename}_decal.png
 
-if {"$aColorMod" != "GOLD4"}  { puts "Error: wrong color with modulation ON" }
-if {"$aColorDec" != "GRAY91"} { puts "Error: wrong color with modulation OFF" }
+if {"$aColorMod" != "GOLDENROD4"} { puts "Error: wrong color with modulation ON" }
+if {"$aColorDec" != "GRAY91"}     { puts "Error: wrong color with modulation OFF" }
index 886f7b748844790b1af4415e00aaf67131343011..350791245e6d17f5e10317852eeb41832eb42485 100644 (file)
@@ -24,6 +24,6 @@ verase
 
 # rotation
 vrotate -mouseStart 100 100 -mouseMove 300 300
-if {"[vreadpixel 220 50 rgb name]" != "DARKGOLDENROD3"} { puts "Error: Rotation is not correct" }
+if {"[vreadpixel 220 50 rgb name]" != "GOLDENROD3"} { puts "Error: Rotation is not correct" }
 
 vdump ${imagedir}/${casename}.png
index 27a0d59dfc94de2f5bb91c22fab6d58dd67a4857..ff7fc15b08ada93accd1c4d866165ed74e50e6b1 100644 (file)
@@ -41,6 +41,6 @@ vrotate -mouseStart ${x_mouse_start_coord} ${y_mouse_start_coord} -mouseMove ${x
 vselect 0 0
 
 # check color
-if {"[vreadpixel ${x_check_coord} ${y_check_coord} rgb name]" != "DARKGOLDENROD3"} { puts "Error : Rotation is not correct" }
+if {"[vreadpixel ${x_check_coord} ${y_check_coord} rgb name]" != "GOLDENROD3"} { puts "Error : Rotation is not correct" }
 
 vdump ${imagedir}/${test_image}.png
index 959708969218bd496fe35552efa9d46165f0228a..fd5baac2c256c0b2fc0c915e382fc1d4a925ea59 100644 (file)
@@ -1,5 +1,5 @@
 puts "============"
-puts "0026680: Visualization - Changed behavior of mesh visualization and selection in OMF sample""
+puts "0026680: Visualization - Changed behavior of mesh visualization and selection in OMF sample"
 puts "============"
 puts ""
 
@@ -17,7 +17,7 @@ vmoveto 0 0
 if {[vreadpixel 197 257 rgb name] != "BLUE"} { puts "ERROR: the object is not unhighlighted after dynamic highlight!" }
 
 vselect 200 200
-if {[vreadpixel 197 257 rgb name] != "GRAY86"} { puts "ERROR: presentation for selection highlight is wrong!" }
+if {[vreadpixel 197 257 rgb name] != "GRAY85"} { puts "ERROR: presentation for selection highlight is wrong!" }
 vselect 0 0
 if {[vreadpixel 197 257 rgb name] != "BLUE"} { puts "ERROR: the object is not unhighlighted after selection highlight!" }
 
index de4670fa4189b14d2985bd98d49a47435432ddf1..0553f689b902e0b875ee0dcc70ba6929af062590 100644 (file)
@@ -21,8 +21,8 @@ vviewparams -eye 0.7 -1.14 -0.17
 # with dynamic highlight color, check that the face is
 # not highlighted
 vmoveto 280 290
-if {[vreadpixel 297 297 -rgb -name] != "CYAN"}           { puts "ERROR: zoom persistent box is not highlighted dynamically!" }
-if {[vreadpixel 372 210 -rgb -name] != "DARKGOLDENROD3"} { puts "ERROR: the shape behind zoom persistent object was highlighted instead!" }
+if {[vreadpixel 297 297 -rgb -name] != "CYAN"}       { puts "ERROR: zoom persistent box is not highlighted dynamically!" }
+if {[vreadpixel 372 210 -rgb -name] != "GOLDENROD3"} { puts "ERROR: the shape behind zoom persistent object was highlighted instead!" }
 vdump ${imagedir}/${casename}_1.png
 
 vmoveto 0 0
index d52a22783dd4381e41f3defe3ec47e9976d37a3c..1faa5f9c93fbb26b1659d6cbb8c43f06256c33c3 100644 (file)
@@ -15,7 +15,7 @@ vfit
 vaspects b -setFaceBoundaryDraw 1 -setFaceBoundaryColor RED -setFaceBoundaryWidth 3
 vraytrace 1
 
-if {[vreadpixel 295 255 -rgb -name] != "SIENNA"} { puts "ERROR: the box with boundary aspect set is not shown in ray-tracing mode!" }
-if {[vreadpixel 105  58 -rgb -name] != "RED"}    { puts "ERROR: the box's boundaries are not shown in ray-tracing mode!" }
+if {[vreadpixel 295 255 -rgb -name] != "DARKGOLDENROD"} { puts "ERROR: the box with boundary aspect set is not shown in ray-tracing mode!" }
+if {[vreadpixel 105  58 -rgb -name] != "RED"}           { puts "ERROR: the box's boundaries are not shown in ray-tracing mode!" }
 
 vdump $imagedir/${casename}.png
index bd3a54ffe8d85b6c2553d6b6ece3fb20b5bb31b4..a2a33bbf4add6f02e827cc6fce5fb59375d89138 100644 (file)
@@ -19,6 +19,6 @@ vfit
 
 vviewparams -scale 6.66 -eye 48 43 -210 -at 50 45 -95
 
-if { [vreadpixel 100 300 -rgb -name] != "LIGHTSTEELBLUE3" } { puts "Error: gradient background is not displayed" }
+if { [vreadpixel 100 300 -rgb -name] != "GRAY74" } { puts "Error: gradient background is not displayed" }
 
 vdump $imagedir/${casename}.png
index 0b86f8dda6937edd8fe44d0bf8c672573812ff27..b3a8bca31f3127643443ebbfb85fa6af32deaa62 100644 (file)
@@ -11,8 +11,8 @@ vaxo
 # create default color scale
 vcolorscale cs1 -demo -smooth 0 -xy  0 0
 vcolorscale cs2 -demo -smooth 1 -xy 60 0
-foreach {y aColor} {20 RED 60 DARKORANGE1 100 GOLD 140 GREENYELLOW 220 GREEN 250 SPRINGGREEN 290 CYAN 330 DODGERBLUE1 370 BLUE} { if { [vreadpixel 15 $y rgb name] != "$aColor" } { puts "Error: wrong color at $y" } }
-foreach {y aColor} {20 RED 60 DARKORANGE1 100 GOLD 140 GREENYELLOW 220 GREEN 250 SPRINGGREEN 290 CYAN 330 DODGERBLUE1 370 BLUE} { if { [vreadpixel 15 $y rgb name] != "$aColor" } { puts "Error: wrong color at $y" } }
+foreach {y aColor} {20 RED 60 DARKORANGE1 100 GOLD 140 GREENYELLOW 220 GREEN 250 MEDIUMSPRINGGREEN 290 CYAN 330 DODGERBLUE1 370 BLUE} { if { [vreadpixel 15 $y rgb name] != "$aColor" } { puts "Error: wrong color at $y" } }
+foreach {y aColor} {20 RED 60 DARKORANGE1 100 GOLD 140 GREENYELLOW 220 GREEN 250 MEDIUMSPRINGGREEN 290 CYAN 330 DODGERBLUE1 370 BLUE} { if { [vreadpixel 15 $y rgb name] != "$aColor" } { puts "Error: wrong color at $y" } }
 
 # reduce color scale range and number of intervals
 vcolorscale cs3 -range 0 20 5 -font 16 -colors white 0 0 1 green 1 0 0 1 1 1 -labels start 1 2 3 4 end -smooth 0 -xy 120 0
@@ -22,8 +22,8 @@ foreach {y aColor} {40 WHITE 120 RED 200 GREEN 280 BLUE 350 WHITE} { if { [vread
 # color scale with overridden hue range
 vcolorscale cs5 -demo -smooth 0 -hueRange 300 130 -xy 240 0
 vcolorscale cs6 -demo -smooth 1 -hueRange 300 130 -xy 300 0
-foreach {y aColor} {20 GREEN 60 SPRINGGREEN       100 AQUAMARINE1 140 TURQUOISE1 180 DODGERBLUE1  220 BLUE       250 BLUE 290 BLUE 330 PURPLE1 370 MAGENTA}       { if { [vreadpixel 245 $y rgb name] != "$aColor" } { puts "Error: wrong color at $y" } }
-foreach {y aColor} {20 GREEN 60 MEDIUMSPRINGGREEN 100 AQUAMARINE1 140 TURQUOISE2 180 DEEPSKYBLUE2 220 ROYALBLUE1 250 BLUE 290 BLUE 330 PURPLE1 370 MEDIUMORCHID1} { if { [vreadpixel 315 $y rgb name] != "$aColor" } { puts "Error: wrong color at $y" } }
+foreach {y aColor} {20 GREEN 60 SPRINGGREEN       100 CYAN2 140 TURQUOISE2 180 DODGERBLUE1  220 BLUE        250 BLUE       290 BLUEVIOLET 330 PURPLE 370 MAGENTA}  { if { [vreadpixel 245 $y rgb name] != "$aColor" } { puts "Error: wrong color at $y" } }
+foreach {y aColor} {20 GREEN 60 MEDIUMSPRINGGREEN 100 CYAN2 140 TURQUOISE2 180 DEEPSKYBLUE2 220 DODGERBLUE2 250 ROYALBLUE2 290 PURPLE3    330 PURPLE 370 MAGENTA2} { if { [vreadpixel 315 $y rgb name] != "$aColor" } { puts "Error: wrong color at $y" } }
 
 # free labels
 vcolorscale cs7 -demo -smooth 0 -colorRange BLACK WHITE -xy 360 0 -freeLabels 3 l1 l2 l3
index 40fc1a2eb6f6ff4f45f34c4a289df6f7986ce4d2..fd3cb5bf27addb952e4d4215536e736ffbbc17dd 100644 (file)
@@ -18,8 +18,8 @@ vfit
 vmoveto 150 200
 vstate -entities
 vselect 150 200
-if { [vreadpixel 150 200 rgb name] != "BLACK"     } { puts "Error: object is not clipped" }
-if { [vreadpixel 350 200 rgb name] != "GOLDENROD" } { puts "Error: object should NOT be selected" }
+if { [vreadpixel 150 200 rgb name] != "BLACK" } { puts "Error: object is not clipped" }
+if { [vreadpixel 350 200 rgb name] != "PERU"  } { puts "Error: object should NOT be selected" }
 vdump $imagedir/${casename}_1.png
 
 # depth range starts behinds the picking ray
@@ -27,7 +27,7 @@ vviewparams -scale 14.7435 -proj 0.193921 -0.891229 0.410007 -up -0.0205984 0.41
 vmoveto 150 200
 vstate -entities
 vselect 150 200
-if { [vreadpixel 150 200 rgb name] != "BLACK"          } { puts "Error: object is not clipped" }
-if { [vreadpixel 300 200 rgb name] != "DARKGOLDENROD3" } { puts "Error: object should NOT be selected" }
+if { [vreadpixel 150 200 rgb name] != "BLACK"      } { puts "Error: object is not clipped" }
+if { [vreadpixel 300 200 rgb name] != "GOLDENROD3" } { puts "Error: object should NOT be selected" }
 
 vdump $imagedir/${casename}_2.png
index 2d8ac7e7482d748678874bcb094cc3bcb39d7333..be30372a52d79f6b4fd615825d06930c1f02a732 100644 (file)
@@ -14,7 +14,7 @@ vselprops dynHighlight -dispMode -1
 vmoveto 300 200
 if { [vreadpixel 250 200 rgb name] != "CYAN2" } { puts "Error: object is NOT picked" }
 vmoveto 200 250
-if { [vreadpixel 200 250 rgb name] != "BLACK" { puts "Error: hidden part is displayed" }
-if { [vreadpixel 250 200 rgb name] != "BROWN" } { puts "Error: object is picked by hidden part" }
+if { [vreadpixel 200 250 rgb name] != "BLACK" } { puts "Error: hidden part is displayed" }
+if { [vreadpixel 250 200 rgb name] != "RED4"  } { puts "Error: object is picked by hidden part" }
 
 vdump ${imagedir}/${casename}.png