mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Drawing tests structure cleanup
This commit is contained in:
@@ -1,15 +1,5 @@
|
||||
(function () {
|
||||
var tests = [
|
||||
"pen.drawing.json",
|
||||
"color.picker.json",
|
||||
"frames.fun.json",
|
||||
"layers.fun.json",
|
||||
"move.json",
|
||||
"pen.secondary.color.json",
|
||||
"squares.circles.json",
|
||||
"stroke.json",
|
||||
"verticalpen.drawing.json"
|
||||
];
|
||||
var tests = require('./test/drawing/DrawingTests.casper.js').tests;
|
||||
|
||||
var baseUrl = casper.cli.get('baseUrl')+"?debug";
|
||||
var resultSelector = '#drawing-test-result';
|
||||
@@ -17,7 +7,7 @@
|
||||
casper.start();
|
||||
|
||||
var runTest = function (index) {
|
||||
var test = 'integration/casperjs/drawing-records/' + tests[index];
|
||||
var test = 'drawing/tests/' + tests[index];
|
||||
|
||||
casper.open(baseUrl + "&test-run=" + test);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ "tests" : [
|
||||
{"tests" : [
|
||||
"pen.drawing.json",
|
||||
"bucket.drawing.json",
|
||||
"color.picker.json",
|
||||
11
test/drawing/DrawingTests.casper.js
Normal file
11
test/drawing/DrawingTests.casper.js
Normal file
@@ -0,0 +1,11 @@
|
||||
(typeof exports != "undefined" ? exports : pskl_exports).tests = [
|
||||
"pen.drawing.json",
|
||||
"color.picker.json",
|
||||
"frames.fun.json",
|
||||
"layers.fun.json",
|
||||
"move.json",
|
||||
"pen.secondary.color.json",
|
||||
"squares.circles.json",
|
||||
"stroke.json",
|
||||
"verticalpen.drawing.json"
|
||||
];
|
||||
Reference in New Issue
Block a user