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

Unified Diff: tools/telemetry/telemetry/web_components/web_component_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
« no previous file with comments | « tools/telemetry/telemetry/web_components/web_component_bootstrap.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/web_components/web_component_unittest.py
diff --git a/tools/telemetry/telemetry/web_components/viewer_unittest.py b/tools/telemetry/telemetry/web_components/web_component_unittest.py
similarity index 54%
rename from tools/telemetry/telemetry/web_components/viewer_unittest.py
rename to tools/telemetry/telemetry/web_components/web_component_unittest.py
index 9394eee4b8ea21830065e39e24c80ddcbbedc746..029094f9347e398b77ea634665ecb93fdb0fccfa 100644
--- a/tools/telemetry/telemetry/web_components/viewer_unittest.py
+++ b/tools/telemetry/telemetry/web_components/web_component_unittest.py
@@ -5,32 +5,32 @@
import unittest
import StringIO
-from telemetry.web_components import viewer
+from telemetry.web_components import web_component
-class SimpleViewer(viewer.Viewer):
+class SimpleWebComponent(web_component.WebComponent):
def __init__(self):
- super(SimpleViewer, self).__init__(
+ super(SimpleWebComponent, self).__init__(
tvcm_module_name='telemetry.web_components.viewer_unittest_data',
- js_class_name='telemetry.web_components.SimpleViewer',
+ js_class_name='telemetry.web_components.SimpleWebComponent',
data_binding_property='dataToView')
def WriteDataToFileAsJson(self, f):
f.write("1\n")
-class ViewerTests(unittest.TestCase):
+class WebComponentTests(unittest.TestCase):
def testForSmoke(self):
- v = SimpleViewer()
+ v = SimpleWebComponent()
f = StringIO.StringIO()
- v.WriteViewerToFile(f)
+ v.WriteWebComponentToFile(f)
def testRead(self):
- v = SimpleViewer()
+ v = SimpleWebComponent()
f = StringIO.StringIO()
- v.WriteViewerToFile(f)
+ v.WriteWebComponentToFile(f)
f.seek(0)
- data = SimpleViewer.ReadDataObjectFromViewerFile(f)
+ data = SimpleWebComponent.ReadDataObjectFromWebComponentFile(f)
self.assertEquals(data, 1)
« no previous file with comments | « tools/telemetry/telemetry/web_components/web_component_bootstrap.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698