This file contains hidden or 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
private int deleteInternal(Uri url, String userWhere, String[] whereArgs) { | |
String tableToChange; | |
// In some cases a given url requires that we delete rows from more than one | |
// table. The motivating example is deleting messages from both the on disk | |
// and in memory messages tables. | |
String tableToChange2 = null; | |
String idColumnName = null; | |
String changedItemId = null; | |
String provider = null; |
This file contains hidden or 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
An error occured while building: | |
Syntax error in UITestScriptParser.j on preprocessed line number 15 | |
for(var i = 0; i < objj_msgSend(data, "count"); i++) | |
{ | |
if(objj_msgSend(data, "objectAtIndex:", i).match("^#") || objj_msgSend(data, "objectAtIndex:", i).match(/^\ | |
|| objj_msgSend(data, "objectAtIndex:", i).match(/^Comment/) || objj_msgSend(data, "objectAtIndex:", i).match(/^\s*$/)) | |
{ |
This file contains hidden or 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
- (void)assert:(id)target registered:(CPString)aNotification | |
{ | |
var names = [[CPNotificationCenter defaultCenter]._namedRegistries keyEnumerator]; | |
while (name = [names nextObject]) | |
{ | |
if([name isEqualToString:aNotification]) | |
{ | |
var registry = [[CPNotificationCenter defaultCenter]._namedRegistries objectForKey:name]; | |
var objects = [registry._objectObservers keyEnumerator]; |
This file contains hidden or 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
@implementation TestClass : CPObject | |
{ | |
CPNotificationCenter notification @accessors; | |
} | |
- (void)init | |
{ | |
var test = function() { return "Bob"; }; | |
return [super init]; | |
} |
This file contains hidden or 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
#!/usr/bin/env objj | |
print(window.location); |
This file contains hidden or 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
if (system.engine === "rhino") | |
{ | |
exports.window = window = require("browser/window"); | |
window.__parent__ = null; | |
window.__proto__ = global; | |
} | |
else | |
{ | |
window.setTimeout = require("browser/timeout").setTimeout; | |
window.setInterval = require("browser/timeout").setInterval; |
This file contains hidden or 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
/* | |
* AppController.j | |
* ScrollViewBug | |
* | |
* Created by You on February 8, 2010. | |
* Copyright 2010, Your Company All rights reserved. | |
*/ | |
@import <Foundation/CPObject.j> |
This file contains hidden or 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
git clone git://github.com/280north/OJTest.git | |
sudo rm -r /usr/local/narwhal/packages/ojunit | |
sudo unlink /usr/local/narwhal/bin/ojtest | |
sudo cp -r OJTest /usr/local/narwhal/packages | |
sudo mv /usr/local/narwhal/packages/OJTest /usr/local/narwhal/packages/ojtest | |
cd /usr/local/narwhal/bin | |
sudo ln -s /usr/local/narwhal/packages/ojtest/bin/ojtest ojtest |
This file contains hidden or 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
/* | |
* AppController.j | |
* test | |
* | |
* Created by You on February 25, 2010. | |
* Copyright 2010, Your Company All rights reserved. | |
*/ | |
@import <Foundation/CPObject.j> |
This file contains hidden or 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 oldGraphicsContext = CPGraphicsContext; | |
try { | |
CPGraphicsContext = moq(); | |
[CPGraphicsContext selector:@selector(currentContext) returns:moq()]; | |
// your test here | |
} finally { | |
CPGraphicsContext = oldGraphicsContext; |