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

Unified Diff: tools/telemetry/telemetry/web_components/viewer_unittest.py

Issue 214143002: [telemetry] WebComponents Cleanups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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: tools/telemetry/telemetry/web_components/viewer_unittest.py
diff --git a/tools/telemetry/telemetry/web_components/viewer_unittest.py b/tools/telemetry/telemetry/web_components/viewer_unittest.py
deleted file mode 100644
index 9394eee4b8ea21830065e39e24c80ddcbbedc746..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/web_components/viewer_unittest.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright (c) 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
-import StringIO
-
-from telemetry.web_components import viewer
-
-class SimpleViewer(viewer.Viewer):
- def __init__(self):
- super(SimpleViewer, self).__init__(
- tvcm_module_name='telemetry.web_components.viewer_unittest_data',
- js_class_name='telemetry.web_components.SimpleViewer',
- data_binding_property='dataToView')
-
- def WriteDataToFileAsJson(self, f):
- f.write("1\n")
-
-class ViewerTests(unittest.TestCase):
- def testForSmoke(self):
- v = SimpleViewer()
-
- f = StringIO.StringIO()
- v.WriteViewerToFile(f)
-
- def testRead(self):
- v = SimpleViewer()
-
- f = StringIO.StringIO()
- v.WriteViewerToFile(f)
-
- f.seek(0)
-
- data = SimpleViewer.ReadDataObjectFromViewerFile(f)
- self.assertEquals(data, 1)

Powered by Google App Engine
This is Rietveld 408576698