Lines Matching refs:text
224 var text = Y.Cookie._createCookieString("name", "value", true);
225 Assert.areEqual("name=value", text, "Cookie string is incorrect.");
229 var text = Y.Cookie._createCookieString("name", "value", true, { path: "/" });
230 Assert.areEqual("name=value; path=/", text, "Cookie string is incorrect.");
234 var text = Y.Cookie._createCookieString("name", "value", true, { path: 25 });
235 Assert.areEqual("name=value", text, "Cookie string is incorrect.");
239 var text = Y.Cookie._createCookieString("name", "value", true, { path: "" });
240 Assert.areEqual("name=value", text, "Cookie string is incorrect.");
244 var text = Y.Cookie._createCookieString("name", "value", true, { domain: "yahoo.com" });
245 Assert.areEqual("name=value; domain=yahoo.com", text, "Cookie string is incorrect.");
249 var text = Y.Cookie._createCookieString("name", "value", true, { domain: true });
250 Assert.areEqual("name=value", text, "Cookie string is incorrect.");
254 var text = Y.Cookie._createCookieString("name", "value", true, { domain: "" });
255 Assert.areEqual("name=value", text, "Cookie string is incorrect.");
259 var text = Y.Cookie._createCookieString("name", "value", true, { secure: true });
260 Assert.areEqual("name=value; secure", text, "Cookie string is incorrect.");
264 var text = Y.Cookie._createCookieString("name", "value", true, { secure: false });
265 Assert.areEqual("name=value", text, "Cookie string is incorrect.");
269 var text = Y.Cookie._createCookieString("name", "value", true, { secure: "blah" });
270 Assert.areEqual("name=value", text, "Cookie string is incorrect.");
275 var text = Y.Cookie._createCookieString("name", "value", true, { expires: expires });
276 Assert.areEqual("name=value; expires=" + expires.toUTCString(), text, "Cookie string is incorrect.");
280 var text = Y.Cookie._createCookieString("name", "value", true, { expires: "blah" });
281 Assert.areEqual("name=value", text, "Cookie string is incorrect.");
286 var text = Y.Cookie._createCookieString("name", "value", true, { expires: expires, domain : "yahoo.com", path: "/", secure: true });
287 Assert.areEqual("name=value; expires=" + expires.toUTCString() + "; path=/; domain=yahoo.com; secure", text, "Cookie string is incorrect.");
293 var text = Y.Cookie._createCookieString(name, value, true);
294 Assert.areEqual(encodeURIComponent(name) + "=" + encodeURIComponent(value), text, "Cookie string is incorrect.");
300 var text = Y.Cookie._createCookieString(name, value, true, { path : "/" });
301 Assert.areEqual(encodeURIComponent(name) + "=" + encodeURIComponent(value) + "; path=/", text, "Cookie string is incorrect.");
307 var text = Y.Cookie._createCookieString(name, value, true, { domain: "yahoo.com" });
308 Assert.areEqual(encodeURIComponent(name) + "=" + encodeURIComponent(value) + "; domain=yahoo.com", text, "Cookie string is incorrect.");
314 var text = Y.Cookie._createCookieString(name, value, true, { secure: true });
315 Assert.areEqual(encodeURIComponent(name) + "=" + encodeURIComponent(value) + "; secure", text, "Cookie string is incorrect.");
322 var text = Y.Cookie._createCookieString(name, value, true, { expires : expires });
323 Assert.areEqual(encodeURIComponent(name) + "=" + encodeURIComponent(value) + "; expires=" + expires.toUTCString(), text, "Cookie string is incorrect.");
330 var text = Y.Cookie._createCookieString(name, value, true, { expires: expires, domain : "yahoo.com", path: "/", secure: true });
331 Assert.areEqual(encodeURIComponent(name) + "=" + encodeURIComponent(value) + "; expires=" + expires.toUTCString() + "; path=/; domain=yahoo.com; secure", text, "Cookie string is incorrect.");
342 var text = Y.Cookie._createCookieHashString(hash);
343 Assert.areEqual("name=Nicholas%20Zakas&title=Front%20End%20Engineer&something%20else=hiya", text, "Cookie hash string is incorrect.");
352 var text = Y.Cookie._createCookieHashString(hash);
353 Assert.areEqual("name=Nicholas%20Zakas", text, "Cookie hash string is incorrect.");
1098 var text = Y.Cookie.set("name", "value", { path: "/" });
1099 Assert.areEqual("name=value; path=/", text, "Cookie string is incorrect.");
1104 var text = Y.Cookie.set("name", "value", { path: 25 });
1105 Assert.areEqual("name=value", text, "Cookie string is incorrect.");
1110 var text = Y.Cookie.set("name", "value", { path: "" });
1111 Assert.areEqual("name=value", text, "Cookie string is incorrect.");
1116 var text = Y.Cookie.set("name", "value", { domain: "yahoo.com" });
1117 Assert.areEqual("name=value; domain=yahoo.com", text, "Cookie string is incorrect.");
1122 var text = Y.Cookie.set("name", "value", { domain: true });
1123 Assert.areEqual("name=value", text, "Cookie string is incorrect.");
1128 var text = Y.Cookie.set("name", "value", { domain: "" });
1129 Assert.areEqual("name=value", text, "Cookie string is incorrect.");
1135 var text = Y.Cookie.set("name", "value", { secure: true });
1136 Assert.areEqual("name=value; secure", text, "Cookie string is incorrect.");
1141 var text = Y.Cookie.set("name", "value", { secure: false });
1142 Assert.areEqual("name=value", text, "Cookie string is incorrect.");
1147 var text = Y.Cookie.set("name", "value", { secure: "blah" });
1148 Assert.areEqual("name=value", text, "Cookie string is incorrect.");
1154 var text = Y.Cookie.set("name", "value", { expires: expires });
1155 Assert.areEqual("name=value; expires=" + expires.toUTCString(), text, "Cookie string is incorrect.");
1160 var text = Y.Cookie.set("name", "value", { expires: "blah" });
1161 Assert.areEqual("name=value", text, "Cookie string is incorrect.");
1167 var text = Y.Cookie.set("name", "value", { expires: expires, domain : "yahoo.com", path: "/", secure: true });
1168 Assert.areEqual("name=value; expires=" + expires.toUTCString() + "; path=/; domain=yahoo.com; secure", text, "Cookie string is incorrect.");
1176 var text = Y.Cookie.set(name, value);
1177 Assert.areEqual(result, text, "Cookie string is incorrect.");
1185 var text = Y.Cookie.set(name, value, { raw: false });
1186 Assert.areEqual(result, text, "Cookie string is incorrect.");
1194 var text = Y.Cookie.set(name, value, { raw: true });
1195 Assert.areEqual(result, text, "Cookie string is incorrect.");
1203 var text = Y.Cookie.set(name, value, { path : "/" });
1204 Assert.areEqual(result + "; path=/", text, "Cookie string is incorrect.");
1212 var text = Y.Cookie.set(name, value, { domain: "yahoo.com" });
1213 Assert.areEqual(result + "; domain=yahoo.com", text, "Cookie string is incorrect.");
1220 var text = Y.Cookie.set(name, value, { secure: true });
1222 Assert.areEqual(result + "; secure", text, "Cookie string is incorrect.");
1230 var text = Y.Cookie.set(name, value, { expires : expires });
1232 Assert.areEqual(result + "; expires=" + expires.toUTCString(), text, "Cookie string is incorrect.");
1240 var text = Y.Cookie.set(name, value, { expires: expires, domain : "yahoo.com", path: "/", secure: true });
1242 Assert.areEqual(result + "; expires=" + expires.toUTCString() + "; path=/; domain=yahoo.com; secure", text, "Cookie string is incorrect.");
1291 var text = Y.Cookie.setSub("name", "sub", "value", { path: "/" });
1292 Assert.areEqual("name=sub=value; path=/", text, "Cookie string is incorrect.");
1297 var text = Y.Cookie.setSub("name", "sub", "value", { path: 25 });
1298 Assert.areEqual("name=sub=value", text, "Cookie string is incorrect.");
1303 var text = Y.Cookie.setSub("name", "sub", "value", { path: "" });
1304 Assert.areEqual("name=sub=value", text, "Cookie string is incorrect.");
1309 var text = Y.Cookie.setSub("name", "sub", "value", { domain: "yahoo.com" });
1310 Assert.areEqual("name=sub=value; domain=yahoo.com", text, "Cookie string is incorrect.");
1315 var text = Y.Cookie.setSub("name", "sub", "value", { domain: true });
1316 Assert.areEqual("name=sub=value", text, "Cookie string is incorrect.");
1321 var text = Y.Cookie.setSub("name", "sub", "value", { domain: "" });
1322 Assert.areEqual("name=sub=value", text, "Cookie string is incorrect.");
1327 var text = Y.Cookie.setSub("name", "sub", "value", { secure: true });
1328 Assert.areEqual("name=sub=value; secure", text, "Cookie string is incorrect.");
1333 var text = Y.Cookie.setSub("name", "sub", "value", { secure: false });
1334 Assert.areEqual("name=sub=value", text, "Cookie string is incorrect.");
1339 var text = Y.Cookie.setSub("name", "sub", "value", { secure: "blah" });
1340 Assert.areEqual("name=sub=value", text, "Cookie string is incorrect.");
1346 var text = Y.Cookie.setSub("name", "sub", "value", { expires: expires });
1347 Assert.areEqual("name=sub=value; expires=" + expires.toUTCString(), text, "Cookie string is incorrect.");
1352 var text = Y.Cookie.setSub("name", "sub", "value", { expires: "blah" });
1353 Assert.areEqual("name=sub=value", text, "Cookie string is incorrect.");
1359 var text = Y.Cookie.setSub("name", "sub", "value", { expires: expires, domain : "yahoo.com", path: "/", secure: true });
1360 Assert.areEqual("name=sub=value; expires=" + expires.toUTCString() + "; path=/; domain=yahoo.com; secure", text, "Cookie string is incorrect.");
1403 var text = Y.Cookie.setSubs("data", {a: "b",c: "d",e: "f",g: "h"});
1404 Assert.areEqual("data=a=b&c=d&e=f&g=h", text, "Cookie string format is wrong.");
1409 var text = Y.Cookie.setSubs("data", {a: "b",c: "d",e: "f",g: "h"}, { path : "/" });
1410 Assert.areEqual("data=a=b&c=d&e=f&g=h; path=/", text, "Cookie string is incorrect.");
1415 var text = Y.Cookie.setSubs("data", {a: "b",c: "d",e: "f",g: "h"}, { path : 25 });
1416 Assert.areEqual("data=a=b&c=d&e=f&g=h", text, "Cookie string is incorrect.");
1421 var text = Y.Cookie.setSubs("data", {a: "b",c: "d",e: "f",g: "h"}, { path : "" });
1422 Assert.areEqual("data=a=b&c=d&e=f&g=h", text, "Cookie string is incorrect.");
1427 var text = Y.Cookie.setSubs("data", {a: "b",c: "d",e: "f",g: "h"}, { domain: "yahoo.com" });
1428 Assert.areEqual("data=a=b&c=d&e=f&g=h; domain=yahoo.com", text, "Cookie string is incorrect.");
1433 var text = Y.Cookie.setSubs("data", {a: "b",c: "d",e: "f",g: "h"}, { domain: true });
1434 Assert.areEqual("data=a=b&c=d&e=f&g=h", text, "Cookie string is incorrect.");
1439 var text = Y.Cookie.setSubs("data", {a: "b",c: "d",e: "f",g: "h"}, { domain: "" });
1440 Assert.areEqual("data=a=b&c=d&e=f&g=h", text, "Cookie string is incorrect.");
1445 var text = Y.Cookie.setSubs("data", {a: "b",c: "d",e: "f",g: "h"}, { secure: true });
1446 Assert.areEqual("data=a=b&c=d&e=f&g=h; secure", text, "Cookie string is incorrect.");
1451 var text = Y.Cookie.setSubs("data", {a: "b",c: "d",e: "f",g: "h"}, { secure: false });
1452 Assert.areEqual("data=a=b&c=d&e=f&g=h", text, "Cookie string is incorrect.");
1457 var text = Y.Cookie.setSubs("data", {a: "b",c: "d",e: "f",g: "h"}, { secure: "blah" });
1458 Assert.areEqual("data=a=b&c=d&e=f&g=h", text, "Cookie string is incorrect.");
1464 var text = Y.Cookie.setSubs("data", {a: "b",c: "d",e: "f",g: "h"}, { expires: expires });
1465 Assert.areEqual("data=a=b&c=d&e=f&g=h; expires=" + expires.toUTCString(), text, "Cookie string is incorrect.");
1470 var text = Y.Cookie.setSubs("data", {a: "b",c: "d",e: "f",g: "h"}, { expires: "blah" });
1471 Assert.areEqual("data=a=b&c=d&e=f&g=h", text, "Cookie string is incorrect.");
1477 var text = Y.Cookie.setSubs("data", {a: "b",c: "d",e: "f",g: "h"}, { expires: expires, domain : "yahoo.com", path: "/", secure: true });
1478 Assert.areEqual("data=a=b&c=d&e=f&g=h; expires=" + expires.toUTCString() + "; path=/; domain=yahoo.com; secure", text, "Cookie string is incorrect.");
1483 var text = Y.Cookie.setSubs("data", {a: "b",c: "d",e: "f",g: "h"});