Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

95 lines (87 sloc) 3.006 kb
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
* WYMeditor : what you see is What You Mean web-based editor
* Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
* Dual licensed under the MIT (MIT-license.txt)
* and GPL (GPL-license.txt) licenses.
*
* For further information visit:
* http://www.wymeditor.org/
*
* File Name:
* test.html
* WYMeditor unit tests.
* See the documentation for more info.
*
* File Authors:
* Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg)
* Wes Winham
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>WYMeditor Test Suite</title>
<link rel="stylesheet" href="qunit.css" type="text/css" media="screen" />
<script type="text/javascript" src="../load-src.dev.js"></script>
<script type="text/javascript">
// Read the URL params to allow switching the version of jquery
// Adapted from qunit.js code
// To test using jquery 1.6.2 on google's CDN, for example, use:
// unit/?jquery=1.6.2
var queryString = window.location.search;
var params = queryString.slice(1).split("&");
var length = params.length;
var urlParams = {};
var current;
if (length > 0) {
for (var i = 0; i < length; i++) {
current = params[i].split( "=" );
current[0] = decodeURIComponent(current[0]);
// allow just a key to turn on a flag, e.g., test.html?noglobals
current[1] = current[1] ? decodeURIComponent(current[1]) : true;
urlParams[current[0]] = current[1];
}
}
loadWymSrc(
'../../',
[
// Plugins
"../../wymeditor/plugins/embed/jquery.wymeditor.embed.js",
"../../wymeditor/plugins/list/jquery.wymeditor.list.js",
"../../wymeditor/plugins/table/jquery.wymeditor.table.js",
"qunit.js",
"qunit-tap.js",
// Test files
"utils.js",
"test.js",
"lists.js",
"blocking_elements.js",
"table_test.js",
"embed.js"
],
urlParams['jquery']
);
</script>
<script>
if (urlParams.tapOutput) {
// Only provide tap output when ?tapOutput=true
// When running via phantomJS, use that URL
qunitTap(QUnit, function() { console.log.apply(console, arguments); }, {noPlan: true});
}
</script>
</head>
<body>
<h1 id="qunit-header">WYMeditor Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<div>
<form method="post" action="">
<textarea class="wymeditor"></textarea>
<input type="submit" class="wymupdate" />
<input type="button" class="wymclear" name="Clear" value="Clear" />
</form>
</div>
<ol id="qunit-tests"></ol>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.