Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qunit updated #660

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions README.md

This file was deleted.

18 changes: 11 additions & 7 deletions tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,28 @@
along with Kiwix (file LICENSE-GPLv3.txt). If not, see <http://www.gnu.org/licenses/>
-->

<link rel="stylesheet" href="tests/qunit-2.3.2.css" />
<script src="tests/qunit-2.3.2.js"></script>
<link rel="stylesheet" href="tests/qunit-2.11.3.css" />
<script src="tests/qunit-2.11.3.js"></script>



<!-- Using require.js, a module system for javascript, include the
js files. This loads "main.js", which in turn can load other
files, all handled by require.js:
http://requirejs.org/docs/api.html#jsfiles -->
<script type="text/javascript" src="www/js/lib/xzdec.js"></script>
<script type="text/javascript"
data-main="tests/init.js"
src="www/js/lib/require.js"></script>

<script type="text/javascript" src="www/js/lib/xzdec.js"></script>
<script type="text/javascript"
data-main="tests/init.js"
src="www/js/lib/require.js"></script>

</head>
<body>
<b>NOTE:</b> Firefox and Chrome do not allow access to some local filesystem files used in testing. So, if you're opening this through a file:// URL, you should instead go through a web server : either through a local one (http://localhost/...) or through a remote one (but you need SSL : https://webserver/...).<br/>
Another option is to force your browser to accept that (but you'll open a security breach) : on Chrome, you can start it with --allow-file-access-from-files command-line argument; on Firefox, you can set privacy.file_unique_origin to false in about:config
<div id="qunit"></div>
<div id="qunit-fixture"></div>


</body>
</html>
27 changes: 21 additions & 6 deletions tests/qunit-2.3.2.css → tests/qunit-2.11.3.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
/*!
* QUnit 2.3.2
* QUnit 2.11.3
* https://qunitjs.com/
*
* Copyright jQuery Foundation and other contributors
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2017-04-18T02:19Z
* Date: 2020-10-05T01:34Z
*/

/** Font Family and Sizes */

/* Style our buttons in a simple way, uninfluenced by the styles
the tested app might load. Don't affect buttons in #qunit-fixture!
https://github.com/qunitjs/qunit/pull/1395
https://github.com/qunitjs/qunit/issues/1437 */
#qunit-testrunner-toolbar button,
#qunit-testresult button {
font-size: initial;
border: initial;
background-color: buttonface;
}

#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult {
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
}
Expand Down Expand Up @@ -98,6 +109,10 @@
height: 1.6em;
}

#qunit-toolbar-filters {
float: right;
}

.qunit-url-config,
.qunit-filter,
#qunit-modulefilter {
Expand All @@ -107,7 +122,6 @@

.qunit-filter,
#qunit-modulefilter {
float: right;
position: relative;
margin-left: 1em;
}
Expand All @@ -118,7 +132,7 @@

#qunit-modulefilter-search {
box-sizing: border-box;
width: 400px;
min-width: 400px;
}

#qunit-modulefilter-search-container:after {
Expand All @@ -131,7 +145,7 @@
#qunit-modulefilter-dropdown {
/* align with #qunit-modulefilter-search */
box-sizing: border-box;
width: 400px;
min-width: 400px;
position: absolute;
right: 0;
top: 50%;
Expand Down Expand Up @@ -204,6 +218,7 @@
#qunit-modulefilter-dropdown-list .clickable {
display: block;
padding-left: 0.15em;
padding-right: 0.5em;
}


Expand Down
Loading