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

Unified Diff: tools/telemetry/telemetry/inspector_page_unittest.py

Issue 11419320: [Telemetry] Port page cycler to Telemetry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tabs Created 8 years 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/inspector_page.py ('k') | tools/telemetry/telemetry/page_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/inspector_page_unittest.py
diff --git a/tools/telemetry/telemetry/inspector_page_unittest.py b/tools/telemetry/telemetry/inspector_page_unittest.py
index 1d214ab5c6455b71871db55bf85dc21837aeb7f4..89e5a29ac3efa7fb677ad05d24052dcd4252103c 100644
--- a/tools/telemetry/telemetry/inspector_page_unittest.py
+++ b/tools/telemetry/telemetry/inspector_page_unittest.py
@@ -44,6 +44,17 @@ class InspectorPageTest(tab_test_case.TabTestCase):
self.assertEquals(self._tab.runtime.Evaluate('document.location.pathname;'),
'/blank.html')
+ def testGetCookieByName(self):
+ unittest_data_dir = os.path.join(os.path.dirname(__file__),
+ '..', 'unittest_data')
+ self._browser.SetHTTPServerDirectory(unittest_data_dir)
+ self._tab.page.Navigate(
+ self._browser.http_server.UrlOf('blank.html'))
+ self._tab.WaitForDocumentReadyStateToBeComplete()
+ self._tab.runtime.Execute('document.cookie="foo=bar"')
+ self.assertEquals(self._tab.page.GetCookieByName('foo'), 'bar')
+
+
class GpuInspectorPageTest(tab_test_case.TabTestCase):
def setUp(self):
self._extra_browser_args = ['--enable-gpu-benchmarking']
« no previous file with comments | « tools/telemetry/telemetry/inspector_page.py ('k') | tools/telemetry/telemetry/page_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698