Skip to content

Instantly share code, notes, and snippets.

View canonic-epicure's full-sized avatar
💭
Well-typed API for the world

Nickolay Platonov canonic-epicure

💭
Well-typed API for the world
View GitHub Profile
StartTest(function (t) {
var doSomething = function (next) {
t.chain(
{ click : 'something' },
next
)
}
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({
t.simulateDrag(el, 10, 10).then(function (cont) {
store.doXHRRequest({
callback : function () {
cont.CONTINUE('result')
// or just
cont('result')
},
my $found;
for my $file (@{$self->zilla->files}) {
if ($file->name eq $file_name) {
$found = $file;
last;
}
}
TestWebBundle : {
saveAs : 'test-run-all.js',
contains : [
'node_modules/joose/joose-all.js',
'node_modules/scope-provider/scope-provider-all.js',
'+TestWeb'
]
dayAndWeek : {
columnWidth : 100, // by default for horizontal
rowHeight : 24, // Only used in horizontal orientation
orientation : {
horizontal : {
columnWidth : 10,
exports.Cosmos = Class({
isa : require('super-class').SuperClass,
does : require('some-role').Role,
has : { ... },
methods : { ... }
})
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();
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();
// templates - methods, which returns plain strings
// its possible to call the SUPER template
Class('SomeClass', {
does : Shotenjin.Embed,
methods : {