Skip to content

Commit 5541ca9

Browse files
committed
fix tests to reflect initial page dialog support
1 parent 5ff54c9 commit 5541ca9

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed
Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,8 @@
88
<script src="../../../tests/jquery.testHelper.js"></script>
99
<script src="../../../external/qunit.js"></script>
1010
<script src="../../../external/requirejs/require.js"></script>
11-
<script>
12-
$.testHelper.asyncLoad([
13-
[
14-
"jquery.mobile.core",
15-
],
16-
[ "jquery.mobile.init" ],
17-
[ "init_dialog.js" ]
18-
]);
19-
</script>
20-
11+
<script type="text/javascript" src="../../../js/"></script>
12+
<script type="text/javascript" src="init_dialog.js"></script>
2113
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
2214
<link rel="stylesheet" href="../../../external/qunit.css"/>
2315

tests/unit/init/init_dialog.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
module( "jquery.mobile.init dialog load tests" );
66

77
// issue #3275
8-
test( "A document containing no pages and a dialog role div will enhance the div as a page", function() {
9-
ok( $("#foo").hasClass( "ui-page" ), "the div has the page class" );
10-
8+
test( "A document containing no pages and a dialog role div will enhance the div as a dialog", function() {
119
// NOTE this will fail when/if we decide to render it as a dialog
12-
ok( !$("#foo").hasClass( "ui-dialog" ), "the div does NOT have the dialog page class" );
10+
ok( $("#foo").hasClass( "ui-dialog" ), "the div does NOT have the dialog page class" );
1311
});
1412

1513
//NOTE the opposite case is tested everyewhere else in the suite :D

0 commit comments

Comments
 (0)