Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug525946_DownloadFunction.java31
1 files changed, 16 insertions, 15 deletions
diff --git a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug525946_DownloadFunction.java b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug525946_DownloadFunction.java
index 695504071d..9079cf9e5b 100644
--- a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug525946_DownloadFunction.java
+++ b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug525946_DownloadFunction.java
@@ -27,20 +27,21 @@ import org.eclipse.swt.widgets.Shell;
* Expected results: Download functionality now works on WebKit2.
* GTK version(s): GTK3.x
*/
-
public class Bug525946_DownloadFunction {
-public static void main(String[] args) {
-final Display display = new Display();
-final Shell shell = new Shell(display);
-shell.setBounds(10, 10, 400, 400);
-shell.setLayout(new FillLayout());
-final Browser browser = new Browser(shell, SWT.NONE);
-browser.setUrl("http://download.eclipse.org/tools/orbit/downloads/drops/R20170516192513/orbit-buildrepo-R20170516192513.zip");
-shell.open();
-while (!shell.isDisposed()) {
-if (!display.readAndDispatch()) display.sleep();
-}
-shell.dispose();
-display.dispose();
-}
+ public static void main(String[] args) {
+ final Display display = new Display();
+ final Shell shell = new Shell(display);
+ shell.setBounds(10, 10, 400, 400);
+ shell.setLayout(new FillLayout());
+ final Browser browser = new Browser(shell, SWT.NONE);
+// browser.setUrl("http://download.eclipse.org/eclipse/downloads/drops4/I20180416-2000/download.php?dropFile=eclipse-test-framework-I20180416-2000.zip"); // 2.3 mb
+ browser.setUrl("http://download.eclipse.org/tools/orbit/downloads/drops/R20170516192513/orbit-buildrepo-R20170516192513.zip"); // 400mb
+ shell.open();
+ while (!shell.isDisposed()) {
+ if (!display.readAndDispatch())
+ display.sleep();
+ }
+ shell.dispose();
+ display.dispose();
+ }
} \ No newline at end of file

Back to the top