1
- /*globals require*/
1
+ /*globals require, console */
2
2
/*jshint browser: true*/
3
3
4
4
function done ( ) {
@@ -12,7 +12,6 @@ function done() {
12
12
} ;
13
13
14
14
Object . keys ( window . __karma__ . files ) . forEach ( function ( file ) {
15
- 'use strict' ;
16
15
if ( TEST_REGEXP . test ( file ) ) {
17
16
// Normalize paths to RequireJS module names.
18
17
allTestFiles . push ( pathToModule ( file ) ) ;
@@ -82,34 +81,36 @@ function done() {
82
81
} ) ;
83
82
}
84
83
85
- function httpGet ( theUrl , callback ) {
86
- var xhr = new XMLHttpRequest ( ) ;
87
- console . log ( theUrl ) ;
88
- xhr . open ( 'GET' , theUrl , true ) ;
89
- xhr . onreadystatechange = function ( ) {
90
- console . log ( 'ready state changed' ) ;
91
- if ( xhr . readyState === 4 ) {
92
- if ( xhr . status === 200 ) {
93
- console . log ( xhr . responseText ) ;
94
- callback ( xhr . status ) ;
95
- } else {
96
- console . error ( xhr . statusText ) ;
97
- callback ( xhr . status ) ;
98
- }
99
- }
100
- } ;
101
- xhr . onerror = function ( e ) {
102
- console . error ( xhr . statusText ) ;
103
- callback ( xhr . status ) ;
104
- } ;
105
- xhr . send ( null ) ;
106
- return xhr ;
107
- }
84
+ //function httpGet(theUrl, callback) {
85
+ // 'use strict';
86
+ // var xhr = new XMLHttpRequest();
87
+ // console.log(theUrl);
88
+ // xhr.open('GET', theUrl, true);
89
+ // xhr.onreadystatechange = function () {
90
+ // console.log('ready state changed');
91
+ // if (xhr.readyState === 4) {
92
+ // if (xhr.status === 200) {
93
+ // console.log(xhr.responseText);
94
+ // callback(xhr.status);
95
+ // } else {
96
+ // console.error(xhr.statusText);
97
+ // callback(xhr.status);
98
+ // }
99
+ // }
100
+ // };
101
+ // xhr.onerror = function (/*e*/) {
102
+ // console.error(xhr.statusText);
103
+ // callback(xhr.status);
104
+ // };
105
+ // xhr.send(null);
106
+ // return xhr;
107
+ //}
108
108
109
109
110
110
// FIXME: we should try to load gmeConfig with HTTPXmlRequest, to see if the server is up and running
111
111
// wait for 5 seconds for server start up
112
112
setTimeout ( function ( ) {
113
+ 'use strict' ;
113
114
done ( ) ;
114
115
} , 5000 ) ;
115
116
0 commit comments