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
context(@"stubbing init/alloc", ^{ | |
describe(@"can stub", ^{ | |
__block PSPDFViewController *psVC; | |
__block PSPDFViewController *initVC; | |
beforeEach(^{ | |
psVC = PSPDFViewController.alloc; | |
initVC = [psVC init]; | |
[PSPDFViewController stub:@selector(alloc) andReturn:psVC]; |
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
exports.DateHelper = { | |
lock: (msSinceEpoc) -> | |
# NOTE: Needed because Calendar model expects moment in the global scope. | |
global.moment = require('moment') | |
# NOTE: This can be removed once Sugar.js is removed | |
dateSugar = Date.SugarMethods | |
clock = sinon.useFakeTimers(msSinceEpoc) | |
# NOTE: This can be removed once Sugar.js is removed | |
Date[k] = v.method for k,v of dateSugar |
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
app.events = { | |
data: { | |
}, | |
ui: { | |
main: { | |
channel: 'ui.main', | |
topics: { | |
layoutLoaded: 'layout.loaded' |
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
.ui-addtocal { | |
cursor: pointer; /* No need for cursor: hand; Nobody uses IE 5.5 any more */ | |
position: absolute; | |
bottom: 10px; | |
right: 17px; | |
} | |
ol#eventsList h6.eventHost { | |
width: 220px | |
} |
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
jasmine.Matchers.prototype.toBeTypeOf = function(expected) { | |
var actual, notText, objType; | |
actual = this.actual; | |
notText = this.isNot ? 'not ' : ''; | |
objType = actual ? Object.prototype.toString.call(actual) : ''; | |
this.message = function() { | |
return 'Expected ' + actual + notText + ' to be an array'; | |
} |
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
function clearField(field) | |
{ | |
if ( field && field.value ) | |
field.value = ''; | |
} |
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
/** | |
* CSS3 ribbon buttons | |
*/ | |
.ribbonA{ | |
position: relative; | |
display: block; | |
width: 258px; | |
height: 50px; | |
font: .9em/50px Georgia, "Times New Roman", Times, serif; |
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
/** | |
* A sublte button | |
*/ | |
.btn:hover .inner { | |
background-position: 0 15px; | |
-webkit-transition: background-position .1s linear; | |
} |
NewerOlder