added drawing tests for all tools currently available

This commit is contained in:
jdescottes
2014-08-24 17:57:30 +02:00
parent caebce5ec8
commit 13001bd7bd
18 changed files with 79 additions and 11 deletions

View File

@@ -38,7 +38,7 @@
ns.DrawingTestSuiteRunner.prototype.onTestLoaded_ = function (response) {
var testRecord = JSON.parse(response.responseText);
var testPlayer = new ns.DrawingTestPlayer(testRecord, 10);
var testPlayer = new ns.DrawingTestPlayer(testRecord, 50);
testPlayer.addEndTestCallback(this.onTestEnd_.bind(this));
testPlayer.start();

View File

@@ -6,7 +6,7 @@
// test tools
var testModeOn = href.indexOf('test=true') !== -1;
if (testModeOn) {
this.testRecorder = new pskl.devtools.DrawingTestRecorder(this.piskelController);
this.testRecorder = new pskl.devtools.DrawingTestRecorder(pskl.app.piskelController);
this.testRecorder.init();
this.testRecordController = new pskl.devtools.TestRecordController(this.testRecorder);