Backed out changeset d5d1935726bb (bug 1407695)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Tue, 24 Oct 2017 18:48:47 +0200
changeset 685766 48aa910c888f8400372d73a377476ab56592d52a
parent 685765 6e6cacf776f3dbd81f5d527b86b11e3078244ebe
child 685767 ee9ac079ab0ecb1e6e011094cb227e5c36fe5dcf
push id86016
push userkgupta@mozilla.com
push dateWed, 25 Oct 2017 01:53:44 +0000
bugs1407695
milestone58.0a1
backs outd5d1935726bbca66eba72670ffc461d444455519
Backed out changeset d5d1935726bb (bug 1407695)
testing/web-platform/tests/webdriver/tests/cookies/get_named_cookie.py
--- a/testing/web-platform/tests/webdriver/tests/cookies/get_named_cookie.py
+++ b/testing/web-platform/tests/webdriver/tests/cookies/get_named_cookie.py
@@ -1,12 +1,12 @@
 from tests.support.inline import inline
 from tests.support.fixtures import clear_all_cookies
 
-def test_get_named_session_cookie(session, url):
+def test_get_named_cookie(session, url):
     session.url = url("/common/blank.html")
     clear_all_cookies(session)
     session.execute_script("document.cookie = 'foo=bar'")
 
     result = session.transport.send("GET", "session/%s/cookie/foo" % session.session_id)
     assert result.status == 200
     assert isinstance(result.body["value"], dict)
 
@@ -21,17 +21,17 @@ def test_get_named_session_cookie(sessio
     assert isinstance(cookie["path"], basestring)
     assert "domain" in cookie
     assert isinstance(cookie["domain"], basestring)
     assert "secure" in cookie
     assert isinstance(cookie["secure"], bool)
     assert "httpOnly" in cookie
     assert isinstance(cookie["httpOnly"], bool)
     assert "expiry" in cookie
-    assert cookie.get("expiry") is None
+    assert isinstance(cookie["expiry"], (int, long))
 
     assert cookie["name"] == "foo"
     assert cookie["value"] == "bar"
 
 def test_duplicated_cookie(session, url):
     session.url = url("/common/blank.html")
     clear_all_cookies(session)
     create_cookie_request = {