From b0d7395e473f4543738e4947bd7adbd03afc2dd3 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Sat, 21 Apr 2012 14:46:24 +0300 Subject: [PATCH] Commit DocTest record after updating. This way the Status column won't display the red "dirty" flag. --- template/app/view/doctests/Index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/template/app/view/doctests/Index.js b/template/app/view/doctests/Index.js index db259850..3838678e 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); -- GitLab