diff --git a/template/app/view/doctests/Index.js b/template/app/view/doctests/Index.js index db2598507cdaed5c63aff62acd66d6813d99a3f1..3838678e98e447d8803e5a65e3ae4a1196834180 100644 --- a/template/app/view/doctests/Index.js +++ b/template/app/view/doctests/Index.js @@ -192,6 +192,7 @@ Ext.define('Docs.view.doctests.Index', { onPreviewSuccess: function(preview, obj, record, tests) { this.clearTestRunner(); record.set('status', 'pass'); + record.commit(); tests.pass++; this.showResult(tests); @@ -210,6 +211,7 @@ Ext.define('Docs.view.doctests.Index', { } record.set('message', '(exception logged to console): ' + e.toString()); + record.commit(); tests.fail++; this.showResult(tests);