mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
test for enhanceWithin use
This commit is contained in:
parent
aa16aec358
commit
63ab61cb89
2 changed files with 12 additions and 4 deletions
|
|
@ -115,5 +115,10 @@
|
|||
ok( $("#enhancetest").trigger("create").find(".ui-checkbox").length, "enhancements applied" );
|
||||
});
|
||||
|
||||
$.mobile.page.prototype.options.keepNative = "select.should-be-native";
|
||||
|
||||
// not testing the positive case here since's it's obviously tested elsewhere
|
||||
test( "checkboxradio elements in the keepNative set shouldn't be enhanced", function() {
|
||||
ok( !$("#input.should-be-native").parent().is("div.ui-checkbox") );
|
||||
});
|
||||
})(jQuery);
|
||||
|
|
|
|||
|
|
@ -75,10 +75,13 @@
|
|||
</fieldset>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div data-role="fieldcontain">
|
||||
<fieldset data-role="controlgroup">
|
||||
<legend>Agree to the terms:</legend>
|
||||
<input type="checkbox" name="checkbox-1" id="checkbox-1" class="should-be-native" />
|
||||
<label for="checkbox-1">I agree</label>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue