Commits

Chris Leonello committed dcc95f0

renamed unittest page to index. All build targets (jqplot, min, tests, mintests, docs, clean) seem to be working.

Comments (0)

Files changed (7)

         <echo message="Minified sources built." />
     </target>
 
-	<target name="test" depends="jqplot">
+	<target name="tests" depends="jqplot">
 		<echo message="Creating automated test suite" />
-<!-- need to do some jython scripting here -->
+    <mkdir dir="${DIST_DIR}/tests" />
+    <copy todir="${DIST_DIR}/tests">
+      <fileset dir="tests" includes="*" />
+    </copy>
+    <copy todir="${DIST_DIR}/tests/images">
+      <fileset dir="tests/images" includes="*" />
+    </copy>
+    <replaceregexp match="\.\./src/" replace="\.\./" flags="g" file="${DIST_DIR}/tests/index.html" />
+    <replaceregexp match="\.\./src/" replace="\.\./" flags="g" file="${DIST_DIR}/tests/index.html" />
 		<echo message="Test Suite Finished" />
 	</target>
+	
+	<target name="mintests" depends="tests, min">
+	  <echo message="Modifying test suite to use minified distribution" />
+    <replaceregexp match="jquery\.jqplot\.js" replace="jquery\.jqplot\.min\.js" file="${DIST_DIR}/tests/index.html" />
+    <replaceregexp match="/jqplot\.([a-zA-Z0-9_-]+)\.js" replace="/jqplot\.\1\.min\.js" flags="g" file="${DIST_DIR}/tests/index.html" />
+  </target>
 
 	<target name="docs" depends="jqplot">
 		<echo message="Creating documentation" />
         <delete dir="${DIST_DIR}" />
     </target>
 
-    <target name="all" depends="clean,jqplot,min,docs,test">
+    <target name="all" depends="clean,jqplot,min,docs,tests">
         <echo message="Build complete distribution, docs and tests" />
     </target>
 

extras/jspec/jspec.css

   margin: 45px 0;
   text-align: center;
   font-family: "Helvetica Neue Light", "Lucida Grande", "Calibri", "Arial", sans-serif;
-/*  background: #efefef url(images/bg.png) top left repeat-x;*/
-  background: #efefef;
+  background: #efefef url(images/bg.png) top left repeat-x;
 }
 #jspec {
   margin: 0 auto;

extras/jspec/jspec.min.css

-body.jspec {margin: 45px 0;text-align: center;font: 12px "Helvetica Neue Light", "Lucida Grande", "Calibri", "Arial", sans-serif;background: #efefef url(images/bg.png) top left repeat-x;}#jspec {margin: 0 auto;padding-top: 25px;width: 1008px;background: url(images/vr.png) top left repeat-y;text-align: left;}#jspec-top {position: relative;margin: 0 auto;width: 1008px;height: 40px;background: url(images/sprites.bg.png) top left no-repeat;}#jspec-bottom {margin: 0 auto;width: 1008px;height: 15px;background: url(images/sprites.bg.png) bottom left no-repeat;}#jspec-title {position: relative;top: 35px;left: 20px;width: 160px;font-size: 22px;font-weight: normal;background: url(images/sprites.png) 0 -126px no-repeat;}#jspec-title em {font-size: 10px;font-style: normal;color: #BCC8D1;}#jspec-report * {margin: 0;padding: 0;background: none;border: none;}#jspec-report {padding: 15px 40px;font: 11px "Helvetica Neue Light", "Lucida Grande", "Calibri", "Arial", sans-serif;color: #7B8D9B;}#jspec-report.has-failures {padding-bottom: 30px;}#jspec-report .hidden {display: none;}#jspec-report .heading {margin-bottom: 15px;}#jspec-report .heading span {padding-right: 10px;}#jspec-report .heading .passes em {color: #0ea0eb;}#jspec-report .heading .failures em {color: #FA1616;}#jspec-report table {width: 100%;font-size: 11px;border-collapse: collapse;}#jspec-report td {padding: 8px;text-indent: 30px;color: #7B8D9B;}#jspec-report tr td:first-child em {font-style: normal;font-weight: normal;color: #7B8D9B;}#jspec-report tr:not(.description):hover {text-shadow: 1px 1px 1px #fff;background: #F2F5F7;}#jspec-report td + td {padding-right: 0;width: 15px;}#jspec-report td.pass {background: url(images/sprites.png) 3px -7px no-repeat;}#jspec-report td.fail {background: url(images/sprites.png) 3px -47px no-repeat;font-weight: bold;color: #FC0D0D;}#jspec-report td.requires-implementation {background: url(images/sprites.png) 3px -87px no-repeat;}#jspec-report tr.description td {margin-top: 25px;padding-top: 25px;font-size: 12px;font-weight: bold;text-indent: 0;color: #1a1a1a;}#jspec-report tr.description:first-child td {border-top: none;  }#jspec-report .assertion {display: block;float: left;margin: 0 0 0 1px;padding: 0;width: 1px;height: 5px;background: #7B8D9B;}#jspec-report .assertion.failed {background: red;}.jspec-sandbox {display: none;}
+body.jspec{margin:45px 0;text-align:center;font-family:"Helvetica Neue Light","Lucida Grande","Calibri","Arial",sans-serif;background:#efefef url(images/bg.png) top left repeat-x;}#jspec{margin:0 auto;padding-top:25px;width:1008px;background:url(images/vr.png) top left repeat-y;text-align:left;}#jspec-top{position:relative;margin:0 auto;width:1008px;height:40px;background:url(images/sprites.bg.png) top left no-repeat;}#jspec-bottom{margin:0 auto;width:1008px;height:15px;background:url(images/sprites.bg.png) bottom left no-repeat;}#jspec-title{position:relative;top:35px;left:20px;width:160px;font-size:22px;font-weight:normal;background:url(images/sprites.png) 0 -126px no-repeat;}#jspec-title em{font-size:10px;font-style:normal;color:#BCC8D1;}#jspec-report *{margin:0;padding:0;background:none;border:none;}#jspec-report{padding:15px 40px;font:11px "Helvetica Neue Light","Lucida Grande","Calibri","Arial",sans-serif;color:#7B8D9B;}#jspec-report.has-failures{padding-bottom:30px;}#jspec-report .hidden{display:none;}#jspec-report .heading{margin-bottom:15px;}#jspec-report .heading span{padding-right:10px;}#jspec-report .heading .passes em{color:#0ea0eb;}#jspec-report .heading .failures em{color:#FA1616;}#jspec-report table{width:100%;font-size:11px;border-collapse:collapse;}#jspec-report td{padding:8px;text-indent:30px;color:#7B8D9B;}#jspec-report tr td:first-child em{font-style:normal;font-weight:normal;color:#7B8D9B;}#jspec-report tr:not(.description):hover{text-shadow:1px 1px 1px #fff;background:#F2F5F7;}#jspec-report td+td{padding-right:0;width:15px;}#jspec-report td.pass{background:url(images/sprites.png) 3px -7px no-repeat;}#jspec-report td.fail{background:url(images/sprites.png) 3px -47px no-repeat;font-weight:bold;color:#FC0D0D;}#jspec-report td.requires-implementation{background:url(images/sprites.png) 3px -87px no-repeat;}#jspec-report tr.description td{margin-top:25px;padding-top:25px;font-size:12px;font-weight:bold;text-indent:0;color:#1a1a1a;}#jspec-report tr.description:first-child td{border-top:none;}#jspec-report .assertion{display:block;float:left;margin:0 0 0 1px;padding:0;width:1px;height:5px;background:#7B8D9B;}#jspec-report .assertion.failed{background:red;}.jspec-sandbox{display:none;}
 * 
 * About: Version
 *
+* $Rev$
+*
 * $Id$
-*
-* $URL: file:///Users/cleonell/svn/jqplot/trunk/src/jqplot.core.js $
-* $Date: 2009-04-20 15:50:30 -0400 (Mon, 20 Apr 2009) $
-* $Rev: 68 $
-* $Author: cleonell $
 * 
 * About: Copyright
 * 
 /*
-*  $ID$
-*  $URL: file:///Users/cleonell/svn/jqplot/trunk/src/jquery.jqplot.js $
-*  $Date: 2009-04-20 15:50:30 -0400 (Mon, 20 Apr 2009) $
 *  $Rev: 68 $
-*  $Author: cleonell $
 *
+*  $Id$
 */ 
 
 // This is a bootstrap loader for using the source distribution of jqPlot.
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+   "http://www.w3.org/TR/html4/loose.dtd">
+
+<html lang="en">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+	<title>jqPlot Unit Tests and Examples</title>
+	
+  <!-- BEGIN: load jquery -->
+  <script language="javascript" type="text/javascript" src="jquery-1.3.2.min.js"></script>
+  <!-- END: load jquery -->
+  
+  <!-- BEGIN: load extras -->
+  <script language="javascript" type="text/javascript" src="jspec.min.js"></script>
+  <script language="javascript" type="text/javascript" src="jspec.jquery.min.js"></script>
+  <script language="javascript" type="text/javascript" src="beautify.min.js" ></script>
+  <script language="javascript" type="text/javascript" src="prettify.min.js"></script>
+  <link rel="stylesheet" href="jspec.min.css" type="text/css" media="screen" title="no title" charset="utf-8">
+  <link rel="stylesheet" href="prettify.min.css" type="text/css" rel="stylesheet" />
+  <!-- END: load extras -->
+  
+  <!-- BEGIN: load jqplot -->
+  <script language="javascript" type="text/javascript" src="../src/jquery.jqplot.js"></script>
+  <script language="javascript" type="text/javascript" src="../src/plugins/jqplot.logAxisRenderer.js"></script>
+  <script language="javascript" type="text/javascript" src="../src/plugins/jqplot.categoryAxisRenderer.js"></script>
+  <script language="javascript" type="text/javascript" src="../src/plugins/jqplot.dateAxisRenderer.js"></script>
+  <!-- END: load jqplot -->
+
+	<script language="javascript" type="text/javascript">
+	  var uID = (function() {
+	    var id = 1;
+	    return function(){return id++};
+	  })();
+	  
+    function genplot(o) {
+      var nid, n;
+      nid = uID();
+      o = o.replace(/_target_/, 'chart'+nid);
+      n = js_beautify(o);
+      $('<div class="jqPLot"  id="chart'+nid+'" style="height:380px; width:540px;"></div>').appendTo('body');
+      $('<pre id="code'+nid+'" class="prettyprint"></pre>').appendTo('body');
+      $('#code'+nid).html(n);
+      eval(o);
+    }
+	
+    function runSuites() {
+      var o, n, nid;
+      
+      
+      nid = uID();
+      o = "var cosPoints = []; \
+      for (var i=0; i<2*Math.PI; i+=0.4){ \
+        cosPoints.push([i, Math.cos(i)]); \
+      } \
+      var sinPoints = []; \
+      for (var i=0; i<2*Math.PI; i+=0.4){ \
+         sinPoints.push([i, 2*Math.sin(i-.8)]); \
+      } \
+      var powPoints1 = []; \
+      for (var i=0; i<2*Math.PI; i+=0.4) { \
+          powPoints1.push([i, 2.5 + Math.pow(i/4, 2)]); \
+      } \
+      var powPoints2 = []; \
+      for (var i=0; i<2*Math.PI; i+=0.4) { \
+          powPoints2.push([i, -2.5 - Math.pow(i/4, 2)]); \
+      } \
+      plot1 = $.jqplot('_target_', [cosPoints, sinPoints, powPoints1, powPoints2], { \
+      title:'Line Style Options', series:[ \
+      {lineWidth:2, markerOptions:{style:'square'}}, \
+      {showLine:false, markerOptions:{style:'diamond'}}, \
+      {markerOptions:{style:'circle'}}, \
+      {lineWidth:5, markerOptions:{style:'filledSquare', size:11}}]});";
+    
+      genplot(o);
+      
+      o = "var cosPoints = []; \
+      for (var i=0; i<2*Math.PI; i+=0.1){ \
+         cosPoints.push([i, Math.cos(i)]); \
+      } \
+      plot1b = $.jqplot('_target_', [cosPoints], { \
+          title:'Shadow Options', \
+          series:[{showMarker:false, lineWidth:5, shadowAngle:0, shadowOffset:2, shadowAlpha:.06, shadowDepth:5}]});"
+      
+      genplot(o);
+    
+      o = "line1=[[1,1],[1.5, 2.25],[2,4],[2.5,6.25],[3,9],[3.5,12.25],[4,16]]; \
+      line2=[25, 17.5, 12.25, 8.6, 6.0, 4.2, 2.9]; \
+      line3=[4, 25, 13, 22, 14, 17, 15]; \
+      plot2 = $.jqplot('_target_', [line1, line2, line3], \
+      {legend:{show:true}, title:'Mixed Data Input Formats', \
+      series:[{label:'Rising line', showLine:false, markerOptions:{style:'square'}}, \
+      {label:'Declining line'}, {label:'Zig Zag Line', lineWidth:5, showMarker:false}]});";
+            
+      genplot(o);
+      
+      o = "line1 = [[1,1],[2,4],[3,9],[4,16]]; \
+      line2 = [25, 12.5, 6.25, 3.125]; \
+      plot3 = $.jqplot('_target_', [line1, line2], \
+      {legend:{show:true, location:'e'},title:'Secondary Log Axis', \
+      series:[{label:'Rising line'},{yaxis:'y2axis', label:'Declining line'}], \
+      axes:{xaxis:{min:0, max:5}, y2axis:{renderer:$.jqplot.LogAxisRenderer, min:2, max:30}}});"
+        
+      genplot(o);
+
+      o = "plot4 = $.jqplot('_target_', [line2], { \
+      legend:{show:true, location:'e'}, \
+      title:'Log Y Axis, Power Tick Distribution', \
+      series:[{label:'Declining line'}], \
+      axes:{xaxis:{min:0, max:5}, yaxis:{tickDistribution:'power', renderer:$.jqplot.LogAxisRenderer, min:2, max:30}}});"
+        
+      genplot(o);
+      
+      o = "line1=[[1,1],[1.5, 2.25],[2,4],[2.5,6.25],[3,9],[3.5,12.25],[4,16]]; \
+      line2=[25, 12.5, 6.25, 3.125]; \
+      xticks = [[0, 'zero'], [1, 'one'], [2, 'two'], [3, 'three'], [4, 'four'], [5, 'five']]; \
+      yticks = [-5, 0, 5, 10, 15, 20, 25, 30]; \
+      plot5 = $.jqplot('_target_', [line1, line2], \
+      {legend:{show:true}, title:'Customized Axes Ticks', \
+      series:[{label:'Rising line', markerOptions:{style:'square'}}, {label:'Declining line'}], \
+      axes:{xaxis:{ticks:xticks}, yaxis:{ticks:yticks}}});";
+            
+      genplot(o);
+      
+      o = "line1=[4, 25, 13, 22, 14, 17, 15]; \
+      plot6 = $.jqplot('_target_', [line1], \
+      {title:'Default Category X Axis', \
+      axes:{xaxis:{renderer:$.jqplot.CategoryAxisRenderer}}, \
+      series:[{lineWidth:4, markerOptions:{style:'square'}}]});";
+      
+      genplot(o);
+      o = "line1=[4, 25, 13, 22, 14, 17, 15]; \
+      ticks = ['uno', 'dos', 'tres', 'cuatro', 'cinco', 'seis', 'siete']; \
+      plot7 = $.jqplot('_target_', [line1], \
+      {title:'Customized Category X Axis', \
+      axes:{xaxis:{ticks:ticks, renderer:$.jqplot.CategoryAxisRenderer}}, \
+      series:[{lineWidth:4, markerOptions:{style:'square'}}]});";
+      
+      genplot(o);
+      o = "line1=[['uno', 4], ['due', 25], ['tre', 13], ['quattro', 22], ['cinque', 14], ['sei', 17], ['sette', 15]]; \
+      plot8 = $.jqplot('_target_', [line1], \
+      {title:'Customized Category X Axis by Series Data Specificaiton', \
+      axes:{xaxis:{renderer:$.jqplot.CategoryAxisRenderer}}, \
+      series:[{lineWidth:4, markerOptions:{style:'square'}}]});";
+      
+      genplot(o);
+      
+      o = "line1=[['2008-09-30', 4], ['2008-10-30', 6.5], ['2008-11-30', 5.7], ['2008-12-30', 9], ['2009-01-30', 8.2]]; \
+      plot9 = $.jqplot('_target_', [line1], \
+      {title:'Default Date Axis', \
+      axes:{xaxis:{renderer:$.jqplot.DateAxisRenderer}}, \
+      series:[{lineWidth:4, markerOptions:{style:'square'}}]});";
+      
+      genplot(o);
+      
+      o = "line1=[['2008-06-30', 4], ['2008-7-30', 6.5], ['2008-8-30', 5.7], ['2008-9-30', 9], ['2008-10-30', 8.2]]; \
+      plot10 = $.jqplot('_target_', [line1], \
+      {title:'Customized Date Axis', gridPadding:{right:45}, \
+      axes:{xaxis:{renderer:$.jqplot.DateAxisRenderer, tickOptions:{formatString:'%b %#d, %y'}, min:'May 30, 2008', tickInterval:'1 month'}}, \
+      series:[{lineWidth:4, markerOptions:{style:'square'}}]});";
+      
+      genplot(o);
+  
+      prettyPrint();
+      
+      JSpec.options.profile = false;
+      JSpec
+      .exec('unittest.js')
+      .run()
+      .report()
+    }
+  </script>
+  <style type="text/css">
+      div.jqPLot {
+        position:relative;
+        margin: 4em auto 3em auto;
+      }
+      pre {
+        text-align: left;
+      }
+  </style>
+</head>
+	<body class="jspec" onLoad="runSuites();">
+		<div id="jspec-top"><h2 id="jspec-title">jqPlot</h2></div>
+		<div id="jspec"></div>
+		<div id="jspec-bottom"></div>
+		
+		<div class="jqPLot" id="chart0"></div>
+
+</body>
+</html>

tests/unittest.html

-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
-   "http://www.w3.org/TR/html4/loose.dtd">
-
-<html lang="en">
-<head>
-	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-	<title>jqPlot Unit Tests and Examples</title>
-	
-  <!-- BEGIN: load jquery -->
-  <script language="javascript" type="text/javascript" src="../../jquery-1.3.2.js"></script>
-  <!-- END: load jquery -->
-  
-  <!-- BEGIN: load extras -->
-  <script language="javascript" type="text/javascript" src="../extras/jspec/jspec.min.js"></script>
-  <script language="javascript" type="text/javascript" src="../extras/jspec/jspec.jquery.min.js"></script>
-  <script language="javascript" type="text/javascript" src="../extras/beautify/beautify.js" ></script>
-  <script language="javascript" type="text/javascript" src="../extras/beautify/HTML-Beautify.js" ></script>
-  <script language="javascript" type="text/javascript" src="../extras/prettify/prettify.js"></script>
-  <link rel="stylesheet" href="../extras/jspec/jspec.css" type="text/css" media="screen" title="no title" charset="utf-8">
-  <link rel="stylesheet" href="../extras/prettify/prettify.css" type="text/css" rel="stylesheet" />
-  <!-- END: load extras -->
-  
-  <!-- BEGIN: load jqplot -->
-  <script language="javascript" type="text/javascript" src="../src/jquery.jqplot.js"></script>
-  <script language="javascript" type="text/javascript" src="../src/plugins/jqplot.logAxisRenderer.js"></script>
-  <script language="javascript" type="text/javascript" src="../src/plugins/jqplot.categoryAxisRenderer.js"></script>
-  <script language="javascript" type="text/javascript" src="../src/plugins/jqplot.dateAxisRenderer.js"></script>
-  <!-- END: load jqplot -->
-
-	<script language="javascript" type="text/javascript">
-	  var uID = (function() {
-	    var id = 1;
-	    return function(){return id++};
-	  })();
-	  
-    function genplot(o) {
-      var nid, n;
-      nid = uID();
-      o = o.replace(/_target_/, 'chart'+nid);
-      n = js_beautify(o);
-      $('<div class="jqPLot"  id="chart'+nid+'" style="height:380px; width:540px;"></div>').appendTo('body');
-      $('<pre id="code'+nid+'" class="prettyprint"></pre>').appendTo('body');
-      $('#code'+nid).html(n);
-      eval(o);
-    }
-	
-    function runSuites() {
-      var o, n, nid;
-      
-      
-      nid = uID();
-      o = "var cosPoints = []; \
-      for (var i=0; i<2*Math.PI; i+=0.4){ \
-        cosPoints.push([i, Math.cos(i)]); \
-      } \
-      var sinPoints = []; \
-      for (var i=0; i<2*Math.PI; i+=0.4){ \
-         sinPoints.push([i, 2*Math.sin(i-.8)]); \
-      } \
-      var powPoints1 = []; \
-      for (var i=0; i<2*Math.PI; i+=0.4) { \
-          powPoints1.push([i, 2.5 + Math.pow(i/4, 2)]); \
-      } \
-      var powPoints2 = []; \
-      for (var i=0; i<2*Math.PI; i+=0.4) { \
-          powPoints2.push([i, -2.5 - Math.pow(i/4, 2)]); \
-      } \
-      plot1 = $.jqplot('_target_', [cosPoints, sinPoints, powPoints1, powPoints2], { \
-      title:'Line Style Options', series:[ \
-      {lineWidth:2, markerOptions:{style:'square'}}, \
-      {showLine:false, markerOptions:{style:'diamond'}}, \
-      {markerOptions:{style:'circle'}}, \
-      {lineWidth:5, markerOptions:{style:'filledSquare', size:11}}]});";
-    
-      genplot(o);
-      
-      o = "var cosPoints = []; \
-      for (var i=0; i<2*Math.PI; i+=0.1){ \
-         cosPoints.push([i, Math.cos(i)]); \
-      } \
-      plot1b = $.jqplot('_target_', [cosPoints], { \
-          title:'Shadow Options', \
-          series:[{showMarker:false, lineWidth:5, shadowAngle:0, shadowOffset:2, shadowAlpha:.06, shadowDepth:5}]});"
-      
-      genplot(o);
-    
-      o = "line1=[[1,1],[1.5, 2.25],[2,4],[2.5,6.25],[3,9],[3.5,12.25],[4,16]]; \
-      line2=[25, 17.5, 12.25, 8.6, 6.0, 4.2, 2.9]; \
-      line3=[4, 25, 13, 22, 14, 17, 15]; \
-      plot2 = $.jqplot('_target_', [line1, line2, line3], \
-      {legend:{show:true}, title:'Mixed Data Input Formats', \
-      series:[{label:'Rising line', showLine:false, markerOptions:{style:'square'}}, \
-      {label:'Declining line'}, {label:'Zig Zag Line', lineWidth:5, showMarker:false}]});";
-            
-      genplot(o);
-      
-      o = "line1 = [[1,1],[2,4],[3,9],[4,16]]; \
-      line2 = [25, 12.5, 6.25, 3.125]; \
-      plot3 = $.jqplot('_target_', [line1, line2], \
-      {legend:{show:true, location:'e'},title:'Secondary Log Axis', \
-      series:[{label:'Rising line'},{yaxis:'y2axis', label:'Declining line'}], \
-      axes:{xaxis:{min:0, max:5}, y2axis:{renderer:$.jqplot.LogAxisRenderer, min:2, max:30}}});"
-        
-      genplot(o);
-
-      o = "plot4 = $.jqplot('_target_', [line2], { \
-      legend:{show:true, location:'e'}, \
-      title:'Log Y Axis, Power Tick Distribution', \
-      series:[{label:'Declining line'}], \
-      axes:{xaxis:{min:0, max:5}, yaxis:{tickDistribution:'power', renderer:$.jqplot.LogAxisRenderer, min:2, max:30}}});"
-        
-      genplot(o);
-      
-      o = "line1=[[1,1],[1.5, 2.25],[2,4],[2.5,6.25],[3,9],[3.5,12.25],[4,16]]; \
-      line2=[25, 12.5, 6.25, 3.125]; \
-      xticks = [[0, 'zero'], [1, 'one'], [2, 'two'], [3, 'three'], [4, 'four'], [5, 'five']]; \
-      yticks = [-5, 0, 5, 10, 15, 20, 25, 30]; \
-      plot5 = $.jqplot('_target_', [line1, line2], \
-      {legend:{show:true}, title:'Customized Axes Ticks', \
-      series:[{label:'Rising line', markerOptions:{style:'square'}}, {label:'Declining line'}], \
-      axes:{xaxis:{ticks:xticks}, yaxis:{ticks:yticks}}});";
-            
-      genplot(o);
-      
-      o = "line1=[4, 25, 13, 22, 14, 17, 15]; \
-      plot6 = $.jqplot('_target_', [line1], \
-      {title:'Default Category X Axis', \
-      axes:{xaxis:{renderer:$.jqplot.CategoryAxisRenderer}}, \
-      series:[{lineWidth:4, markerOptions:{style:'square'}}]});";
-      
-      genplot(o);
-      o = "line1=[4, 25, 13, 22, 14, 17, 15]; \
-      ticks = ['uno', 'dos', 'tres', 'cuatro', 'cinco', 'seis', 'siete']; \
-      plot7 = $.jqplot('_target_', [line1], \
-      {title:'Customized Category X Axis', \
-      axes:{xaxis:{ticks:ticks, renderer:$.jqplot.CategoryAxisRenderer}}, \
-      series:[{lineWidth:4, markerOptions:{style:'square'}}]});";
-      
-      genplot(o);
-      o = "line1=[['uno', 4], ['due', 25], ['tre', 13], ['quattro', 22], ['cinque', 14], ['sei', 17], ['sette', 15]]; \
-      plot8 = $.jqplot('_target_', [line1], \
-      {title:'Customized Category X Axis by Series Data Specificaiton', \
-      axes:{xaxis:{renderer:$.jqplot.CategoryAxisRenderer}}, \
-      series:[{lineWidth:4, markerOptions:{style:'square'}}]});";
-      
-      genplot(o);
-      
-      o = "line1=[['2008-09-30', 4], ['2008-10-30', 6.5], ['2008-11-30', 5.7], ['2008-12-30', 9], ['2009-01-30', 8.2]]; \
-      plot9 = $.jqplot('_target_', [line1], \
-      {title:'Default Date Axis', \
-      axes:{xaxis:{renderer:$.jqplot.DateAxisRenderer}}, \
-      series:[{lineWidth:4, markerOptions:{style:'square'}}]});";
-      
-      genplot(o);
-      
-      o = "line1=[['2008-06-30', 4], ['2008-7-30', 6.5], ['2008-8-30', 5.7], ['2008-9-30', 9], ['2008-10-30', 8.2]]; \
-      plot10 = $.jqplot('_target_', [line1], \
-      {title:'Customized Date Axis', gridPadding:{right:45}, \
-      axes:{xaxis:{renderer:$.jqplot.DateAxisRenderer, tickOptions:{formatString:'%b %#d, %y'}, min:'May 30, 2008', tickInterval:'1 month'}}, \
-      series:[{lineWidth:4, markerOptions:{style:'square'}}]});";
-      
-      genplot(o);
-  
-      prettyPrint();
-      
-      JSpec.options.profile = false;
-      JSpec
-      .exec('unittest.js')
-      .run()
-      .report()
-    }
-  </script>
-  <style type="text/css">
-      div.jqPLot {
-        position:relative;
-        margin: 4em auto 3em auto;
-      }
-      pre {
-        text-align: left;
-      }
-  </style>
-</head>
-	<body class="jspec" onLoad="runSuites();">
-		<div id="jspec-top"><h2 id="jspec-title">jqPlot</h2></div>
-		<div id="jspec"></div>
-		<div id="jspec-bottom"></div>
-		
-		<div class="jqPLot" id="chart0"></div>
-
-</body>
-</html>