@@ -68,14 +68,14 @@ define(function (require, exports, module) {
68
68
var localText ,
69
69
browserText ;
70
70
71
- //verify we aren 't currently connected
71
+ //verify live dev isn 't currently active
72
72
expect ( LiveDevelopment . status ) . toBe ( LiveDevelopment . STATUS_INACTIVE ) ;
73
73
74
74
runs ( function ( ) {
75
75
waitsForDone ( SpecRunnerUtils . openProjectFiles ( [ htmlFile ] ) , "SpecRunnerUtils.openProjectFiles" ) ;
76
76
} ) ;
77
77
78
- //start the connection
78
+ //start live dev
79
79
runs ( function ( ) {
80
80
LiveDevelopment . open ( ) ;
81
81
} ) ;
@@ -116,7 +116,7 @@ define(function (require, exports, module) {
116
116
expect ( fixSpaces ( browserText ) ) . toBe ( fixSpaces ( localText ) ) ;
117
117
118
118
var doc = DocumentManager . getOpenDocumentForPath ( testPath + "/" + htmlFile ) ;
119
- // expect(isOpenInBrowser(doc, LiveDevelopment.agents)).toBeTruthy();
119
+ expect ( isOpenInBrowser ( doc , LiveDevelopment . agents ) ) . toBeTruthy ( ) ;
120
120
} ) ;
121
121
}
122
122
@@ -157,15 +157,15 @@ define(function (require, exports, module) {
157
157
} ) ;
158
158
159
159
it ( "should establish a browser connection for an opened html file" , function ( ) {
160
- //verify we aren 't currently connected
160
+ //verify live dev isn 't currently active
161
161
expect ( LiveDevelopment . status ) . toBe ( LiveDevelopment . STATUS_INACTIVE ) ;
162
162
163
163
//open a file
164
164
runs ( function ( ) {
165
165
waitsForDone ( SpecRunnerUtils . openProjectFiles ( [ "simple1.html" ] ) , "SpecRunnerUtils.openProjectFiles" ) ;
166
166
} ) ;
167
167
168
- //start the connection
168
+ //start live dev
169
169
runs ( function ( ) {
170
170
LiveDevelopment . open ( ) ;
171
171
} ) ;
@@ -177,28 +177,28 @@ define(function (require, exports, module) {
177
177
expect ( LiveDevelopment . status ) . toBe ( LiveDevelopment . STATUS_ACTIVE ) ;
178
178
179
179
var doc = DocumentManager . getOpenDocumentForPath ( testPath + "/simple1.html" ) ;
180
- // expect(isOpenInBrowser(doc, LiveDevelopment.agents)).toBeTruthy();
180
+ expect ( isOpenInBrowser ( doc , LiveDevelopment . agents ) ) . toBeTruthy ( ) ;
181
181
} ) ;
182
182
183
- // Let things settle down before trying to close the connection .
183
+ // Let things settle down before trying to stop live dev .
184
184
waits ( 1000 ) ;
185
185
} ) ;
186
186
187
187
it ( "should should not start a browser connection for an opened css file" , function ( ) {
188
- //verify we aren 't currently connected
188
+ //verify live dev isn 't currently active
189
189
expect ( LiveDevelopment . status ) . toBe ( LiveDevelopment . STATUS_INACTIVE ) ;
190
190
191
191
//open a file
192
192
runs ( function ( ) {
193
193
waitsForDone ( SpecRunnerUtils . openProjectFiles ( [ "simple1.css" ] ) , "SpecRunnerUtils.openProjectFiles" ) ;
194
194
} ) ;
195
195
196
- //start the connection
196
+ //start live dev
197
197
runs ( function ( ) {
198
198
LiveDevelopment . open ( ) ;
199
199
} ) ;
200
200
201
- //we just need to wait an arbitrary time since we can't check for the connection to be true
201
+ //need to wait an arbitrary time since we can't check for live dev to be active
202
202
waits ( 1000 ) ;
203
203
204
204
runs ( function ( ) {
@@ -221,7 +221,7 @@ define(function (require, exports, module) {
221
221
var localText ,
222
222
browserText ;
223
223
224
- //verify we aren 't currently connected
224
+ //verify live dev isn 't currently active
225
225
expect ( LiveDevelopment . status ) . toBe ( LiveDevelopment . STATUS_INACTIVE ) ;
226
226
227
227
var cssOpened = false ;
@@ -245,7 +245,7 @@ define(function (require, exports, module) {
245
245
waitsForDone ( SpecRunnerUtils . openProjectFiles ( [ "simple1.css" , "simple1.html" ] ) , "SpecRunnerUtils.openProjectFiles" ) ;
246
246
} ) ;
247
247
248
- //start the connection
248
+ //start live dev
249
249
var liveDoc ;
250
250
runs ( function ( ) {
251
251
LiveDevelopment . open ( ) ;
@@ -278,7 +278,7 @@ define(function (require, exports, module) {
278
278
browserHtmlText ,
279
279
htmlDoc ;
280
280
281
- // verify we aren 't currently connected
281
+ //verify live dev isn 't currently active
282
282
expect ( LiveDevelopment . status ) . toBe ( LiveDevelopment . STATUS_INACTIVE ) ;
283
283
284
284
var cssOpened = false ;
@@ -302,15 +302,15 @@ define(function (require, exports, module) {
302
302
waitsForDone ( SpecRunnerUtils . openProjectFiles ( [ "simple1.html" ] ) , "SpecRunnerUtils.openProjectFiles" ) ;
303
303
} ) ;
304
304
305
- // Modify some text in test file before starting live connection
305
+ // Modify some text in test file before starting live dev
306
306
runs ( function ( ) {
307
307
htmlDoc = DocumentManager . getCurrentDocument ( ) ;
308
308
origHtmlText = htmlDoc . getText ( ) ;
309
309
updatedHtmlText = origHtmlText . replace ( "Brackets is" , "Live Preview in Brackets is" ) ;
310
310
htmlDoc . setText ( updatedHtmlText ) ;
311
311
} ) ;
312
312
313
- // start the connection
313
+ // start live dev
314
314
var liveDoc , liveHtmlDoc ;
315
315
runs ( function ( ) {
316
316
waitsForDone ( LiveDevelopment . open ( ) , "LiveDevelopment.open()" , 2000 ) ;
0 commit comments