Use a local URL (less timeouts) in webview get test.

This commit is contained in:
Hristo Deshev
2015-07-13 15:51:29 +03:00
parent dc891682e0
commit a83db96126

View File

@@ -37,7 +37,7 @@ export var testLoadExistingUrl = function () {
newPage.content = webView;
return newPage;
};
helper.navigate(pageFactory);
var testFinished = false;
@@ -62,14 +62,14 @@ export var testLoadExistingUrl = function () {
}
//console.log(message);
});
webView.url = "https://httpbin.org/html";
webView.url = "http://nsbuild01.telerik.com/docs/";
TKUnit.wait(4);
helper.goBack();
if (testFinished) {
TKUnit.assert(actualUrl === "https://httpbin.org/html", "args.url should equal https://httpbin.org/html");
TKUnit.assert(actualUrl === "http://nsbuild01.telerik.com/docs/", "args.url should equal http://nsbuild01.telerik.com/docs/");
TKUnit.assert(actualError === undefined, actualError);
}
else {
@@ -232,4 +232,4 @@ export var testLoadInvalidUrl = function () {
else {
TKUnit.assert(false, "TIMEOUT");
}
}
}