aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-extensions/net/sourceforge/jnlp/browsertesting/Browsers.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-extensions/net/sourceforge/jnlp/browsertesting/Browsers.java')
-rw-r--r--tests/test-extensions/net/sourceforge/jnlp/browsertesting/Browsers.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/test-extensions/net/sourceforge/jnlp/browsertesting/Browsers.java b/tests/test-extensions/net/sourceforge/jnlp/browsertesting/Browsers.java
new file mode 100644
index 0000000..8d85241
--- /dev/null
+++ b/tests/test-extensions/net/sourceforge/jnlp/browsertesting/Browsers.java
@@ -0,0 +1,46 @@
+package net.sourceforge.jnlp.browsertesting;
+
+/**
+ * When all represent all configured browser, one represens one random
+ * (the first found) configured browser. Each other represents inidivdual browsers
+ *
+ */
+public enum Browsers {
+
+ none, all, one, opera, googleChrome, chromiumBrowser, firefox, midori,epiphany;
+
+ public String toExec() {
+ switch (this) {
+ case opera:
+ return "opera";
+ case googleChrome:
+ return "google-chrome";
+ case chromiumBrowser:
+ return "chromium-browser";
+ case firefox:
+ return "firefox";
+ case midori:
+ return "midori";
+ case epiphany:
+ return "epiphany";
+ default:
+ return null;
+
+ }
+ }
+
+ @Override
+ public String toString() {
+ if (toExec()!=null) return toExec();
+ switch (this) {
+ case all:
+ return "all";
+ case one:
+ return "one";
+ case none:
+ return "unset_browser";
+ default: return "unknown";
+
+ }
+ }
+}