mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Fixes code hint tests by controlling worker resets.
Previously, the web worker would be restarted at somewhat random times during test runs (after a specific number of hints was requested). This change forces the worker to start afresh with each test and switches the worker so that it doesn't reset during any of the tests.
This commit is contained in:
1 parent
598007f70d
commit
f80c0c9d98
5 files changed
+171
-41
No files matched your search
@@ -36,7 +36,8 @@ define(function (require, exports, module) {
|
||||
TERN_CALLED_FUNC_TYPE_MSG = "FunctionType",
|
||||
TERN_PRIME_PUMP_MSG = "PrimePump",
|
||||
TERN_GET_GUESSES_MSG = "GetGuesses",
|
||||
TERN_WORKER_READY = "WorkerReady";
|
||||
TERN_WORKER_READY = "WorkerReady",
|
||||
SET_CONFIG = "SetConfig";
|
||||
|
||||
// Message parameter constants
|
||||
var TERN_FILE_INFO_TYPE_PART = "part",
|
||||
@@ -57,6 +58,7 @@ define(function (require, exports, module) {
|
||||
exports.TERN_FILE_INFO_TYPE_PART = TERN_FILE_INFO_TYPE_PART;
|
||||
exports.TERN_FILE_INFO_TYPE_FULL = TERN_FILE_INFO_TYPE_FULL;
|
||||
exports.TERN_FILE_INFO_TYPE_EMPTY = TERN_FILE_INFO_TYPE_EMPTY;
|
||||
exports.SET_CONFIG = SET_CONFIG;
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user