-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7706 from ashcoding/TIMOB-20229
[TIMOB-20229] Android: WebView and Cookie fix
- Loading branch information
Showing
3 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
/* | ||
* Appcelerator Titanium Mobile | ||
* Copyright (c) 2011-2015 by Appcelerator, Inc. All Rights Reserved. | ||
* Licensed under the terms of the Apache Public License | ||
* Please see the LICENSE included with this distribution for details. | ||
*/ | ||
var should = require('./should'); | ||
|
||
describe("Titanium.Network.Cookie", function () { | ||
it("cookie", function (finish) { | ||
var url = 'http://www.appcelerator.com/'; | ||
var d = new Date(); | ||
d.setTime(d.getTime() + (2 * 24 * 60 * 60 * 1000)); | ||
var cookie = Ti.Network.createCookie({ | ||
name : 'helloWorld', | ||
domain : url, | ||
value : "testCookie", | ||
expiryDate : d, | ||
}); | ||
should(cookie.name).eql('helloWorld'); | ||
should(cookie.getName()).eql('helloWorld'); | ||
should(cookie.url).eql(url); | ||
should(cookie.getUrl()).eql(url); | ||
finish(); | ||
}); | ||
}); |