Permalink
Browse files

Filterable backcompat: Correctly spell name of option "hideDividers"

Fixes #6702
  • Loading branch information...
gabrielschulhof committed Dec 21, 2013
1 parent 246c455 commit 30c669a6bea392e69c4381279a0bd32bc20e1b18
@@ -74,7 +74,7 @@ $.widget( "mobile.filterable", $.mobile.filterable, {
if ( !!this._widget ) {
this._syncTextInputOptions( this._widget.options );
if ( this._widget.widgetName === "listview" ) {
this._widget.options.hidedividers = true;
this._widget.options.hideDividers = true;
this._widget.element.listview( "refresh" );
}
}
@@ -0,0 +1,13 @@
/*
* mobile filter unit tests - listview
*/
( function( $ ){
module( "Backwards compatibility tests" );
test( "Listview with filter has hideDividers option set to true", function() {
deepEqual( $( "#hidedividers-option-test" ).listview( "option", "hideDividers" ), true );
});
})( jQuery );
@@ -0,0 +1,59 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Filter Integration Test</title>
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
<script src="../../jquery.setNameSpace.js"></script>
<script src="../../jquery.testHelper.js"></script>
<script src="../../../external/qunit.js"></script>
<script>
$.testHelper.asyncLoad([
[ "widgets/page" ],
[
"jquery.mobile.navigation",
"widgets/listview",
"widgets/filterable",
"widgets/filterable.backcompat",
"widgets/listview.autodividers",
"widgets/toolbar",
"widgets/collapsible",
"widgets/forms/button",
"widgets/controlgroup",
"widgets/forms/select",
"widgets/forms/textinput",
"jquery.mobile.buttonMarkup",
"widgets/forms/checkboxradio"
],
[ "jquery.mobile.init" ],
[ "filterable_core.js" ]
]);
</script>
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../../external/qunit.css"/>
<script src="../../swarminject.js"></script>
</head>
<body>
<h1 id="qunit-header">jQuery Mobile Filter Integration Test</h1>
<h2 id="qunit-banner"></h2>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>
<div data-nstest-role="page">
<div class="ui-content">
<div id="hidedividers-option-test" data-nstest-role="listview" data-nstest-filter="true">
</div>
</div>
</div>
</body>
</html>

0 comments on commit 30c669a

Please sign in to comment.