mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Updated docs, removed half-baked fetchlink unit tests.
This commit is contained in:
parent
f914ccf353
commit
708f7b1b05
6 changed files with 18 additions and 105 deletions
|
|
@ -10,7 +10,7 @@ ol.ui-listview .ui-link-inherit:before, ol.ui-listview .ui-li-static:before, .ui
|
|||
ol.ui-listview .ui-li-jsnumbering:before { content: "" !important; } /* to avoid chance of duplication */
|
||||
.ui-listview-inset .ui-li { border-right-width: 1px; border-left-width: 1px; }
|
||||
.ui-li:last-child, .ui-li.ui-field-contain:last-child { border-bottom-width: 1px; }
|
||||
.ui-li>.ui-btn-inner { display: block; position: relative; padding: 0; }
|
||||
.ui-li>.ui-btn-inner { display: block; position: relative; padding-right: 0; }
|
||||
.ui-li .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li { padding: .7em 15px .7em 15px; display: block; }
|
||||
.ui-li-has-thumb .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-thumb { min-height: 60px; padding-left: 100px; }
|
||||
.ui-li-has-icon .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-icon { min-height: 20px; padding-left: 40px; }
|
||||
|
|
|
|||
|
|
@ -105,7 +105,23 @@
|
|||
<li data-icon="alert"><a href="#">Alerts</a></li>
|
||||
<li data-icon="false"><a href="#">No icon</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h2>Icon positioning</h2>
|
||||
|
||||
<p>The default icon position for each list item is to the right. To override this, set the <code>data-iconpos="left"</code> attribute on the desired list item.</p>
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
<li data-iconpos="left"><a href="#">Left to Right</a></li>
|
||||
<li data-iconpos="right"><a href="#">Right to Left</a></li>
|
||||
<li><a href="#">Left to Right</a></li>
|
||||
</code>
|
||||
</pre>
|
||||
<ul data-role="listview">
|
||||
<li data-iconpos="left"><a href="#">Left to Right</a></li>
|
||||
<li data-iconpos="right"><a href="#">Right to Left</a></li>
|
||||
<li><a href="#">Also Left to Right</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Theming split buttons</h2>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>jQuery Mobile Event Test Suite</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<blockquote class="bq">
|
||||
<p>“You will not apply my precept,” he said, shaking his head. “How often have I said to you that when you have eliminated the impossible, whatever remains, however improbable, must be the truth?”</p>
|
||||
<address>Arthur Conan Doyle</address>
|
||||
<cite>Sherlock Holmes: The Sign of the Four</cite>
|
||||
</blockquote>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>jQuery Mobile Event Test Suite</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<blockquote class="bq">
|
||||
<p>“What the deuce is it to me?” he interrupted impatiently; “you say that we go ’round the sun. If we went ’round the moon it would not make a pennyworth of difference to me or to my work.”</p>
|
||||
<address>Arthur Conan Doyle</address>
|
||||
<cite>Sherlock Holmes: A Study in Scarlet</cite>
|
||||
</blockquote>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
/*
|
||||
* fetchlink unit tests
|
||||
*/
|
||||
|
||||
(function($){
|
||||
|
||||
module( 'jquery.mobile.fetchlink.js' );
|
||||
|
||||
test( "This test knows what the hell I’m talking about.", function(){
|
||||
ok( $( "#typeless-input" ).hasClass( "ui-input-text" ) );
|
||||
});
|
||||
|
||||
test( "This test does nothing.", function(){
|
||||
expect( 2 );
|
||||
|
||||
ok( true, "This is true.")
|
||||
equal( false, false, "False equals false." );
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>jQuery Mobile Event Test Suite</title>
|
||||
|
||||
<script src="../../../js/jquery.js"></script>
|
||||
<script src="../jquery.setNameSpace.js"></script>
|
||||
<script src="../../../js/"></script>
|
||||
<script src="../../jquery.testHelper.js"></script>
|
||||
<link rel="stylesheet" href="../../../css/themes/default/" />
|
||||
<link rel="stylesheet" href="../../../external/qunit.css"/>
|
||||
<script src="../../../external/qunit.js"></script>
|
||||
|
||||
<script src="fetchlink_core.js"></script>
|
||||
|
||||
<script src="../swarminject.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1 id="qunit-header">jQuery Mobile Event Test Suite</h1>
|
||||
<h2 id="qunit-banner"></h2>
|
||||
<h2 id="qunit-userAgent"></h2>
|
||||
<ol id="qunit-tests">
|
||||
</ol>
|
||||
|
||||
<div id="qunit-fixture"></div>
|
||||
|
||||
<div id="foo" data-nstest-role="page" style="position: static !important; top: 0 !important;">
|
||||
|
||||
<ul data-nstest-target=".loadinto" data-nstest-fragment="[data-role='content']">
|
||||
<li><a href="ext-1.html">Quote 1</a></li>
|
||||
<li><a href="ext-2.html">Quote 2</a>
|
||||
</ul>
|
||||
|
||||
<a href="ext-1.html" data-nstest-role="listview" >Quote 1</a>
|
||||
|
||||
<div class="loadinto">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in a new issue