Skip to content

Commit 4e278b2

Browse files
committed
(fix) Tests: Replace resource loader with AMD
This was supposed to be in the end of the body, not in the fixture div
1 parent 2cfb0f7 commit 4e278b2

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

tests/unit/accordion/accordion.html

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -116,29 +116,30 @@ <h2><a href="?p=1.1.3">Drums</a></h2>
116116
</dd>
117117
</dl>
118118

119-
<script src="../../../external/requirejs/require.js"></script>
120-
<script src="../../../external/qunit/qunit.js"></script>
121-
<script src="../swarminject.js"></script>
122-
<script src="../helper/jquery.js"></script>
123-
<script>
124-
QUnit.config.autostart = false;
125-
require.config({
126-
paths: {
127-
"helper": "../helper",
128-
"jquery": window.helper.jqueryUrl(),
129-
"jquery.simulate": "../../../external/jquery-simulate/jquery.simulate",
130-
"jshint": "../../../external/jshint/jshint",
131-
"ui": "../../../ui"
132-
},
133-
shim: {
134-
"jquery.simulate": [ "jquery" ]
135-
}
136-
});
137-
require([ "./accordion" ], function() {
138-
QUnit.start();
139-
});
140-
</script>
141-
142119
</div>
120+
121+
<script src="../../../external/requirejs/require.js"></script>
122+
<script src="../../../external/qunit/qunit.js"></script>
123+
<script src="../swarminject.js"></script>
124+
<script src="../helper/jquery.js"></script>
125+
<script>
126+
QUnit.config.autostart = false;
127+
require.config({
128+
paths: {
129+
"helper": "../helper",
130+
"jquery": window.helper.jqueryUrl(),
131+
"jquery.simulate": "../../../external/jquery-simulate/jquery.simulate",
132+
"jshint": "../../../external/jshint/jshint",
133+
"ui": "../../../ui"
134+
},
135+
shim: {
136+
"jquery.simulate": [ "jquery" ]
137+
}
138+
});
139+
require([ "./accordion" ], function() {
140+
QUnit.start();
141+
});
142+
</script>
143+
143144
</body>
144145
</html>

0 commit comments

Comments
 (0)