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:
Leo Horie 2016-09-12 10:21:40 -04:00 committed by GitHub
commit cadb4622f9
2 changed files with 7 additions and 1 deletions

View file

@ -95,7 +95,7 @@ module.exports = function (grunt) { // eslint-disable-line
mocha_phantomjs: { // eslint-disable-line camelcase
test: {
src: ["test/index.html"],
src: ["test/index.html", "tests/index.html"],
options: {
reporter: "dot"
}

View file

@ -4,5 +4,11 @@
<script src="mock.js"></script>
<script src="../mithril.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>