Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Unified Diff: tracing/third_party/tvcm/tvcm/js_utils_unittest.py

Issue 1376953005: Move tracing/third_party/tvcm -> third_party/py_vulcanize. (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tracing/third_party/tvcm/tvcm/js_utils_unittest.py
diff --git a/tracing/third_party/tvcm/tvcm/js_utils_unittest.py b/tracing/third_party/tvcm/tvcm/js_utils_unittest.py
deleted file mode 100644
index 862598b83b783c4eaddb0d85e714507e2f4b9517..0000000000000000000000000000000000000000
--- a/tracing/third_party/tvcm/tvcm/js_utils_unittest.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import unittest
-
-from tvcm import strip_js_comments
-from tvcm 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');"
- 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');"
- 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');"
- stripped_text = strip_js_comments.StripJSComments(text)
- self.assertRaises(
- lambda: js_utils.ValidateUsesStrictMode('module', stripped_text))

Powered by Google App Engine
This is Rietveld 408576698