mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0029436: Data Exchange - Extend Expand compounds functionality.
Extend permissions for expand in ShapeTool Fix processing of subshapes Fix misprints Add test cases
This commit is contained in:
27
tests/bugs/xde/bug29436_1
Normal file
27
tests/bugs/xde/bug29436_1
Normal file
@@ -0,0 +1,27 @@
|
||||
puts "=========="
|
||||
puts "OCC29436"
|
||||
puts "=========="
|
||||
puts ""
|
||||
########################################
|
||||
# Extend Expand compounds functionality
|
||||
########################################
|
||||
pload ALL
|
||||
|
||||
XOpen [locate_data_file bug29436_compound.xbf] D
|
||||
XExpand D 1 0:1:1:1
|
||||
|
||||
# check colors
|
||||
set color [XGetShapeColor D 0:1:1:2]
|
||||
if {$color != "GREEN"} {
|
||||
puts "Error: metadata lost during expand"
|
||||
}
|
||||
set color [XGetShapeColor D 0:1:1:3]
|
||||
if {$color != "GREEN"} {
|
||||
puts "Error: metadata lost during expand"
|
||||
}
|
||||
set color [XGetShapeColor D 0:1:1:2:1]
|
||||
if {$color != "CYAN1"} {
|
||||
puts "Error: metadata lost during expand"
|
||||
}
|
||||
|
||||
Close D
|
27
tests/bugs/xde/bug29436_2
Normal file
27
tests/bugs/xde/bug29436_2
Normal file
@@ -0,0 +1,27 @@
|
||||
puts "=========="
|
||||
puts "OCC29436"
|
||||
puts "=========="
|
||||
puts ""
|
||||
########################################
|
||||
# Extend Expand compounds functionality
|
||||
########################################
|
||||
pload ALL
|
||||
|
||||
XOpen [locate_data_file bug29436_compsolid.xbf] D
|
||||
XExpand D 1 0:1:1:1
|
||||
|
||||
# check colors
|
||||
set color [XGetShapeColor D 0:1:1:2]
|
||||
if {$color != "RED"} {
|
||||
puts "Error: metadata lost during expand"
|
||||
}
|
||||
set color [XGetShapeColor D 0:1:1:4]
|
||||
if {$color != "RED"} {
|
||||
puts "Error: metadata lost during expand"
|
||||
}
|
||||
set color [XGetShapeColor D 0:1:1:6]
|
||||
if {$color != "RED"} {
|
||||
puts "Error: metadata lost during expand"
|
||||
}
|
||||
|
||||
Close D
|
23
tests/bugs/xde/bug29436_3
Normal file
23
tests/bugs/xde/bug29436_3
Normal file
@@ -0,0 +1,23 @@
|
||||
puts "=========="
|
||||
puts "OCC29436"
|
||||
puts "=========="
|
||||
puts ""
|
||||
########################################
|
||||
# Extend Expand compounds functionality
|
||||
########################################
|
||||
pload ALL
|
||||
|
||||
XOpen [locate_data_file bug29436_shell.xbf] D
|
||||
XExpand D 1 0:1:1:1
|
||||
|
||||
# check colors
|
||||
set color [XGetShapeColor D 0:1:1:2:1 c]
|
||||
if {$color != "RED"} {
|
||||
puts "Error: metadata lost during expand"
|
||||
}
|
||||
set color [XGetShapeColor D 0:1:1:4:1 c]
|
||||
if {$color != "RED"} {
|
||||
puts "Error: metadata lost during expand"
|
||||
}
|
||||
|
||||
Close D
|
27
tests/bugs/xde/bug29436_4
Normal file
27
tests/bugs/xde/bug29436_4
Normal file
@@ -0,0 +1,27 @@
|
||||
puts "=========="
|
||||
puts "OCC29436"
|
||||
puts "=========="
|
||||
puts ""
|
||||
########################################
|
||||
# Extend Expand compounds functionality
|
||||
########################################
|
||||
pload ALL
|
||||
|
||||
XOpen [locate_data_file bug29436_wire.xbf] D
|
||||
XExpand D 1 0:1:1:1
|
||||
|
||||
# check colors
|
||||
set color [XGetShapeColor D 0:1:1:2 c]
|
||||
if {$color != "RED"} {
|
||||
puts "Error: metadata lost during expand"
|
||||
}
|
||||
set color [XGetShapeColor D 0:1:1:2:1]
|
||||
if {$color != "RED"} {
|
||||
puts "Error: metadata lost during expand"
|
||||
}
|
||||
set color [XGetShapeColor D 0:1:1:3:1]
|
||||
if {$color != "RED"} {
|
||||
puts "Error: metadata lost during expand"
|
||||
}
|
||||
|
||||
#Close D
|
Reference in New Issue
Block a user