This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var testCaseFile = require("file").absolute(args.shift()); | |
if (!testCaseFile) | |
{ | |
[self report]; | |
return; | |
} | |
var matches = testCaseFile.match(/([^\/]+)\.j$/); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var FileList = require("jake").FileList; | |
@implementation CFPropertyListTest : OJTestCase | |
- (void)testFormatSniffing | |
{print("INSIDE"); | |
var XMLPropertyLists = new FileList("PropertyLists/XML-*.plist"); | |
print(module.path);// + " " + XMLPropertyLists.toArray()); | |
XMLPropertyLists.forEach(function(/*String*/ aPath) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return function(require, exports, module, system, print) | |
{print("for " + path + " " + module + " " + module.path); | |
Executable.setCommonJSArguments(require, exports, module, system, print, window); | |
fileImporterForPath(FILE.dirname(path))(path, function() | |
{ | |
print("all done"); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path undefined | |
toString function () { | |
return baseId; | |
} | |
xNarwhalCurry function (block) { | |
block.xNarwhalCurry = true; | |
return block; | |
} | |
setExports function (exports) { | |
return exportsMemo[baseId] = exports; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cwd: function() | |
{ | |
var DOMBaseElement = document.getElementsByTagName("base")[0]; | |
if (DOMBaseElement) | |
return FILE.dirname(DOMBaseElement.getAttribute("href")); | |
return FILE.dirname(window.location.pathname); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/AppKit/CPApplication.j b/AppKit/CPApplication.j | |
index c8debf4..e5452ee 100644 | |
--- a/AppKit/CPApplication.j | |
+++ b/AppKit/CPApplication.j | |
@@ -1043,7 +1043,7 @@ var _CPAppBootstrapperActions = nil; | |
+ (void)actions | |
{ | |
- return [@selector(bootstrapPlatform), @selector(loadDefaultTheme), @selector(loadMainCibFile)]; | |
+ return [@selector(loadDefaultTheme)];//[@selector(bootstrapPlatform)];//[@selector(bootstrapPlatform), @selector(loadDefaultTheme), @selector(loadMainCibFile)]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (var object, index in [1,2,3,4,5]) | |
{ | |
console.log("index: " + object); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (var object, index, e = new objj_fastEnumerator([1,2,3,4,5]); e.i < e.l || e.e() && e.i < e.l; object = e.o[e.i][0], index = e.o[e.i][1], e.i++) | |
{ | |
console.log("index: " + object); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
theRootYouMade = ...; | |
// bootstrap... | |
var cwd = FILE.cwd(); | |
if (cwd === "/") | |
rootResource = theRootYouMade; | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var date = new Date(), | |
total = 0; | |
for (i = 0; i < 10000; ++i) | |
if ((/^(@end(?![$\w]))$/m).test("@end")) | |
total += 1; | |
var elapsed = new Date() - date; | |
console.log(elapsed + " " + total) | |
var date = new Date(), |