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

Unified Diff: chrome/test/functional/cookies.py

Issue 2903008: Expose cookie get/set to pyauto (Closed)
Patch Set: Final Created 10 years, 5 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 | « chrome/test/functional/PYAUTO_TESTS ('k') | chrome/test/pyautolib/pyautolib.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/cookies.py
diff --git a/chrome/test/functional/cookies.py b/chrome/test/functional/cookies.py
new file mode 100644
index 0000000000000000000000000000000000000000..5a3a60bcbd541d110126e47b6d941740f1c9640e
--- /dev/null
+++ b/chrome/test/functional/cookies.py
@@ -0,0 +1,25 @@
+#!/usr/bin/python
+# Copyright (c) 2010 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 os
+
+import pyauto_functional # Must be imported before pyauto
+import pyauto
+
+
+class CookiesTest(pyauto.PyUITest):
+ """Tests for Cookies."""
+
+ def testCookies(self):
+ """Test setting cookies and getting the value."""
+ cookie_url = pyauto.GURL(self.GetFileURLForPath(
+ os.path.join(self.DataDir(), 'title1.html')))
+ cookie_val = 'foo=bar'
+ self.SetCookie(cookie_url, cookie_val)
+ self.assertEqual(cookie_val, self.GetCookie(cookie_url))
+
+
+if __name__ == '__main__':
+ pyauto_functional.Main()
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | chrome/test/pyautolib/pyautolib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698