| 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))
|
|
|