Finally, I think I don't need to run unit tests to get the part of the source code that deals only with the validity of a url. Based on your experience, what is the best way to get this, I tried to create a new project, copy the Kurl class of webkit and put it in my new project, and a main file that creates an object Kurl, but I got lots of problems of file dependencies, have you a better way to do this? It was clear enough? I hope it !
Bugzilla from [email protected] wrote: > > On Tue, Dec 13, 2011 at 12:00 PM, Ghita <[email protected]> wrote: >> I need to know how webkit validates a URL address entered by a user in >> the >> web browser, I tried to follow step by step the compiler, but since I'm >> new, >> I'm completely lost in the webkit source code, so I would like to make a >> unit test to test the validity of one URL address, how I can do this >> test, >> so if someone could help me, I will be very grateful > > For regular WebKit, part of the validation is done KURL::init() and > the final decision of invalidating the URL is in KURL::parse(). > If you use GoogleURL, look at the parsing in GoogleURL itself. > > The tests for urls are in LayoutTest/fast/url. > If you are aware of a problem with parsing valid or invalid URLs, > please create a bug report on bugs.webkit.org. > > Benjamin > _______________________________________________ > webkit-dev mailing list > [email protected] > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev > > -- View this message in context: http://old.nabble.com/URL-validating-process-in-WebKit-tp32970309p32970646.html Sent from the Webkit mailing list archive at Nabble.com. _______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

