mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Fix exception after picking hint from code hints combo.
Clean up unittests.js and change string from "<no arguments>" to "<no parameters>"
This commit is contained in:
1 parent
e4d8d66742
commit
a147ef5ded
3 files changed
+5
-6
No files matched your search
@@ -389,8 +389,7 @@ define(function (require, exports, module) {
|
||||
* describes a function parameter. If null, then no hint is expected.
|
||||
* @param {number} expectedParameter - the parameter at cursor.
|
||||
*/
|
||||
function expectParameterHint(expectedParams, expectedParameter)
|
||||
{
|
||||
function expectParameterHint(expectedParams, expectedParameter) {
|
||||
var request = ParameterHintManager.popUpHint();
|
||||
if (expectedParams === null) {
|
||||
expect(request).toBe(null);
|
||||
@@ -930,7 +929,7 @@ define(function (require, exports, module) {
|
||||
testDoc.replaceRange("myCustomer.setAmountDue(", start);
|
||||
testEditor.setCursorPos(testPos);
|
||||
runs(function () {
|
||||
expectParameterHint([{name:"amountDue", type: "Object"}], 0);
|
||||
expectParameterHint([{name: "amountDue", type: "Object"}], 0);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1234,7 +1233,7 @@ define(function (require, exports, module) {
|
||||
var testPos = { line: 200, ch: 20 };
|
||||
testEditor.setCursorPos(testPos);
|
||||
runs(function () {
|
||||
expectParameterHint([{name: "a", type: "Array.<String>"}],0);
|
||||
expectParameterHint([{name: "a", type: "Array.<String>"}], 0);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user