|
@@ -25,6 +25,7 @@ private typedef Promise = {
|
|
|
-browsers <browsers> A list of browsers to test with in JSON format. Default: refer to source code
|
|
|
|
|
|
When a test finishes, it should set `window.success` to a boolean.
|
|
|
+ For urls with the string `-es5`, IE <= 8 will be automatically skipped.
|
|
|
*/
|
|
|
class RunSauceLabs {
|
|
|
static function successMsg(msg:String):Void {
|
|
@@ -37,6 +38,12 @@ class RunSauceLabs {
|
|
|
console.log('\x1b[36m' + msg + '\x1b[0m');
|
|
|
}
|
|
|
|
|
|
+ static function isEs5(b:Dynamic):Bool {
|
|
|
+ return
|
|
|
+ // not IE <= 8
|
|
|
+ !(b.browserName == "internet explorer" && Std.parseInt(b.version) <= 8);
|
|
|
+ }
|
|
|
+
|
|
|
static function main():Void {
|
|
|
var serveDomain = "localhost";
|
|
|
var servePort = "2000";
|
|
@@ -211,6 +218,11 @@ class RunSauceLabs {
|
|
|
}
|
|
|
|
|
|
var browserSuccess = true;
|
|
|
+ var urls = if (!isEs5(caps)) {
|
|
|
+ urls.filter(function(url:String) return url.indexOf("-es5") < 0);
|
|
|
+ } else {
|
|
|
+ urls;
|
|
|
+ }
|
|
|
|
|
|
return browser
|
|
|
.init(caps)
|