Sha256: f9ff88f0d594a87ff6501e571de02104cb43bcbb93e9731b6de3759edc7247c9
Contents?: true
Size: 1.28 KB
Versions: 9
Compression:
Stored size: 1.28 KB
Contents
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="../../dist/jquery-1.4.2.min.js"></script> <script src="../../src/o_O.js"></script> <script src="../../src/jquery.o_O.js"></script> <link rel="stylesheet" href="qunit.css" type="text/css" media="screen" /> <script type="text/javascript" src="qunit.js"></script> <script> var Review = o_O(function(that){ that.validates_presence_of('title'); that.validates_presence_of('content'); return that; }); $(document).ready(function(){ module("Forms"); test('getting form attributes', 2, function(){ equals(o_O.params($('form#test-form')).title, 'Biscuit', 'form attributes should come in nicely') equals(o_O.params($('form#test-form')).selection, "1", 'should work with checkboxes') }); }); </script> </head> <body> <h1 id="qunit-header">Form Tests</h1> <h2 id="qunit-banner"></h2> <h2 id="qunit-userAgent"></h2> <ol id="qunit-tests"></ol> <form id="test-form"> <input type="title" data-attribute="title" type="text" value="Biscuit"> <input type="radio" data-attribute="selection" value="1" checked> <input type="radio" data-attribute="selection" value="-1"> </form> </body> </html>
Version data entries
9 entries across 9 versions & 1 rubygems