Index: third_party/py_vulcanize/py_vulcanize/js_utils_unittest.py |
diff --git a/tracing/third_party/tvcm/tvcm/js_utils_unittest.py b/third_party/py_vulcanize/py_vulcanize/js_utils_unittest.py |
similarity index 75% |
rename from tracing/third_party/tvcm/tvcm/js_utils_unittest.py |
rename to third_party/py_vulcanize/py_vulcanize/js_utils_unittest.py |
index 862598b83b783c4eaddb0d85e714507e2f4b9517..1ada4bc567cf27ab36c73338e309174cb6945ebd 100644 |
--- a/tracing/third_party/tvcm/tvcm/js_utils_unittest.py |
+++ b/third_party/py_vulcanize/py_vulcanize/js_utils_unittest.py |
@@ -4,25 +4,25 @@ |
import unittest |
-from tvcm import strip_js_comments |
-from tvcm import js_utils |
+from py_vulcanize import strip_js_comments |
+from py_vulcanize import js_utils |
class ValidateStrictModeTests(unittest.TestCase): |
"""Test case for ValidateUsesStrictMode.""" |
def test_ValidateUsesStrictMode_returns_true(self): |
- text = "// blahblahblah\n\n'use strict';\n\ntvcm.require('dependency1');" |
+ text = "// blahblahblah\n\n'use strict';\n\npy_vulcanize.require('dependency1');" |
stripped_text = strip_js_comments.StripJSComments(text) |
self.assertIsNone(js_utils.ValidateUsesStrictMode('module', stripped_text)) |
def test_ValidateUsesStrictModeOneLiner(self): |
- text = "'use strict'; tvcm.require('dependency1');" |
+ text = "'use strict'; py_vulcanize.require('dependency1');" |
stripped_text = strip_js_comments.StripJSComments(text) |
self.assertIsNone(js_utils.ValidateUsesStrictMode('module', stripped_text)) |
def test_ValidateUsesStrictMode_catches_missing_strict_mode(self): |
- text = "// blahblahblah\n\ntvcm.require('dependency1');" |
+ text = "// blahblahblah\n\npy_vulcanize.require('dependency1');" |
stripped_text = strip_js_comments.StripJSComments(text) |
self.assertRaises( |
lambda: js_utils.ValidateUsesStrictMode('module', stripped_text)) |