'Test check_javascript_file_is_safe with JQuery html()'

@data({'template': 'test.html()', 'rule': None}, {'template': 'test.html(    )', 'rule': None}, {'template': "test.html(    ''    )", 'rule': None}, {'template': "test.html('')", 'rule': None}, {'template': 'test.html("")', 'rule': None}, {'template': 'test.html(HtmlUtils.ensureHtml(htmlSnippet).toString())', 'rule': None}, {'template': 'HtmlUtils.setHtml($el,    someHtml)', 'rule': None}, {'template': 'test.html("any    string")', 'rule': Rules.javascript_jquery_html}, {'template': 'test.html("broken    string)', 'rule': Rules.javascript_jquery_html}, {'template': 'test.html("\xe6\xaa\x8c\xe6\xaa\x92\xe6\xbf\xa6")', 'rule': Rules.javascript_jquery_html}, {'template': 'test.html(anything)', 'rule': Rules.javascript_jquery_html})
def test_jquery_html(self, data):

    linter = JavaScriptLinter()
    results = FileResults('')
    linter.check_javascript_file_is_safe(data['template'], results)
    self._validate_data_rules(data, results)
