Merge pull request #1313 from pygy/restore-old-tests-deliberately-borken
[next] Add the old test suite to the grunt task
This commit is contained in:
commit
cadb4622f9
2 changed files with 7 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ module.exports = function (grunt) { // eslint-disable-line
|
||||||
|
|
||||||
mocha_phantomjs: { // eslint-disable-line camelcase
|
mocha_phantomjs: { // eslint-disable-line camelcase
|
||||||
test: {
|
test: {
|
||||||
src: ["test/index.html"],
|
src: ["test/index.html", "tests/index.html"],
|
||||||
options: {
|
options: {
|
||||||
reporter: "dot"
|
reporter: "dot"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,11 @@
|
||||||
<script src="mock.js"></script>
|
<script src="mock.js"></script>
|
||||||
<script src="../mithril.js"></script>
|
<script src="../mithril.js"></script>
|
||||||
<script src="mithril-tests.js"></script>
|
<script src="mithril-tests.js"></script>
|
||||||
|
<script>
|
||||||
|
// shim for running the old test suite with grunt-mocha-phantomjs like the new one
|
||||||
|
if ('callPhantom' in window) {
|
||||||
|
window.callPhantom({ testRunEnded: 1})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<p>Open the console to see the test report</p>
|
<p>Open the console to see the test report</p>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue