#NEWLINE# def testScope_partialAlias( self ) : #NEWLINE# #INDENT# "Tests a partial alias in conjunction with a type annotation.\n\n    In this example, the partial alias is already defined by another type,\n    therefore the doc-only type doesn't need to be required.\n    " #NEWLINE# input_lines = [ 'goog.scope(function() {' , 'var bar = goog.events.bar;' , '/** @type {bar.Event} */;' , 'bar.EventType();});' ] #NEWLINE# namespaces_info = self . _GetNamespacesInfoForScript ( illegal_alias_stmts , [ 'goog' ] ) #NEWLINE# ( missing_requires , illegal_alias_stmts ) = namespaces_info . GetMissingRequires ( ) #NEWLINE# self . assertEquals ( { #NEWLINE# #INDENT# 'goog.events.bar.EventType' : 4 , #NEWLINE# #UNINDENT# } , missing_requires ) #NEWLINE# self . assertEquals ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , illegal_alias_stmts )