Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (39 sloc) 1.574 kb
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
<title>tinymce.util.Cookie tests</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" href="" type="text/css" />
<script src=""></script>
<script src="qunit/connector.js"></script>
<script type="text/javascript" src="qunit/runner.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/tiny_mce_loader.js"></script>
QUnit.config.reorder = false;
(function() {
var Cookie = tinymce.util.Cookie;
test('set/get', 4, function() {
var f = document.location.protocol == 'file:';
Cookie.set('test', 'test123');
equal(Cookie.get('test'), 'test123', null, f);
Cookie.set('test', 'test1234');
equal(Cookie.get('test'), 'test1234', null, f);
Cookie.setHash('test', {a : 1, b : 2});
ok(Cookie.getHash('test') ? Cookie.getHash('test').b == 2 : null, null, f);
Cookie.setHash('test', {a : 1, b : 3});
ok(Cookie.getHash('test') ? Cookie.getHash('test').b == 3 : null, null, f);
<h1 id="qunit-header">tinymce.util.Cookie tests</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="content"></div>
Jump to Line
Something went wrong with that request. Please try again.