Skip to content

Commit

Permalink
test for tolerant function body parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Jul 18, 2013
1 parent a18a0d2 commit 394561f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4175,6 +4175,14 @@ define(["plugins/esprima/esprimaJsContentAssist", "orion/assert", "esprima/espri
["prototype", "prototype : Object"]
]);
};

tests["test tolerant parsing function 1"] = function() {
var results = computeContentAssist(
"var xxxyyy = {};\n" +
"function foo() {\n" +
" if (xx", "xx");
testProposals(results, [["xxxyyy", "xxxyyy : {}"]]);
};

return tests;
});

0 comments on commit 394561f

Please sign in to comment.