mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-14 20:30:01 +01:00
tape test basic setup
This commit is contained in:
5
.travis.yml
Normal file
5
.travis.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- '4'
|
||||
- '5'
|
||||
script: npm test
|
||||
@@ -72,6 +72,7 @@ Notes on development next steps:
|
||||
* [ ] click to expand for all images
|
||||
* [ ] `ImageSequencer.Renderer` class to manage image output formats and adapters
|
||||
* [ ] output in animated Gif?
|
||||
* [ ] remove step
|
||||
|
||||
### Modularization
|
||||
|
||||
@@ -86,6 +87,7 @@ Notes on development next steps:
|
||||
* [ ] ...could we directly include package.json for module descriptions? At least as a fallback.
|
||||
* [ ] (for node-and-line style UIs) non-linear sequences with Y-splitters
|
||||
* [ ] `sequencer.addModule('path/to/module.js')` style module addition -- also to avoid browserifying all of Plotly :-P
|
||||
* [ ] remove step
|
||||
|
||||
### Testing
|
||||
|
||||
|
||||
149817
dist/image-sequencer.js
vendored
149817
dist/image-sequencer.js
vendored
File diff suppressed because one or more lines are too long
@@ -22,6 +22,9 @@
|
||||
<div class="header">
|
||||
|
||||
<h1>Image Sequencer</h1>
|
||||
<h3>
|
||||
<a href="https://github.com/jywarren/image-sequencer"><i class="fa fa-github"></i></a>
|
||||
</h3>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
window.$ = window.jQuery = require('jquery');
|
||||
if (typeof window !== 'undefined') window.$ = window.jQuery = require('jquery');
|
||||
|
||||
ImageSequencer = function ImageSequencer(options) {
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ module.exports = {
|
||||
'image-select': require('./modules/ImageSelect'),
|
||||
'green-channel': require('./modules/GreenChannel'),
|
||||
'ndvi-red': require('./modules/NdviRed'),
|
||||
'plot': require('./modules/Plot'),
|
||||
// 'plot': require('./modules/Plot'),
|
||||
'image-threshold': require('./modules/ImageThreshold')
|
||||
|
||||
}
|
||||
|
||||
@@ -19,8 +19,19 @@ module.exports = function UserInterface(options) {
|
||||
}
|
||||
}
|
||||
|
||||
// method to remove the UI for a given method, and remove the step
|
||||
function remove() {
|
||||
|
||||
}
|
||||
|
||||
// method to reorder steps, and update the UI
|
||||
//function move() {
|
||||
|
||||
//}
|
||||
|
||||
return {
|
||||
create: create
|
||||
create: create,
|
||||
remove: remove
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -6,7 +6,9 @@ var test = require('tape');
|
||||
// We should only test headless code here.
|
||||
// http://stackoverflow.com/questions/21358015/error-jquery-requires-a-window-with-a-document#25622933
|
||||
|
||||
var imageSequencer = require('../dist/image-sequencer')({
|
||||
require('../dist/image-sequencer.js');
|
||||
|
||||
var sequencer = ImageSequencer({
|
||||
defaultSteps: function() {
|
||||
console.log('defaults');
|
||||
}
|
||||
@@ -20,7 +22,7 @@ function write (file, data) { /* jshint ignore:line */
|
||||
return fs.writeFileSync('./test/fixtures/' + file, data + '\n', 'utf8');
|
||||
}
|
||||
|
||||
test.skip('Image Sequencer has tests', function (t) {
|
||||
test('Image Sequencer has tests', function (t) {
|
||||
// read('something.html')
|
||||
t.equal(true, true);
|
||||
t.end();
|
||||
|
||||
Reference in New Issue
Block a user