fix unit tests and move function hint type parsing into the tern worker.

This commit is contained in:
dloverin committed 2013-08-01 21:05:07 -04:00
1 parent 5205cba81c
commit adb56c0b58
7 files changed
+310 -44

No files matched your search

@@ -160,6 +160,17 @@ require(["MyModule"], function (myModule) {
var x = myModule.c;
});
/**
* Test record type google annoations.
*
* @param {{line: number, type: string}} t
*/
function testRecordTypeAnnotation(t) {
'use strict';
}
// Function hint testing
function functionHintTesting() {
"use strict";
@@ -167,6 +178,9 @@ function functionHintTesting() {
// simple function with primative arguments
s.lastIndexOf(s);
// function with record type argument
testRecordTypeAnnotation();
// function with a function argument
arr.sort();