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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | chrome/test/pyautolib/pyautolib.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/python
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import os
7
8 import pyauto_functional # Must be imported before pyauto
9 import pyauto
10
11
12 class CookiesTest(pyauto.PyUITest):
13 """Tests for Cookies."""
14
15 def testCookies(self):
16 """Test setting cookies and getting the value."""
17 cookie_url = pyauto.GURL(self.GetFileURLForPath(
18 os.path.join(self.DataDir(), 'title1.html')))
19 cookie_val = 'foo=bar'
20 self.SetCookie(cookie_url, cookie_val)
21 self.assertEqual(cookie_val, self.GetCookie(cookie_url))
22
23
24 if __name__ == '__main__':
25 pyauto_functional.Main()
OLDNEW
« 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