Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: swt-initiative31/prototype-skija
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 15b9ae10871249d0302689f24dd7df5d05b7dee4
Choose a base ref
..
head repository: swt-initiative31/prototype-skija
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9327caf8b9b0453b4de4badeeef5a86fac1b0a07
Choose a head ref
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/SkijaGCTest.java
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@ public class SkijaGCTest {

@Test
public void textExtent() {
NativeGC nativeGC = new NativeGC(Display.getDefault());
SkijaGC gc = SkijaGC.createDefaultInstance(new NativeGC(Display.getDefault()));
Point extentA = gc.textExtent("A");
assertEquals(gc.getFontMetrics().getHeight(), extentA.y);
@@ -33,6 +34,7 @@ public void textExtent() {
assertNotEquals(extentAwhitespace.x, extentAwhitespaceA.x);
assertEquals(gc.getFontMetrics().getHeight(), extentAwhitespaceA.y);
gc.dispose();
nativeGC.dispose();
}

}