Add PhantomJS test support and CharMeasure tests

Fixes #534
This commit is contained in:
Daniel Imms
2017-02-08 19:53:32 -08:00
parent 639a2fd509
commit 1306431e7c
6 changed files with 102 additions and 0 deletions
+5
View File
@@ -3,6 +3,7 @@ const buffer = require('vinyl-buffer');
const fs = require('fs-extra');
const gulp = require('gulp');
const merge = require('merge-stream');
const mochaPhantom = require('gulp-mocha-phantomjs');
const sorcery = require('sorcery');
const source = require('vinyl-source-stream');
const sourcemaps = require('gulp-sourcemaps');
@@ -70,6 +71,10 @@ gulp.task('browserify', ['tsc'], function() {
return merge(bundleStream, copyAddons, copyStylesheets);
});
gulp.task('test-phantom', function () {
return gulp.src('test-harness.html')
.pipe(mochaPhantom());
});
/**
* Use `sorcery` to resolve the source map chain and point back to the TypeScript files.