test moved to ui-tests-app (#3485)

Should be tested with no connection
This commit is contained in:
Vladimir Enchev
2017-01-13 14:38:19 +02:00
committed by GitHub
parent c8d9a54a4f
commit dad5e79df3
3 changed files with 6 additions and 21 deletions

View File

@ -0,0 +1,3 @@
export function onLoadFinished(args) {
console.log("### onLoadFinished with error: " + args.error);
}

View File

@ -0,0 +1,3 @@
<Page>
<WebView src="https://www.google.com" loadFinished="onLoadFinished" />
</Page>

View File

@ -127,27 +127,6 @@ export class WebViewTest extends testModule.UITest<webViewModule.WebView> {
// << webview-string
}
public testLoadInvalidUrl(done) {
let webView = this.testView;
let actualError;
webView.on(webViewModule.WebView.loadFinishedEvent, function (args: webViewModule.LoadEventData) {
if (actualError) {
// Android call this twice -- the second time args.error is undefined.
return;
}
actualError = args.error;
try {
TKUnit.assert(actualError !== undefined, "There should be an error.");
done(null);
}
catch (e) {
done(e);
}
});
webView.src = "kofti://mnogokofti";
}
public testLoadUpperCaseSrc(done) {
let webView = this.testView;
let targetSrc = "HTTPS://github.com/";