mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 19:01:15 +00:00
* Tests/gui/NSView/NSView_frame_bounds.m: Add some more tests
of setBoundsSize:. They are currently failing (but pass on OS X). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32990 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d5c2d502e2
commit
c241019926
2 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2011-05-05 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Tests/gui/NSView/NSView_frame_bounds.m: Add some more tests
|
||||
of setBoundsSize:. They are currently failing (but pass on
|
||||
OS X).
|
||||
|
||||
2011-05-04 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Images: Add a few more high-res images (arrows)
|
||||
|
|
|
@ -89,6 +89,16 @@ int main(int argc, char **argv)
|
|||
[view1 setBoundsSize: NSMakeSize(100, 100)];
|
||||
passed = CHECK(view1, NSMakeRect(20,20,100,100),NSMakeRect(-50.7107,20,141.421,141.421)) && passed;
|
||||
|
||||
[view1 setBoundsSize: NSMakeSize(10, 10)];
|
||||
passed = CHECK(view1, NSMakeRect(20,20,100,100),NSMakeRect(-5.07107,2,14.1421,14.1421)) && passed;
|
||||
|
||||
[view1 setBoundsRotation: 0.0];
|
||||
passed = CHECK(view1, NSMakeRect(20,20,100,100),NSMakeRect(2.82843, 0, 10, 10)) && passed;
|
||||
|
||||
[view1 setBoundsSize: NSMakeSize(1, 1)];
|
||||
passed = CHECK(view1, NSMakeRect(20,20,100,100),NSMakeRect(0.282843, 0, 1, 1)) && passed;
|
||||
|
||||
[view1 setBoundsRotation: -45.0];
|
||||
[view1 setBounds: NSMakeRect(10, 10, 100, 100)];
|
||||
passed = CHECK(view1, NSMakeRect(20,20,100,100),NSMakeRect(-60.7107,10,141.421,141.421)) && passed;
|
||||
|
||||
|
|
Loading…
Reference in a new issue