Skip to content

Commit

Permalink
Fix API errors in SWT due to tests
Browse files Browse the repository at this point in the history
- Move Win32AutoscaleTestBase to package org.eclipse.swt
- Increase minor version in manifest
- Add missing @SInCE tags in extending test classes
  • Loading branch information
fedejeanne committed Jun 24, 2024
1 parent f634e24 commit 57e98b0
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Fragment-Host: org.eclipse.swt;bundle-version="[3.126.100,4.0.0)"
Bundle-Name: %fragmentName
Bundle-Vendor: %providerName
Bundle-SymbolicName: org.eclipse.swt.win32.win32.x86_64; singleton:=true
Bundle-Version: 3.126.100.qualifier
Bundle-Version: 3.127.000.qualifier
Bundle-ManifestVersion: 2
Bundle-Localization: fragment
Export-Package:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
* Contributors:
* Yatta Solutions - initial API and implementation
*******************************************************************************/
package org.eclipse.swt.internal;
package org.eclipse.swt;

import org.eclipse.swt.*;
import org.eclipse.swt.internal.*;
import org.eclipse.swt.widgets.*;
import org.junit.*;

/**
* @since 3.127
*/
public abstract class Win32AutoscaleTestBase {
protected Display display;
protected Shell shell;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
import org.eclipse.swt.widgets.*;
import org.junit.*;

/**
* @since 3.127
*/
public class GCWin32Tests extends Win32AutoscaleTestBase {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@

import static org.junit.Assert.assertEquals;

import org.eclipse.swt.*;
import org.eclipse.swt.internal.*;
import org.junit.*;

/**
* @since 3.127
*/
public class TextLayoutWin32Tests extends Win32AutoscaleTestBase {
final static String text = "This is a text for testing.";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;

import org.eclipse.swt.*;
import org.eclipse.swt.internal.*;
import org.eclipse.swt.internal.gdip.*;
import org.junit.*;

/**
* @since 3.127
*/
public class TransformWin32Tests extends Win32AutoscaleTestBase {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* for Windows specific behavior
*
* @see org.eclipse.swt.widgets.Control
* @since 3.127
*/
public class ControlWin32Tests extends Win32AutoscaleTestBase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
import org.eclipse.swt.internal.*;
import org.junit.*;

/**
* @since 3.127
*/
public class WidgetWin32Tests extends Win32AutoscaleTestBase {

@Test
Expand Down

0 comments on commit 57e98b0

Please sign in to comment.