Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2017-10-10Bug 525807 - Use surefire 2.20.1 for swt testsAlexander Kurtakov1-2/+3
Extract surefire version to property to change the version only in one place in the future. Change-Id: Ifbf8891084e0de990c268503639ce382b3cc2a3d Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-10-02Bug 525340 [Gtk][Webkit2] Javascript evaluate fails with "SyntaxError:Leo Ufimtsev1-0/+18
Return statements are only valid inside functions" jUnit test to catch such issues in the future. Change-Id: Ib94b293232a42a3c14748a325ea388a3e37ff88b Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-09-27Bug 525264 - Use foreach in snippets and examplesAlexander Kurtakov2-8/+4
Change-Id: I083db281df708346964203015bd9663bb8e943e1 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-09-25Bug 515915: [GTK3] ScrolledComposite within CTabFolder does not showEric Williams1-0/+59
scrollbars until resize Add test snippet to snippet repo. Change-Id: I6d8c7caf5a29eacd3e6bbbe100ea24adefaf8b57 Signed-off-by: Eric Williams <ericwill@redhat.com>
2017-08-21Bug 517264 – Refactor Test_*_Browser (setText issues on win)Leo Ufimtsev1-1/+2
On Windows, setTitle() sometimes seems to trigger multiple title changes, once to "about:blank" and then to the actual desired page. This patch skips over "about:blank" changes. Change-Id: I8b30988e32e23162cf81ea45ea267e1aa39445c7 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-08-18[Bug 500475] Guard 'doubleClickSelection' with 'doubleClickEnabled'.Arne Deutsch1-0/+34
The field 'doubleClickSelection' might be accessed only in case 'doubleClickEnabled' is true. Otherwise it will be null and NPE is the result. In case 'doubleClickEnabled = false" 'selectionAnchor' will already have the correct value. Added snippet to reproduce bug. Change-Id: Id5743435fd231dc03df8376122495a51b9bcb662 Signed-off-by: Arne Deutsch <arne@idedeluxe.com>
2017-08-17Bug 521024 - [api] Provide helpers to use lambda expressions for BrowserAlexander Kurtakov2-284/+159
listeners Adapt tests and examples. Change-Id: I49288d44f25ec2c7f370bc1481f5dd09a35c31a4 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-08-16Bug 520948: [Tests] [GTK] Increase color test coverage in SWTEric Williams1-0/+254
Add background/foreground color tests to widgets that have different internal mechanisms for setting a background/foreground color. This ensures that certain corner case styles get tested properly. Change-Id: I43bdcd3f4cc620cd94e0ac6f3326a7a8cb43acf8 Signed-off-by: Eric Williams <ericwill@redhat.com>
2017-08-16[Bug 520446] Added test cases to cover most code for block selection.Arne Deutsch1-0/+200
Fix test_getSelectionRangesInBlockSelection to work on linux, too. Fix test_getSelectionCountInBlockSelection to work on linux, too. Change-Id: I83dc68ccc7d10f59a138311d0be9249ac624dd39 Signed-off-by: Arne Deutsch <arne@idedeluxe.com>
2017-08-16Bug 520983 - [api] Provide helpers to use lambda expressions forAlexander Kurtakov1-0/+242
ShellListener Add tests. Change-Id: Ia5cfa9c43e5dacb5a0aebba20c8e557321767105 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-08-15Bug 520948: [Tests] [GTK] Increase color test coverage in SWTEric Williams2-0/+174
Add background/foreground color tests to widgets that have different internal mechanisms for setting a background/foreground color. This ensures that certain corner case styles get tested properly. Change-Id: I52139f3a4e1352790c4f8495dd8cbed637e2af8f Signed-off-by: Eric Williams <ericwill@redhat.com>
2017-08-15Bug 517264 Refactor old Browser* tests -- Skip test_setUrl_remote on badLeo Ufimtsev1-2/+39
connection. test_setUrl_remote() requires a live Internet connection. This test sometimes times out when a build server happens to have a bad Internet connection. This causes noise in the test logs. It's difficult to ensure live connectivity is always present, so instead this test will be skipped if there is no internet present. Note, setUrl(..) is still tested against local files even if an internet connection is not available. Change-Id: I098c1ecf3707c23260440fa0cf9081805198a627 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-08-14Bug 517264 – Refactor old Browser* tests into Test_*_BrowserI20170814-2000Leo Ufimtsev1-3/+10
Increasing timeout for test_setUrl_remote() as it sometimes timesout on windows. (I presume due to bad internet connection). Change-Id: Ibbaac8538f71a91292fe4d935bd3e4ba0bda6b41 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-08-13Bug 520884 - [api] Provide helpers to use lambda expressions forAlexander Kurtakov1-0/+97
MouseTrackListener Add tests. Change-Id: I9846addac996fedf6f975e651232f6c9e24af9f4 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-08-11Bug 520831 - [api] Provide helpers to use lambda expressions forAlexander Kurtakov1-1/+51
TreeListener Add tests. Change-Id: I9f17b21053e70834dd52d859e6352f8a1d5779f2 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-08-11Bug 520822 - [api] Provide helpers to use lambda expressions forAlexander Kurtakov1-1/+50
MenuListener Add tests for the helper methods. Change-Id: Ifc7f5238a7d60e982d7560bddd3b853e993ecaae Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-08-11Bug 520806 - [api] Provide helpers to use lambda expressions forAlexander Kurtakov1-1/+49
ExpandListener Add tests. Change-Id: Id8fd3c2d81a7465ece5b02e4cad1b2f6d07239d4 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-08-10[Bug 520442] Add test cases to cover StyledText.handleMouseDown.Arne Deutsch1-0/+101
Change-Id: Id5d5c5a4d05f05dff9b9142572cd07d40a7c7593 Signed-off-by: Arne Deutsch <arne@idedeluxe.com>
2017-08-10Bug 517264 – Refactor old Browser* tests (investigate *local fail)Leo Ufimtsev1-4/+22
Investigating why test_setUrl_local() is failing on some hudson build platforms. Cocoa/Linux: Might need bigger timeout. Maven can be very slow at times. Win32: Protentially issue on getting url for path. Added alternative method. Need to remove printing of verbose output once fixed. Change-Id: I2994e329bcb71545cfb8c53034dd648f121f7853 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-08-10Bug 520790: [GTK] Contribute native implementation of SwtFixed toEric Williams4-0/+586
platform specific tests Add native extension of SwtFixed into platform specific tests project for future use. This is useful to test how SwtFixed works natively. In this case it was used for accessibility testing, to see if Orca will read the button text inside an SwtFixed container (see bug 470031) Change-Id: Id74d6d68038976c2dce1246cee5129c1967df050 Signed-off-by: Eric Williams <ericwill@redhat.com>
2017-08-10Bug 512342 - [api] Provide helper methods to use lambda expressions forAlexander Kurtakov1-0/+48
ControlListener Add tests. Change-Id: I37f3bd8aeeed048ea9c1ff022040bf473ff0c30f Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-08-09Bug 304893 - [Custom Widgets] READ_ONLY CCombo does not de-select textLeo Ufimtsev1-0/+38
on FocusOut (snippet) Snippet to reproduce issue. Change-Id: I50ed901248d350b1f28f5917177ec438113c345e Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-08-09[Bug 520422] Split test cases to contain one test case eachArne Deutsch1-0/+83
Change-Id: I963f5478ee3f5c4f80763cfa9bc161aa14b9dc67 Signed-off-by: Arne Deutsch <arne@idedeluxe.com>
2017-08-09Bug 517264 – Refactor old Browser* tests into Test_*_Browser (part 9)Leo Ufimtsev1-1/+0
Remove export of removed package. Change-Id: Icfb857dd753b9e540f26c0865331a9a5260ded37 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-08-09Bug 517264 : browser_tests (part 8) Leo Ufimtsev5-261/+0
Removing old Browser8. execute() and evaluate() are tested extensively by new evaluate* and execute* tests in Test_*Browser.java. This test is redundant. Change-Id: I62d4ecf730be30e09185c29659b2b72e07c8b564 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-08-09Bug 517264 : browser_tests (part 7) Leo Ufimtsev2-156/+0
Removing Browser7.test() Tests to validate visibility events were added in part part 5: -> test_VisibilityWindowListener_multiple_shells -> test_VisibilityWindowListener_eventSize() Change-Id: I13405c6a791f5c6be0c815bb943445d8205c7997 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-08-09Bug 517264 browser_tests (part 6)Leo Ufimtsev5-190/+72
Replacing Browser6 test with: -> test_TitleListener_event -> test_setText -> test_setUrl_local -> test_setUrl_remote Also update setText()/setUrl to actually verify that url was loaded as oppose to just starting the operation. Change-Id: Ib8965b6b26422ee16e8f2ae414b4fb29ab7b2c67 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-08-09Bug 517264 : browser_tests (part 5)Leo Ufimtsev3-191/+117
Replacing Browser5.test1() with: -> test_VisibilityWindowListener_multiple_shells -> test_VisibilityWindowListener_eventSize() Also introducing the notion of testLog. Print a test log, but only if the test fails. Patchset 4: - Updated to fix Win and Cocoa specific issues. Change-Id: I5b783a0a9e2be2ab0df39d0957c6aa44c47542af Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-08-09Bug 517264 - browser_tests part4Leo Ufimtsev5-230/+13
Removing Browser4. For the most part it's a duplicate of Browser3. The only difference is the added closeWindowListener. -> Most of it is covered by test cases added in part3 -> added test_CloseWindowListener_close to complete coverage. Change-Id: Iff86338177047fa8fc74990559ddb59fa9ff2969 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=517264 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-08-09Bug 517264: browser_tests (Part 3)Leo Ufimtsev4-215/+116
Replace Browser3.test1() with: -> test_OpenWindowListener_openHasValidEventDetails() -> test_OpenWindowListener_open() -> test_OpenWindowListener_open_AndValidateEventOrder() Patchset 2: - Updated patch for parent to set content of child window instead of trying to load 127.0.0.1, as this would not work reliably on webkit1. Patchset 3: - Added similar fix test_OpenWindowListener_openHasValidEventDetails. Patchest 5: - Updated test such that progressCompletion is fired on Windows also. Change-Id: I40f5313488de56afb90660116593f4545183c1f7 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=517264 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-08-09Increment micro version for changes in o.e.swt.tests.Alexander Kurtakov2-3/+3
Change-Id: I8ffcc39e3e27761bb30effc6ecf3fcf6930e16dd Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-08-09Bug 298679 - [StyledText] Fixed left margin if alignment is set.Thorsten Hake1-1/+13
Change-Id: I7144cc95c1f0940e791526c3bb3c4326fe9e007c Signed-off-by: Thorsten Hake <eclipse@thorsten-hake.com>
2017-08-08Bug 519576: [GTK3] Use GTK CSS for background/foreground colors onEric Williams1-0/+166
GTK3.14 and below Test cases to prevent issues with background/foreground colors for SWT.CHECK and SWT.RADIO Buttons. Change-Id: I270b060639c80d0c2c9c22602ec04ce79ad4a4f4 Signed-off-by: Eric Williams <ericwill@redhat.com>
2017-07-28Bug 307441: [DND] DnD on Linux does not behave as expected withEric Williams1-0/+180
overlapping controls Add reproducer snippet. Change-Id: I7d9fdd85995fad36ba13344b1706c10f01ca9a7d Signed-off-by: Eric Williams <ericwill@redhat.com>
2017-07-26Bug 486068: [GTK3.20+] Allocation warnings printed in error consoleEric Williams1-0/+29
Add bug snippet to demonstrate the ScrollBar issue. Change-Id: I6ebe9bd55178eb5206721254c89382cefb80cff2 Signed-off-by: Eric Williams <ericwill@redhat.com>
2017-07-25Bug 290650: FillLayout computeSize troubles (original title is long)Eric Williams1-0/+65
Addition of reproducer snippet. Change-Id: Id1954f25fcba8419c03b6004d7308491b86e18b9 Signed-off-by: Eric Williams <ericwill@redhat.com>
2017-07-25Fix swt.tests build.properties.Alexander Kurtakov1-2/+3
Change-Id: Iaa5e94dae937ee8af3a5c66b70824b1133879ccf Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-07-24Bug 519996 Widget is disposed exception when closing shell with ccombosAlexander Kurtakov1-1/+1
Fix warning in nighty builds. Change-Id: Ib12b1c8d4ef0c7eab8c7adfcc4da4f2ed87702d1 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-07-21Bug 519996 Widget is disposed exception when closing shell with ccombosLeo Ufimtsev1-0/+40
Snippet to reproduce issue. Change-Id: I609b21126ee8d3b46b188519ba5d45df758ff5cb Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-07-21Bug 507611 - Unit test highlighting sizing issue.Mickael Istria1-0/+35
Adding jUnit test for failure. Currently marked as Ignored until solution is implemented. Change-Id: I662bdef4af53e352ffda934339e8027b5b92a3d3 Signed-off-by: Mickael Istria <mistria@redhat.com> Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-07-20Bug 517264: browser_tests (part 2)Leo Ufimtsev3-244/+35
Replacing Browser2 with newer tests. test1->test_LocationListener_ProgressListener_noExtraEvents (new) test2->test_LocationListener_ProgressListener_cancledLoad (from Part 1) Change-Id: Iacfba4e12fcb23c072dc193b873e32d07a0a5869 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=517264 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-07-20Bug 519916 pom.xml doesn't have to specify webkit as default browserLeo Ufimtsev1-1/+1
anymore In tests/../pom.xml, we hard-code the default browser to be webkit. This causes maven tests related to Browser to fail on Windows as it's trying to use webkit instead of I.e, which by default is not installed. I.e: <argLine> .. -Dorg.eclipse.swt.browser.DefaultType=webkit ... </argLine> Since XUL Runner is removed from codebase, hard-coding webkit is no longer needed. As of recently: - On Linux, webkit is default - On Cocoa, webkit is default - On Win, I.E is default Thus the hard-coding can be safely removed without breakage. Change-Id: I815d3ac45f4c957f0d6f79066d27f2a1d98b2273 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-07-19Bug 517264 browser_tests (Browser1)I20170719-0040Leo Ufimtsev3-233/+97
Replace old Browser1.test() with newer equivalent. Browser1.test1() ->test_LocationListener_changingAndOnlyThenChanged (existing) ->test_LocationListener_then_ProgressListener (new) Browser1.test2() -> test_LocationListener_ProgressListener_cancledLoad (new) Tested on: [X] Webkit1 [X] Webkit2 [x] Cocoa [x] Win32 Change-Id: Iec0df863321cd5245fb51df3fb8e8451131592aa Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-07-18Bug 519844 – Improve test_setCursorLocation stabilityLeo Ufimtsev1-4/+17
See bug comment #1 for details. Change-Id: Ibbb8511bf45d577659d64bc4f7ac379ee8b53b93 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-07-12Bug 477950 - [GTK3] Port SWT colors from using GdkColor to GdkRGBA soEric Williams1-0/+127
alpha is not lost Snippet for debugging system color issues, only useful on Fedora (Adwaita theme). Change-Id: I5ed0885e3e2bb760841cdc7ebf4ac9a4ee5c4b10 Signed-off-by: Eric Williams <ericwill@redhat.com>
2017-07-12Bug 519570 - [gtk] fix .project of org.eclipse.swt.tests.featureLeo Ufimtsev1-1/+1
Renaming project name from tools to tests Change-Id: Ia0c2373eb6d11ed804e1d08fffe326d4120d69c2 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-07-10Bug 519328 - [All] Add "Bug Snippets" folder to org.eclipse.swt.testsI20170710-2000Leo Ufimtsev3-0/+119
project Adding an initial snippet for Bug 212416. Change-Id: Ia77ce9997d3c4075cd58606974029905ce70327e Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-07-10Bug 519237 [Cocoa] mvn -Pbuild-individual-bundles fails on OSX due toLeo Ufimtsev2-1/+2
missing -XstartOnFirstThread vm arg Adding missing argument for maven test execution. See bug submission for details. Change-Id: Ie6faf2b22afc537373984388684646d6b7054b42 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-07-10Bug 518657: [GTK] Add bug snippets to GTK only tests project Eric Williams3-5/+20
Add generated serialVersionUID's to prevent warnings during builds. Change-Id: I9ee63bca87bcf0131613cd1cb098bddcd2dfb886 Signed-off-by: Eric Williams <ericwill@redhat.com>
2017-07-07Bug 518657: [GTK] Add bug snippets to GTK only tests projectEric Williams17-1/+1343
Merge first batch of snippets from personal repository into the SWT platform specific one. Change-Id: I2e00cf08e14615e3279c85a8ffb1d066ae1283cd Signed-off-by: Eric Williams <ericwill@redhat.com>

Back to the top