summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2014-08-06 18:07:00 +0300
committerArtur Signell <artur@vaadin.com>2014-08-14 08:41:11 +0000
commitea8374649ba8b3b2d38a49a73eda205faf2f0fe9 (patch)
treeb6caf6e595b6a0a74ce10a069ddbab16fb810480 /uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
parent702f00f86534ec35cecd9f28bdce3d262d95e818 (diff)
downloadvaadin-framework-ea8374649ba8b3b2d38a49a73eda205faf2f0fe9.tar.gz
vaadin-framework-ea8374649ba8b3b2d38a49a73eda205faf2f0fe9.zip
Always use cursor detection for improved test stability
Change-Id: I3ac7a8b404da907fbe025b2ab1af03dd7c32813e
Diffstat (limited to 'uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java')
-rw-r--r--uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
index 7e22537032..b892fbe4a0 100644
--- a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
+++ b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
@@ -115,6 +115,11 @@ public abstract class AbstractTB3Test extends TestBenchTestCase {
desiredCapabilities = Browser.FIREFOX.getDesiredCapabilities();
}
+ static {
+ com.vaadin.testbench.Parameters
+ .setScreenshotComparisonCursorDetection(true);
+ }
+
/**
* Connect to the hub using a remote web driver, set the canvas size and
* opens the initial URL as specified by {@link #getTestUrl()}
s="kr">function colormt:__concat(other) return tostring(self) .. tostring(other) end function colormt:__call(s) return self .. s .. ansicolors.reset end colormt.__metatable = {} local function makecolor(value) if isatty then return setmetatable({ value = string.char(27) .. '[' .. tostring(value) .. 'm' }, colormt) else return setmetatable({ value = '' }, colormt) end end local colors = { -- attributes reset = 0, clear = 0, bright = 1, dim = 2, underscore = 4, blink = 5, reverse = 7, hidden = 8, -- foreground black = 30, red = 31, green = 32, yellow = 33, blue = 34, magenta = 35, cyan = 36, white = 37, -- background onblack = 40, onred = 41, ongreen = 42, onyellow = 43, onblue = 44, onmagenta = 45, oncyan = 46, onwhite = 47, } for c, v in pairs(colors) do ansicolors[c] = makecolor(v) end return ansicolors