Commit 505386fe authored by Mathieu Giraud's avatar Mathieu Giraud

tests: move QUnit.assert.includes into a new file 'qunit-vidjil.js'

We may use 'includes' in other tests.
parent 3222c9d6
...@@ -61,15 +61,6 @@ ...@@ -61,15 +61,6 @@
} }
} }
QUnit.assert.includes = function(result, pattern, message ) {
// Checks that the result includes the pattern
// TODO: see and use qunit-regexp !
var res = result.indexOf(pattern) > -1
this.push(res, res, "{includes} " + pattern, message);
}
QUnit.test("clone : name, informations, getHtmlInfo", function(assert) { QUnit.test("clone : name, informations, getHtmlInfo", function(assert) {
var m = new Model(); var m = new Model();
......
...@@ -69,7 +69,10 @@ ...@@ -69,7 +69,10 @@
<div id="qunit"></div> <div id="qunit"></div>
<div id="qunit-fixture"></div> <div id="qunit-fixture"></div>
<script src="../../js/lib/qunit-2.1.1.js"></script>
<!-- Load QUnit -->
<script type="text/javascript" src="../../js/lib/qunit-2.1.1.js"></script>
<script type="text/javascript" src="./qunit-vidjil.js"></script>
<script type="text/javascript" src="../../js/lib/qunit-tap.1.5.0.js"></script> <script type="text/javascript" src="../../js/lib/qunit-tap.1.5.0.js"></script>
<script src="../../js/lib/blanket.1.1.9.js"></script> <script src="../../js/lib/blanket.1.1.9.js"></script>
<script> <script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment