diff --git a/tests/unit/checkboxradio/checkboxradio_core.js b/tests/unit/checkboxradio/checkboxradio_core.js index dc4f782e..8a9c0c91 100644 --- a/tests/unit/checkboxradio/checkboxradio_core.js +++ b/tests/unit/checkboxradio/checkboxradio_core.js @@ -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); diff --git a/tests/unit/checkboxradio/index.html b/tests/unit/checkboxradio/index.html index d2350f15..d7a78dfc 100644 --- a/tests/unit/checkboxradio/index.html +++ b/tests/unit/checkboxradio/index.html @@ -75,10 +75,13 @@ - - - - +
+
+ Agree to the terms: + + +
+