[Cdash] Zoom out bug in NamedMeasurements

Volkan Gezer vlkngzr at gmail.com
Fri Oct 17 12:32:00 UTC 2014


Hello,

If you have NamedMeasurements, in testDetails.php, showing the graph
and clicking on Zoom out twice throws an error and freezes the page.
In firefox this error is:

NS_ERROR_FAILURE: Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIDOMWindow.getComputedStyle]


This is due to an abnormal call of plot function twice in
ajax/showtestmeasurementdatagraph.php. The following patch should
solve the issue:

--- ajax/showtestmeasurementdatagraph.php    2014-10-17 14:06:36.686145349 +0200
@@ -156,9 +157,9 @@
 <?php if(isset($zoomout))
 {
 ?>
-    plot = $.plot($(divnplot = $.plot($(divname),
-                  [{label: <?php echo("\"$measurementname\""); ?>
,data: d1}], options,{xaxis: { min: <?php echo $t-2000000000?>, max:
<?php echo $t+50000000; ?>}, yaxis: { min: 0}}))
-          );
+    plot = $.plot($(divname),
+                  [{label: <?php echo("\"$measurementname\""); ?>
,data: d1}], options,{xaxis: { min: <?php echo $t-2000000000?>, max:
<?php echo $t+50000000; ?>}, yaxis: { min: 0}});
+
 <?php } else { ?>
     plot = $.plot($(divname),
                   [{label: <?php echo("\"$measurementname\""); ?> ,data: d1}],


Best regards,
Volkan GEZER
volkangezer at gmail.com



More information about the CDash mailing list