Skip to content

Commit cbbebf0

Browse files
committed
Tests: Added inclusion of define shim to allow reloadLib to work properly
1 parent 3c18668 commit cbbebf0

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

tests/unit/init/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<script src="../../../external/qunit.js"></script>
1010
<script src="../../jquery.testHelper.js"></script>
1111
<script src="init_core.js"></script>
12+
<!-- Because our reloading code reloads our AMD modules
13+
but now tests are running against the built bundle, we need to include the define shim
14+
in order for the reload to work -->
15+
<script src="../../../js/jquery.mobile.define.js"></script>
1216
<script src="../../../js/"></script>
1317
<!-- added explicitly for library reloading (see testHelper ) -->
1418
<script data-src="../../../js/jquery.mobile.init.js"></script>

tests/unit/navigation/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
$.testHelper.setPushState();
1414
});
1515
</script>
16-
<script src="../../../js/"></script>
16+
<!-- Because our reloading code reloads our AMD modules
17+
but now tests are running against the built bundle, we need to include the define shim
18+
in order for the reload to work -->
19+
<script src="../../../js/jquery.mobile.define.js"></script>
20+
<script src="../../../js/"></script>
1721
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
1822
<link rel="stylesheet" href="../../../external/qunit.css"/>
1923
<script src="../../../external/qunit.js"></script>

tests/unit/path/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
<script src="../../../js/requirejs.config.js"></script>
99
<script src="../../../js/jquery.tag.inserter.js"></script>
1010
<script src="../jquery.setNameSpace.js"></script>
11-
<script src="../../../tests/jquery.testHelper.js"></script>
11+
<script src="../../../tests/jquery.testHelper.js"></script>
1212
<script src="../../../external/qunit.js"></script>
1313
<link rel="stylesheet" href="../../../../external/qunit.css"/>
14+
<!-- Because our reloading code reloads our AMD modules
15+
but now tests are running against the built bundle, we need to include the define shim
16+
in order for the reload to work -->
17+
<script src="../../../js/jquery.mobile.define.js"></script>
1418
<script src="../../../js/"></script>
1519
<script type="text/javascript" src="path_core.js"></script>
1620
<script src="../swarminject.js"></script>

0 commit comments

Comments
 (0)