From f2a2d76025db515bd8f08f16f21b649b461732ae Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Tue, 21 Apr 2015 01:53:37 +0000 Subject: [PATCH] Add better location --- plugins/c9.ide.plugins/test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/c9.ide.plugins/test.js b/plugins/c9.ide.plugins/test.js index df2584ed..8afc1b74 100644 --- a/plugins/c9.ide.plugins/test.js +++ b/plugins/c9.ide.plugins/test.js @@ -96,7 +96,7 @@ define(function(require, exports, module) { function handle(err){ iframe.removeEventListener("load", handle); iframe.removeEventListener("error", onError); - callback(err instanceof Error ? err : null); + callback(err instanceof Error ? err : null, tab); } function onError(e){ @@ -122,9 +122,11 @@ define(function(require, exports, module) { function run(pluginName, callback){ // Load test runner - loadIframe(pluginName, function(err){ + loadIframe(pluginName, function(err, tab){ if (err) return callback(err); + tab.editor.setLocation("Test for `" + pluginName + "`") + // Wait until iframe is loaded plugin.once("ready", function(){