A module built for free lancing!
A Pen by Bryan Stoner on CodePen.
// This is what your gulp task should look like | |
gulp.task('qunit', function(done) { | |
var files = glob.sync('./test/**/*.html'); | |
runAllQunits(files); | |
}); | |
// Runs through each qunit file (one at a time, though this could be relatively easily parallelized) | |
function runAllQunits(testFiles) { | |
var browser = new Zombie(); |
@Grab(group='com.github.groovy-wslite', module='groovy-wslite', version='1.1.0') | |
@Grab(group='joda-time', module='joda-time', version='2.7') | |
import wslite.rest.* | |
import org.joda.time.* | |
import org.joda.time.format.* | |
import groovy.xml.* | |
import groovy.json.* | |
import static java.lang.System.* | |
import groovy.transform.* |
function setUserAgent(window, userAgent) { | |
// Works on Firefox, Chrome, Opera and IE9+ | |
if (navigator.__defineGetter__) { | |
navigator.__defineGetter__('userAgent', function () { | |
return userAgent; | |
}); | |
} else if (Object.defineProperty) { | |
Object.defineProperty(navigator, 'userAgent', { | |
get: function () { | |
return userAgent; |
A module built for free lancing!
A Pen by Bryan Stoner on CodePen.
DETAIL=120; | |
module hullBetween() | |
{ | |
// Combine the hull between and the original objects | |
difference() | |
{ | |
hull() | |
{ |