Sha256: 0dfb221cbff35e2a2e92f2fc7d5f26cade0bf569a65c066f0825920a238d0e13

Contents?: true

Size: 1.63 KB

Versions: 19

Compression:

Stored size: 1.63 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/jquery-1.4.2.min.js"></script>
  <script src="../../dist/jquery/jquery.livequery.js"></script>
  <script src="../../src/o_O.js"></script>
  <script src="../../src/modules/o_O.model.js"></script>
  <script src="../../src/modules/o_O.validations.js"></script>
  <script src="../../src/drivers/jquery/adapters/o_O.dom.js"></script>
  <script src="../../src/drivers/jquery/modules/o_O.controller.js"></script>
  <script src="../../src/drivers/jquery/modules/o_O.support.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

19 entries across 19 versions & 1 rubygems

Version Path
eyeballs-0.5.10.1 test/unit/test_form.html
eyeballs-0.5.10 test/unit/test_form.html
eyeballs-0.5.9 test/unit/test_form.html
eyeballs-0.5.8.2 test/unit/test_form.html
eyeballs-0.5.8.1 test/unit/test_form.html
eyeballs-0.5.8 test/unit/test_form.html
eyeballs-0.5.7.2 test/unit/test_form.html
eyeballs-0.5.7.1 test/unit/test_form.html
eyeballs-0.5.7 test/unit/test_form.html
eyeballs-0.5.6.1 test/unit/test_form.html
eyeballs-0.5.6 test/unit/test_form.html
eyeballs-0.5.5 test/unit/test_form.html
eyeballs-0.5.4 test/unit/test_form.html
eyeballs-0.5.3 test/unit/test_form.html
eyeballs-0.5.2 test/unit/test_form.html
eyeballs-0.5.1 test/unit/test_form.html
eyeballs-0.5.0 test/unit/test_form.html
eyeballs-0.4.2 test/unit/test_form.html
eyeballs-0.4.1 test/unit/test_form.html