tools/web_dev_style/js_checker_test.py
def ShouldFailVariableNameCheck(self, line):
    """Checks that var unix_hacker, $dollar are style errors."""
    error = self.checker.VariableNameCheck(1, line)
    self.assertNotEqual("", error, "Should be flagged as style error: " + line)
    highlight = test_util.GetHighlight(line, error)
    self.assertFalse(any(dm in highlight for dm in _DECLARATION_METHODS))
Checks that var unix_hacker, $dollar are style errors.
Checks that var unix_hacker, $dollar are style errors.
Checks that var unix_hacker $dollar are style errors .
def ShouldFailVariableNameCheck(self, line):
    error = self.checker.VariableNameCheck(1, line)
    self.assertNotEqual("", error, "Should be flagged as style error: " + line)
    highlight = test_util.GetHighlight(line, error)
    self.assertFalse(any(dm in highlight for dm in _DECLARATION_METHODS))
def ShouldFailVariableNameCheck ( self , line ) : error = self . checker . VariableNameCheck ( 1 , line ) self . assertNotEqual ( "" , error , "Should be flagged as style error: " + line ) highlight = test_util . GetHighlight ( line , error ) self . assertFalse ( any ( dm in highlight for dm in _DECLARATION_METHODS ) )
Checks that var unix_hacker, $dollar are style errors.
Checks that var unix_hacker $dollar are style errors .
"""Checks that var unix_hacker, $dollar are style errors."""
self
line