Skip to content

Commit

Permalink
Fix test/chr2dpanelframe (leftover change re .on("mouseout"))
Browse files Browse the repository at this point in the history
- also, add test/tests.html
  • Loading branch information
kbroman committed Aug 5, 2021
1 parent ccb5971 commit 0da7de5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/chr2dpanelframe/test_chr2dpanelframe.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mychart2 = d3panels.chr2dpanelframe({title:"Select chromosomes on hover"})
mychart2(d3.select("div#chart2"), {chr:[1,2,3,4,5],end:[100,90,70,50,50]})
chrSelect = mychart2.chrSelect()
chrSelect.on("mouseover", () -> d3.select(this).attr("fill", "#e9cfec")) # pink on hover
.on("mouseout", (d) -> d3.select(this).attr("fill", ->
.on("mouseout", (event,d) -> d3.select(this).attr("fill", ->
return "#d4d4d4" if d.odd
"#e6e6e6"))

Expand Down
34 changes: 34 additions & 0 deletions test/tests.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>d3panels tests</title>
<link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-1.15.0.css">
</head>

<body>

<ul>
<li><a href="index.html">panelutil</a></li>
<li><a href="add_curves">add_curves</a></li>
<li><a href="add_points">add_points</a></li>
<li><a href="chr2dpanelframe">chr2dpanelframe</a></li>
<li><a href="chrpanelframe">chrpanelframe</a></li>
<li><a href="cichart">cichart</a></li>
<li><a href="crosstab">crosstab</a></li>
<li><a href="curvechart">curvechart</a></li>
<li><a href="dotchart">dotchart</a></li>
<li><a href="double_slider">double_slider</a></li>
<li><a href="heatmap">heatmap</a></li>
<li><a href="histchart">histchart</a></li>
<li><a href="lod2dheatmap">lod2dheatmap</a></li>
<li><a href="lodchart">lodchart</a></li>
<li><a href="lodheatmap">lodheatmap</a></li>
<li><a href="mapchart">mapchart</a></li>
<li><a href="panelframe">panelframe</a></li>
<li><a href="scatterplot">scatterplot</a></li>
<li><a href="slider">slider</a></li>
<li><a href="trichart">trichart</a></li>
</ul>

</body> </html>

0 comments on commit 0da7de5

Please sign in to comment.