Skip to content

Commit

Permalink
Add unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
gruehle committed Aug 16, 2012
1 parent cd37843 commit 8d4280f
Show file tree
Hide file tree
Showing 11 changed files with 456 additions and 95 deletions.
5 changes: 4 additions & 1 deletion src/brackets.js
Expand Up @@ -229,6 +229,7 @@ define(function (require, exports, module) {
Inspector : require("LiveDevelopment/Inspector/Inspector"),
NativeApp : require("utils/NativeApp"),
ExtensionUtils : require("utils/ExtensionUtils"),
UpdateNotification : require("utils/UpdateNotification"),
doneLoading : false
};

Expand Down Expand Up @@ -340,7 +341,9 @@ define(function (require, exports, module) {
});

// Check for updates
UpdateNotification.checkForUpdate();
if (!params.get("skipUpdateCheck")) {
UpdateNotification.checkForUpdate();
}
}

// Main Brackets initialization
Expand Down
2 changes: 1 addition & 1 deletion src/buildNumber.json
@@ -1,3 +1,3 @@
{
"buildNumber": 10
"buildNumber": 100
}
4 changes: 2 additions & 2 deletions src/debug/DebugCommandHandlers.js
Expand Up @@ -54,15 +54,15 @@ define(function (require, exports, module) {
function _handleRunUnitTests() {
if (_testWindow) {
try {
_testWindow.location.reload();
_testWindow.location.reload(true);
} catch (e) {
_testWindow = null; // the window was probably closed
}
}

if (!_testWindow) {
_testWindow = window.open("../test/SpecRunner.html", "brackets-test", "width=" + $(window).width() + ",height=" + $(window).height());
_testWindow.location.reload(); // if it was opened before, we need to reload because it will be cached
_testWindow.location.reload(true); // if it was opened before, we need to reload because it will be cached
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/htmlContent/main-view.html
Expand Up @@ -197,16 +197,16 @@ <h2>{{BRACKETS}}</h2>
</div>
<div class="update-dialog template modal hide">
<div class="modal-header">
<h1 class="dialog-title">Update Available</h1>
<h1 class="dialog-title">{{UPDATE_AVAILABLE_TITLE}}</h1>
</div>
<div class="modal-body">
<p class="dialog-message">Hey, there's a new build of Brackets available. Check out the new features:</p>
<p class="dialog-message">{{UPDATE_MESSAGE}}</p>
<div class="update-info">
</div>
</div>
<div class="modal-footer">
<a href="#" class="dialog-button btn left" data-button-id="download">Get it now!</a>
<a href="#" class="dialog-button btn primary" data-button-id="ok">Close</a>
<a href="#" class="dialog-button btn left" data-button-id="cancel">{{CANCEL}}</a>
<a href="#" class="dialog-button btn primary" data-button-id="download">{{GET_IT_NOW}}</a>
</div>
</div>
<div id="context-menu-bar">
Expand Down
4 changes: 4 additions & 0 deletions src/nls/strings.js
Expand Up @@ -108,6 +108,7 @@ define(function (require, exports, module) {
exports.OPEN_FILE = "Open File";
exports.SEARCH_REGEXP_INFO = "Use /re/ syntax for regexp search";

exports.RELEASE_NOTES = "Release Notes";
exports.NO_UPDATE_TITLE = "You're up to date!";
exports.NO_UPDATE_MESSAGE = "You are running the latest version of Brackets.";

Expand Down Expand Up @@ -208,4 +209,7 @@ define(function (require, exports, module) {
exports.ABOUT_TEXT_LINE3 = "Notices; terms and conditions pertaining to third party software are located at ";
exports.ABOUT_TEXT_LINE4 = " and incorporated by reference herein.";
exports.ABOUT_TEXT_LINE5 = "Documentation and source at ";
exports.UPDATE_AVAILABLE_TITLE = "Update Available";
exports.UPDATE_MESSAGE = "Hey, there's a new build of Brackets available. Here are some of the new features:";
exports.GET_IT_NOW = "Get it now!";
});

0 comments on commit 8d4280f

Please sign in to comment.