public void testIncompleteNamespacedReferences() throws Exception {
SymbolTable table = createSymbolTable(
"/** @constructor */\n" +
"goog.dom.DomHelper = function(){};\n" +
"var y = goog.dom.DomHelper;\n");
Symbol goog = getGlobalVar(table, "goog");
assertNotNull(goog);
assertEquals(2, table.getReferenceList(goog).size());
Symbol googDom = getGlobalVar(table, "goog.dom");
assertNotNull(googDom);
assertEquals(2, table.getReferenceList(googDom).size());
Symbol googDomHelper = getGlobalVar(table, "goog.dom.DomHelper");
assertNotNull(googDomHelper);
assertEquals(2, Iterables.size(table.getReferences(googDomHelper)));
}