Permalink
Browse files

some small improvements to the test code, nothing important

  • Loading branch information...
fabiomcosta committed Jun 21, 2012
1 parent ae41f6a commit 68ec82011c25697f1fa8ece6539cc93572b7a5a2
Showing with 25 additions and 26 deletions.
  1. +13 −6 index.html
  2. +1 −1 source/jquery.meio.mask.js
  3. +3 −8 tests/tests.html
  4. +8 −11 tests/visual-tests.html
View
@@ -6,11 +6,18 @@
<title>meioMask Options</title>
</head>
<body>
- <ul>
- <li><a title="visual-tests" href="tests/visual-tests.html">visual-tests jquery-1.2.6</a></li>
- <li><a title="tests" href="tests/tests.html">tests jquery-1.2.6</a></li>
- <li><a title="visual-tests" href="tests/visual-tests.html?version=1.3.2">visual-tests jquery-1.3.2</a></li>
- <li><a title="tests" href="tests/tests.html?version=1.3.2">tests jquery-1.3.2</a></li>
- </ul>
+ <form action="tests/visual-tests.html" method="get">
+ <p><input type="text" name="version" value="1.7.2" /></p>
+ <p><input type="submit" value="Continue &rarr;"></p>
+ </form>
+
+ <form action="tests/tests.html" method="get">
+ <p><input type="text" name="version" value="1.7.2" /></p>
+ <p><input type="submit" value="Continue &rarr;"></p>
+ </form>
+
+ <script>
+ document.getElementsByTagName('input')[0].select();
+ </script>
</body>
</html>
@@ -34,7 +34,7 @@
(function($){
var isIphone = (window.orientation != null),
- // browsers like firefox2 and before and opera doenst have the onPaste event, but the paste feature can be done with the onInput event.
+ // browsers like firefox2 and before and opera doesnt have the onPaste event, but the paste feature can be done with the onInput event.
pasteEvent = (($.browser.opera || ($.browser.mozilla && parseFloat($.browser.version.substr(0,3)) < 1.9 ))? 'input': 'paste');
$.event.special.paste = {
View
@@ -12,20 +12,15 @@
<script>
(function() {
var sources = [
+ '../assets/jquery/jquery.metadata',
'../source/jquery.meio.mask',
'../tests/meio/jquery.meio.mask'
];
var jQueryVersion = location.search.match(/[&?]version=([\d.]+)(?:&|$)/);
+ jQueryVersion = (jQueryVersion) ? jQueryVersion[1] : '1.7.2';
- if (!jQueryVersion) {
- jQueryVersion = '1.2.6';
- sources.unshift('../assets/jquery/jquery.metadata');
- } else {
- jQueryVersion = jQueryVersion[1];
- }
-
- sources.unshift('../assets/jquery/jquery-'+ jQueryVersion);
+ sources.unshift('http://ajax.googleapis.com/ajax/libs/jquery/'+ jQueryVersion +'/jquery');
Builder.build(sources);
}());
View
@@ -16,19 +16,14 @@
<script>
(function() {
var sources = [
+ '../assets/jquery/jquery.metadata',
'../source/jquery.meio.mask'
];
var jQueryVersion = location.search.match(/[&?]version=([\d.]+)(?:&|$)/);
+ jQueryVersion = (jQueryVersion) ? jQueryVersion[1] : '1.7.2';
- if (!jQueryVersion) {
- jQueryVersion = '1.2.6';
- sources.unshift('../assets/jquery/jquery.metadata');
- } else {
- jQueryVersion = jQueryVersion[1];
- }
-
- sources.unshift('../assets/jquery/jquery-'+ jQueryVersion);
+ sources.unshift('http://ajax.googleapis.com/ajax/libs/jquery/'+ jQueryVersion +'/jquery');
Builder.build(sources);
@@ -40,16 +35,18 @@
<script>
(function($){
$(function(){
- $('input:text').setMask();
+ $('input[type="text"]').setMask();
});
})(jQuery);
</script>
</head>
<body>
<div id="content">
- <p><a title="1.2.6" href="?version=1.2.6">1.2.6</a></p>
- <p><a title="1.3.2" href="?version=1.3.2">1.3.2</a></p>
+ <form method="get">
+ <p><input type="text" name="version" value="1.7.2" /></p>
+ <p><input type="submit" value="Continue &rarr;"></p>
+ </form>
<h2>Menu</h2>
<ul>

0 comments on commit 68ec820

Please sign in to comment.