mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-15 04:40:02 +01:00
Added Unit Test for URL Support
This commit is contained in:
@@ -40,6 +40,15 @@ test('loadImages loads a DataURL image and creates a step.', function (t){
|
|||||||
t.end();
|
t.end();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(!sequencer.options.inBrowser)
|
||||||
|
test('loadImage loads an image from URL and creates a step. (NodeJS)', function (t){
|
||||||
|
sequencer.loadImage('URL','https://ccpandhare.github.io/image-sequencer/examples/red.jpg', function(){
|
||||||
|
t.equal(sequencer.images.URL.steps.length, 1, "Initial Step Created");
|
||||||
|
t.equal(typeof(sequencer.images.URL.steps[0].output.src), "string", "Initial output exists");
|
||||||
|
t.end();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
if(!sequencer.options.inBrowser)
|
if(!sequencer.options.inBrowser)
|
||||||
test('loadImages loads an image from PATH and creates a step. (NodeJS)', function (t){
|
test('loadImages loads an image from PATH and creates a step. (NodeJS)', function (t){
|
||||||
sequencer.loadImages('examples/red.jpg');
|
sequencer.loadImages('examples/red.jpg');
|
||||||
|
|||||||
Reference in New Issue
Block a user