File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ var launcher = require('./launcher')
77
88// TODO: remove in 1.0
99var oldServer = {
10- start : function ( ) {
11- throw new Error (
12- 'The api interface has changed. Please use \n' +
10+ start : function ( cliOptions , done ) {
11+ console . error ( 'WARN `start` method is deprecated since 0.13. It will be removed in 0.14. Please use \n' +
1312 ' server = new Server(config, [done])\n' +
1413 ' server.start()\n' +
15- 'instead.'
16- )
14+ 'instead.' )
15+ var server = new Server ( cliOptions , done )
16+ server . start ( )
1717 }
1818}
1919
Original file line number Diff line number Diff line change @@ -92,6 +92,15 @@ Server.prototype.start = function () {
9292 this . _injector . invoke ( this . _start , this )
9393}
9494
95+ /**
96+ * Backward-compatibility with karma-intellij bundled with WebStorm.
97+ * Deprecated since version 0.13, to be removed in 0.14
98+ */
99+ Server . start = function ( cliOptions , done ) {
100+ var server = new Server ( cliOptions , done )
101+ server . start ( )
102+ }
103+
95104// Get properties from the injector
96105//
97106// token - String
You can’t perform that action at this time.
0 commit comments