UNPKG

ares-ide

Version:

A browser-based code editor and UI designer for Enyo 2 projects

24 lines (23 loc) 550 B
/* To add a test case: 1) Create a subclass of EnyoTestCase 2) Add file to package.js */ enyo.kind({ name: "Ares.TestRunner", kind: enyo.Control, index: 0, rendered: function() { this.inherited(arguments); this.next(); }, next: function() { var test = Ares.TestSuite.tests[this.index++]; if (test) { enyo.log("STARTING TEST SUITE ", test.prototype.kindName); this.createComponent({name: test.prototype.kindName, kind: Ares.TestReporter, onFinishAll: "next"}).render(); } else { enyo.log("TEST RUNNER FINISHED"); } } });