Skip to content

Conversation

@EddyVerbruggen
Copy link
Contributor

Fixes #4443, unittest added.

Copy link
Contributor

@vakrilov vakrilov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Can you please remove the maked comments. They are used to generate code snippets for the docs. However there is already a snippet called webview-localfile in this file - no need for another.

public testLoadLocalFileWithSpaceInPath(done) {
let webView = this.testView;

// >> webview-localfile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this comment


// >> webview-localfile
webView.on(webViewModule.WebView.loadFinishedEvent, function (args: webViewModule.LoadEventData) {
// >> (hide)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this comment

catch (e) {
done(e);
}
// << (hide)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this comment

}
});
webView.src = "~/ui/web-view/test with spaces.html";
// << webview-localfile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this comment

@vakrilov
Copy link
Contributor

10x @EddyVerbruggen!
Can you please the unneeded comments and we can merge this one.

@EddyVerbruggen
Copy link
Contributor Author

Thanks! The comments are gone now, good to learn what those are used for 👍

@vakrilov vakrilov merged commit f399f6c into NativeScript:master Jun 28, 2017
@EddyVerbruggen EddyVerbruggen deleted the ios-webview-load-local-url-fix branch June 28, 2017 08:36
@lock
Copy link

lock bot commented Aug 27, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't load local files in a WebView on iOS devices

3 participants