Move helper files for iOS touch gestures into LayoutTests/resources
[WebKit-https.git] / LayoutTests / resources / platform-helper.js
1 function isGtk()
2 {
3     return navigator.userAgent.includes("WebKitTestRunnerGTK");
4 }
5
6 function isEfl()
7 {
8     return navigator.userAgent.includes("WebKitTestRunnerEFL");
9 }
10
11 function videoCanvasPixelComparisonTolerance()
12 {
13     if (isGtk() || isEfl())
14         return 6;
15
16     return 2;
17 }