Skip to content

Commit

Permalink
Core: Convert tests to new infrastructure
Browse files Browse the repository at this point in the history
Ref #10119
Ref gh-1528
  • Loading branch information
scottgonzalez committed Apr 9, 2015
1 parent f908a77 commit 9fb04e4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
17 changes: 2 additions & 15 deletions tests/unit/core/core.html
Expand Up @@ -4,21 +4,8 @@
<meta charset="utf-8">
<title>jQuery UI Core Test Suite</title>

<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit/qunit.css">
<script src="../../../external/qunit/qunit.js"></script>
<script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
<script>
TestHelpers.loadResources({
js: [ "ui/core.js" ]
});
</script>

<script src="core.js"></script>
<script src="selector.js"></script>

<script src="../swarminject.js"></script>
<script src="../../lib/css.js"></script>
<script src="../../lib/bootstrap.js" data-modules="core selector"></script>
<style>
.zindex {
z-index: 100;
Expand Down
10 changes: 7 additions & 3 deletions tests/unit/core/core.js
@@ -1,8 +1,12 @@
(function( $ ) {
define( [
"jquery",
"lib/common",
"ui/core"
], function( $, common ) {

module( "core - jQuery extensions" );

TestHelpers.testJshint( "core" );
common.testJshint( "core" );

test( "innerWidth - getter", function() {
expect( 2 );
Expand Down Expand Up @@ -134,4 +138,4 @@ test( "uniqueId / removeUniqueId", function() {
equal( el.attr( "id" ), null, "unique id has been removed from element" );
});

})( jQuery );
} );
7 changes: 5 additions & 2 deletions tests/unit/core/selector.js
@@ -1,4 +1,7 @@
(function( $ ) {
define( [
"jquery",
"ui/core"
], function( $ ) {

module( "core - selectors" );

Expand Down Expand Up @@ -251,4 +254,4 @@ test( "tabbable - dimensionless parent with overflow", function() {
isTabbable( "#dimensionlessParent", "input" );
});

})( jQuery );
} );

0 comments on commit 9fb04e4

Please sign in to comment.