mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
improve error handling
This commit is contained in:
1 parent
b41ad227c1
commit
794c5d1ad8
7 files changed
+46
-24
No files matched your search
@@ -1199,13 +1199,23 @@ define(function (require, exports, module) {
|
||||
});
|
||||
});
|
||||
|
||||
// log a bug against Tern. Tern can't parse its own function hint.
|
||||
// Tern issue #207. Tern can't parse its own function hint.
|
||||
xit("should list parameter hint for record type annotation", function () {
|
||||
var testPos = { line: 178, ch: 25 };
|
||||
|
||||
testEditor.setCursorPos(testPos);
|
||||
runs(function () {
|
||||
expectParameterHint([{name: "t", type: "{index: Number, type: String}"}], -1);
|
||||
expectParameterHint([{name: "t", type: "{index: Number, name: String}"}], -1);
|
||||
});
|
||||
});
|
||||
|
||||
// Tern issue #208. Fixed in the latest tern
|
||||
xit("should list parameter hint for optional parameters", function () {
|
||||
var testPos = { line: 214, ch: 17 };
|
||||
|
||||
testEditor.setCursorPos(testPos);
|
||||
runs(function () {
|
||||
expectParameterHint([{name: "a", type: "Number", isOptional: true}, {name: "b", type: "String", isOptional: true}], 0);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user