Adium

Changeset 23586

Show
Ignore:
Timestamp:
05/23/2008 07:22:49 AM (6 months ago)
Author:
boredzo
Message:

Added test case for HTTP URLs with non-ASCII characters (in this case, Greek characters), using a URL from Wikipedia. Refs #7161.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/AutoHyperlinks Framework/UnitTests/SimpleURLTest.m

    r23585 r23586  
    414414} 
    415415 
     416- (void)testInternationalDomainNameURI { 
     417        //http://ουτοπία.δπθ.gr/, aka utoria.duth.gr. Link borrowed from <http://en.wikipedia.org/wiki/Image:IDN-utopia-greek.jpg>. 
     418        testHyperlink([NSString stringWithUTF8String:"\x68\x74\x74\x70\x3A\x2F\x2F\xCE\xBF\xCF\x85\xCF\x84\xCE\xBF\xCF\x80\xCE\xAF\xCE\xB1\x2E\xCE\xB4\xCF\x80\xCE\xB8\x2E\x67\x72\x2F"]); //With pathname (/) 
     419        testHyperlink([NSString stringWithUTF8String:"\x68\x74\x74\x70\x3A\x2F\x2F\xCE\xBF\xCF\x85\xCF\x84\xCE\xBF\xCF\x80\xCE\xAF\xCE\xB1\x2E\xCE\xB4\xCF\x80\xCE\xB8\x2E\x67\x72"]); //Without pathname 
     420} 
     421 
    416422- (void)testUniqueURI { 
    417423        testHyperlink(@"sip:foo@example.com");