Browse Source

[TravisCI] Fixed SauceLabs.

Andy Li 11 years ago
parent
commit
8b88c57d9d
1 changed files with 2 additions and 12 deletions
  1. 2 12
      tests/unit/RunSauceLabs.hx

+ 2 - 12
tests/unit/RunSauceLabs.hx

@@ -17,7 +17,7 @@ class RunSauceLabs {
 			tags.push("TravisCI");
 
 		//https://saucelabs.com/platforms
-		var browsers = [
+		var browsers:Array<Dynamic> = [
 			// {
 			// 	"browserName": "internet explorer",
 			// 	"platform": "Windows XP",
@@ -77,28 +77,18 @@ class RunSauceLabs {
 				"browserName": "iphone",
 				"platform": "OS X 10.9",
 				"version": "7.1",
-				"deviceName": "iPhone",
-				"device-orientation": "portrait"
-			},
-			{
-				"browserName": "iphone",
-				"platform": "OS X 10.6",
-				"version": "4",
-				"deviceName": "iPhone",
 				"device-orientation": "portrait"
 			},
 			{
 				"browserName": "android",
 				"platform": "Linux",
 				"version": "4.0",
-				"deviceName": "Android",
 				"device-orientation": "portrait"
 			},
 			{
 				"browserName": "android",
 				"platform": "Linux",
 				"version": "4.3",
-				"deviceName": "Android",
 				"device-orientation": "portrait"
 			}
 		];
@@ -124,7 +114,7 @@ class RunSauceLabs {
 					console.log('${caps.browserName} ${caps.version} on ${caps.platform}:');
 					browser.init(caps, function(err) {
 						if (!handleError(err)) return;
-						browser.setAsyncScriptTimeout(10000); //10s timeout
+						browser.setAsyncScriptTimeout(30000); //10s timeout
 						browser.get("http://localhost:2000/unit-js.html", function(err) {
 							if (!handleError(err)) return;