| Index: grit/format/html_inline_unittest.py
|
| diff --git a/grit/format/html_inline_unittest.py b/grit/format/html_inline_unittest.py
|
| index 6a645dbf3e427a06096b06c5e3b4548b4a1330d6..8714996b96ae2d726711848c1bc72b816ae071b4 100644
|
| --- a/grit/format/html_inline_unittest.py
|
| +++ b/grit/format/html_inline_unittest.py
|
| @@ -64,5 +64,25 @@ class HtmlInlineUnittest(unittest.TestCase):
|
| self.failUnlessEqual(resources, source_resources)
|
| tmp_dir.CleanUp()
|
|
|
| + def testCompressedJavaScript(self):
|
| + '''Tests that ".src=" doesn't treat as a tag.'''
|
| +
|
| + files = {
|
| + 'index.js': '''
|
| + if(i<j)a.src="hoge.png";
|
| + ''',
|
| + }
|
| +
|
| + source_resources = set()
|
| + tmp_dir = util.TempDir(files)
|
| + for filename in files:
|
| + source_resources.add(tmp_dir.GetPath(filename))
|
| +
|
| + resources = html_inline.GetResourceFilenames(tmp_dir.GetPath('index.js'))
|
| + resources.add(tmp_dir.GetPath('index.js'))
|
| + self.failUnlessEqual(resources, source_resources)
|
| + tmp_dir.CleanUp()
|
| +
|
| +
|
| if __name__ == '__main__':
|
| unittest.main()
|
|
|