From 63ab61cb89bed85fe67edd851e1b334fdede00ee Mon Sep 17 00:00:00 2001 From: John Bender Date: Mon, 10 Oct 2011 13:50:06 -0700 Subject: [PATCH] test for enhanceWithin use --- tests/unit/checkboxradio/checkboxradio_core.js | 5 +++++ tests/unit/checkboxradio/index.html | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) 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: + + +
+