Permalink
Browse files

Fieldcontain: Remove deprecated fieldcontain feature

  • Loading branch information...
arschmitz committed May 6, 2015
1 parent bfd528c commit 483342c35a21bf385349f005eedf2fc0740e9145
Showing with 0 additions and 90 deletions.
  1. +0 −27 tests/unit/field-contain/fieldContain_events.js
  2. +0 −63 tests/unit/field-contain/index.html
@@ -1,27 +0,0 @@
/*
* mobile dialog unit tests
*/
( function( $ ) {
module( 'jquery.mobile.fieldContain.js' );
test( "Field container will create when inside a container that receives a 'create' event", function() {
ok( !$( "#enhancetest" ).appendTo( ".ui-page-active" ).find( ".ui-field-contain" ).length, "did not have enhancements applied" );
ok( $( "#enhancetest" ).trigger( "create" ).find( ".ui-field-contain" ).length, "enhancements applied" );
} );
test( "field containers inside ignore container should not be enhanced", function() {
var $ignored = $( "#ignored-fieldcontain" ),
$enhanced = $( "#enhanced-fieldcontain" );
$.mobile.ignoreContentEnabled = true;
$( "#ignore-container-tests" ).trigger( "create" );
ok( !$ignored.hasClass( "ui-field-contain" ),
"ignored div does not have field contain class" );
ok( $enhanced.hasClass( "ui-field-contain" ), "enhanced div has field contain class" );
$.mobile.ignoreContentEnabled = false;
} );
} )( jQuery );
@@ -1,63 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>jQuery Mobile FieldContain 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="../../../tests/jquery.testHelper.js"></script>
<script src="../../../external/qunit/qunit.js"></script>
<script>
$.testHelper.asyncLoad([
[
"fieldContain"
],
[ "init" ],
[
"./fieldContain_events.js"
]
]);
</script>
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit/qunit.css"/>
<link rel="stylesheet" href="../../jqm-tests.css"/>
<script src="../../swarminject.js"></script>
</head>
<body>
<div id="qunit"></div>
<div data-nstest-role="page">
<!-- Basic fieldcontain test -->
<div id="test-fieldcontain" data-nstest-role="fieldcontain">
<label for="name">Text Input:</label>
<input type="text" name="name" id="name" value="" />
</div>
</div>
<div id="enhancetest">
<div data-nstest-role="fieldcontain">
</div>
</div>
<div id="ignore-container-tests">
<div data-nstest-enhance="false">
<div data-nstest-role="fieldcontain" id="ignored-fieldcontain">
</div>
</div>
<div>
<div data-nstest-role="fieldcontain" id="enhanced-fieldcontain">
</div>
</div>
</div>
</body>
</html>

0 comments on commit 483342c

Please sign in to comment.