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
StartTest(function (t) { | |
var doSomething = function (next) { | |
t.chain( | |
{ click : 'something' }, | |
next | |
) | |
} | |
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 i = 0; i < browser.length; i++) { | |
try { | |
// add "*" at the beginning if absent | |
var browserName = browser[ i ].replace(/^\*?/, '*') | |
var selenium = new DefaultSelenium(serverHost, serverPort, browserName, harnessURL) | |
selenium.start() | |
supported.push({ |
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
t.simulateDrag(el, 10, 10).then(function (cont) { | |
store.doXHRRequest({ | |
callback : function () { | |
cont.CONTINUE('result') | |
// or just | |
cont('result') | |
}, | |
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
my $found; | |
for my $file (@{$self->zilla->files}) { | |
if ($file->name eq $file_name) { | |
$found = $file; | |
last; | |
} | |
} |
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
TestWebBundle : { | |
saveAs : 'test-run-all.js', | |
contains : [ | |
'node_modules/joose/joose-all.js', | |
'node_modules/scope-provider/scope-provider-all.js', | |
'+TestWeb' | |
] |
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
dayAndWeek : { | |
columnWidth : 100, // by default for horizontal | |
rowHeight : 24, // Only used in horizontal orientation | |
orientation : { | |
horizontal : { | |
columnWidth : 10, |
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
exports.Cosmos = Class({ | |
isa : require('super-class').SuperClass, | |
does : require('some-role').Role, | |
has : { ... }, | |
methods : { ... } | |
}) |
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
require('Task/Joose/NodeJS'); | |
Joose.C = { debug : true } | |
use(['KiokuJS.Backend.CouchDB', 'KiokuJS.Feature.Class.OwnUUID', 'KiokuJS.Feature.Attribute.Skip'], function () { | |
var handle = new KiokuJS.Backend.CouchDB({ | |
dbURL : 'http://local:5984/test' | |
}); | |
var scope = handle.newScope(); |
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
require('Task/Joose/NodeJS'); | |
require('KiokuJS/Backend'); | |
require('KiokuJS/Backend/CouchDB/Node'); | |
require('KiokuJS/Feature/Class/OwnUUID'); | |
use(['KiokuJS.Backend.CouchDB', 'KiokuJS.Linker'], function () { | |
var handle = new KiokuJS.Backend.CouchDB({ | |
dbURL : 'http://10.0.0.1:5984/test' | |
}); | |
var scope = handle.newScope(); |
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
// templates - methods, which returns plain strings | |
// its possible to call the SUPER template | |
Class('SomeClass', { | |
does : Shotenjin.Embed, | |
methods : { | |