File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 116
116
QUnit . config . urlConfig . push ( { id : 'enableoptionalfeatures' , label : "Enable Opt Features" } ) ;
117
117
// Handle extending prototypes
118
118
QUnit . config . urlConfig . push ( { id : 'extendprototypes' , label : 'Extend Prototypes' } ) ;
119
+ // Enable/disable livereload
120
+ QUnit . config . urlConfig . push ( { id : 'livereload' , label : 'Live Reload' } ) ;
119
121
// Handle JSHint
120
122
QUnit . config . urlConfig . push ( 'nojshint' ) ;
121
123
} ) ( ) ;
138
140
if ( ! QUnit . urlParams . nojshint && moduleName . match ( / [ - _ . ] j s h i n t $ / ) ) { Ember . __loader . require ( moduleName ) ; }
139
141
}
140
142
</ script >
143
+
144
+ < script >
145
+ if ( QUnit . urlParams . livereload ) {
146
+ ( function ( ) {
147
+ var src = ( location . protocol || 'http:' ) + '//' + ( location . hostname || 'localhost' ) + ':' + ( parseInt ( location . port , 10 ) + 31529 ) + '/livereload.js?snipver=1' ;
148
+ var script = document . createElement ( 'script' ) ;
149
+ script . type = 'text/javascript' ;
150
+ script . src = src ;
151
+ document . getElementsByTagName ( 'head' ) [ 0 ] . appendChild ( script ) ;
152
+ } ( ) ) ;
153
+ }
154
+ </ script >
155
+
141
156
</ head >
142
157
< body >
143
158
< div id ="qunit "> </ div >
You can’t perform that action at this time.
0 commit comments