mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-11 13:17:13 +00:00
Fix for loading Cappuccino apps locally on Windows.
Reviewed by me.
This commit is contained in:
@@ -60,4 +60,33 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void)testPeriods
|
||||
{
|
||||
var URLStrings =
|
||||
{
|
||||
"." : "./",
|
||||
"./" : "./",
|
||||
".//" : "./",
|
||||
"/." : "/",
|
||||
"/./" : "/",
|
||||
"/.//" : "/",
|
||||
"./a/" : "a/",
|
||||
"./a" : "a",
|
||||
".." : "../",
|
||||
"../" : "../",
|
||||
"..//" : "../",
|
||||
"/.." : "/",
|
||||
"/../" : "/",
|
||||
"/..//" : "/",
|
||||
"../a/" : "../a/",
|
||||
"../a" : "../a"
|
||||
};
|
||||
|
||||
var URLString;
|
||||
|
||||
for (URLString in URLStrings)
|
||||
if (URLStrings.hasOwnProperty(URLString))
|
||||
[self assert:new CFURL(URLString).absoluteString() equals:URLStrings[URLString]];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user