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