|  |  |  | 
|---|
|  |  |  | <link rel='stylesheet' href='qunit/qunit.css' type='text/css'/> | 
|---|
|  |  |  | <script type='text/javascript' src='../editor/lib/jquery.js'></script> | 
|---|
|  |  |  | <script type='text/javascript' src='../editor/src/units.js'></script> | 
|---|
|  |  |  | <script type='text/javascript' src='qunit/qunit.js'></script> | 
|---|
|  |  |  | <script type='text/javascript' src='qunit/qunit.js'></script> | 
|---|
|  |  |  | <script type='text/javascript'> | 
|---|
|  |  |  | $(function() { | 
|---|
|  |  |  | // log function | 
|---|
|  |  |  | 
|---|
|  |  |  | getElement:function(elementId){ return document.getElementById(elementId);} | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | test('Test svgedit.units package', function() { | 
|---|
|  |  |  | expect(2); | 
|---|
|  |  |  | ok(svgedit.units); | 
|---|
|  |  |  | 
|---|
|  |  |  | expect(7); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | setUp(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ok(svgedit.units.shortFloat); | 
|---|
|  |  |  | equals(typeof svgedit.units.shortFloat, typeof function(){}); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | expect(18); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | setUp(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ok(svgedit.units.isValidUnit); | 
|---|
|  |  |  | equals(typeof svgedit.units.isValidUnit, typeof function(){}); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  | </head> | 
|---|
|  |  |  | <body> | 
|---|
|  |  |  | </head> | 
|---|
|  |  |  | <body> | 
|---|
|  |  |  | <h1 id='qunit-header'>Unit Tests for units.js</h1> | 
|---|
|  |  |  | <h2 id='qunit-banner'></h2> | 
|---|
|  |  |  | <h2 id='qunit-userAgent'></h2> | 
|---|
|  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </body> | 
|---|
|  |  |  | </body> | 
|---|
|  |  |  | </html> | 
|---|