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

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

Issue 183973020: [telemetry] Add ability to read data previously written to HTML (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nitfix 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/viewer.py ('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/viewer_unittest.py
diff --git a/tools/telemetry/telemetry/web_components/viewer_unittest.py b/tools/telemetry/telemetry/web_components/viewer_unittest.py
index eaea0d5964176cc02af5782a59481e50a18338ff..9394eee4b8ea21830065e39e24c80ddcbbedc746 100644
--- a/tools/telemetry/telemetry/web_components/viewer_unittest.py
+++ b/tools/telemetry/telemetry/web_components/viewer_unittest.py
@@ -23,3 +23,14 @@ class ViewerTests(unittest.TestCase):
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)
« no previous file with comments | « tools/telemetry/telemetry/web_components/viewer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698