Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 6107609

Browse files
committed
re-enable some checks; update comments
1 parent 520ccf6 commit 6107609

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

test/spec/LiveDevelopment-test.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ define(function (require, exports, module) {
6868
var localText,
6969
browserText;
7070

71-
//verify we aren't currently connected
71+
//verify live dev isn't currently active
7272
expect(LiveDevelopment.status).toBe(LiveDevelopment.STATUS_INACTIVE);
7373

7474
runs(function () {
7575
waitsForDone(SpecRunnerUtils.openProjectFiles([htmlFile]), "SpecRunnerUtils.openProjectFiles");
7676
});
7777

78-
//start the connection
78+
//start live dev
7979
runs(function () {
8080
LiveDevelopment.open();
8181
});
@@ -116,7 +116,7 @@ define(function (require, exports, module) {
116116
expect(fixSpaces(browserText)).toBe(fixSpaces(localText));
117117

118118
var doc = DocumentManager.getOpenDocumentForPath(testPath + "/" + htmlFile);
119-
//expect(isOpenInBrowser(doc, LiveDevelopment.agents)).toBeTruthy();
119+
expect(isOpenInBrowser(doc, LiveDevelopment.agents)).toBeTruthy();
120120
});
121121
}
122122

@@ -157,15 +157,15 @@ define(function (require, exports, module) {
157157
});
158158

159159
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
161161
expect(LiveDevelopment.status).toBe(LiveDevelopment.STATUS_INACTIVE);
162162

163163
//open a file
164164
runs(function () {
165165
waitsForDone(SpecRunnerUtils.openProjectFiles(["simple1.html"]), "SpecRunnerUtils.openProjectFiles");
166166
});
167167

168-
//start the connection
168+
//start live dev
169169
runs(function () {
170170
LiveDevelopment.open();
171171
});
@@ -177,28 +177,28 @@ define(function (require, exports, module) {
177177
expect(LiveDevelopment.status).toBe(LiveDevelopment.STATUS_ACTIVE);
178178

179179
var doc = DocumentManager.getOpenDocumentForPath(testPath + "/simple1.html");
180-
//expect(isOpenInBrowser(doc, LiveDevelopment.agents)).toBeTruthy();
180+
expect(isOpenInBrowser(doc, LiveDevelopment.agents)).toBeTruthy();
181181
});
182182

183-
// Let things settle down before trying to close the connection.
183+
// Let things settle down before trying to stop live dev.
184184
waits(1000);
185185
});
186186

187187
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
189189
expect(LiveDevelopment.status).toBe(LiveDevelopment.STATUS_INACTIVE);
190190

191191
//open a file
192192
runs(function () {
193193
waitsForDone(SpecRunnerUtils.openProjectFiles(["simple1.css"]), "SpecRunnerUtils.openProjectFiles");
194194
});
195195

196-
//start the connection
196+
//start live dev
197197
runs(function () {
198198
LiveDevelopment.open();
199199
});
200200

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
202202
waits(1000);
203203

204204
runs(function () {
@@ -221,7 +221,7 @@ define(function (require, exports, module) {
221221
var localText,
222222
browserText;
223223

224-
//verify we aren't currently connected
224+
//verify live dev isn't currently active
225225
expect(LiveDevelopment.status).toBe(LiveDevelopment.STATUS_INACTIVE);
226226

227227
var cssOpened = false;
@@ -245,7 +245,7 @@ define(function (require, exports, module) {
245245
waitsForDone(SpecRunnerUtils.openProjectFiles(["simple1.css", "simple1.html"]), "SpecRunnerUtils.openProjectFiles");
246246
});
247247

248-
//start the connection
248+
//start live dev
249249
var liveDoc;
250250
runs(function () {
251251
LiveDevelopment.open();
@@ -278,7 +278,7 @@ define(function (require, exports, module) {
278278
browserHtmlText,
279279
htmlDoc;
280280

281-
// verify we aren't currently connected
281+
//verify live dev isn't currently active
282282
expect(LiveDevelopment.status).toBe(LiveDevelopment.STATUS_INACTIVE);
283283

284284
var cssOpened = false;
@@ -302,15 +302,15 @@ define(function (require, exports, module) {
302302
waitsForDone(SpecRunnerUtils.openProjectFiles(["simple1.html"]), "SpecRunnerUtils.openProjectFiles");
303303
});
304304

305-
// Modify some text in test file before starting live connection
305+
// Modify some text in test file before starting live dev
306306
runs(function () {
307307
htmlDoc = DocumentManager.getCurrentDocument();
308308
origHtmlText = htmlDoc.getText();
309309
updatedHtmlText = origHtmlText.replace("Brackets is", "Live Preview in Brackets is");
310310
htmlDoc.setText(updatedHtmlText);
311311
});
312312

313-
// start the connection
313+
// start live dev
314314
var liveDoc, liveHtmlDoc;
315315
runs(function () {
316316
waitsForDone(LiveDevelopment.open(), "LiveDevelopment.open()", 2000);

0 commit comments

Comments
 (0)