Commit a9526c3
committed
Simplify GC.drawImage() test with applied transformation
The GC test case for drawing images with a transformation applied has an
unnecessarily complex assertion. It uses GC's copyArea operation to
extract certain parts of a drawing with different transformations
applied and compares them with each other. This makes the test
implicitly rely on a proper implementation of copyArea(), which should
actually be tested independently.
This change adapts the test to just create a reference image without any
transformations and the actual image created with transforms applied.1 parent 6ad4870 commit a9526c3
1 file changed
Lines changed: 14 additions & 15 deletions
File tree
- tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit
Lines changed: 14 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | | - | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
408 | 410 | | |
409 | 411 | | |
410 | 412 | | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
411 | 421 | | |
412 | 422 | | |
413 | 423 | | |
414 | | - | |
415 | | - | |
416 | 424 | | |
417 | 425 | | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | 426 | | |
424 | | - | |
| 427 | + | |
425 | 428 | | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
| 429 | + | |
| 430 | + | |
432 | 431 | | |
433 | 432 | | |
434 | 433 | | |
| |||
0 commit comments