| OLD | NEW |
| (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() |
| OLD | NEW |