Skip to content

Commit

Permalink
test contents of index.html and topLevel.index
Browse files Browse the repository at this point in the history
  • Loading branch information
harrah committed Sep 23, 2013
1 parent 1700789 commit a9eb6ad
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion project/XRay.scala
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ object XRay extends Build
error("Actual content differed from expected content")
}
def filesToCompare(dir: File): Relation[File,String] = {
val mappings = dir ** ("*.html" - "index.html") x relativeTo(dir)
val mappings = dir ** ("*.html" | "*.index") x relativeTo(dir)
Relation.empty ++ mappings
}
def sameFile(actualFile: File, expectedFile: File): Boolean =
Expand Down
10 changes: 10 additions & 0 deletions test/expected/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<html><body>
<li><a href="A.scala.html">A.scala</a></li>
<li><a href="Comments.scala.html">Comments.scala</a></li>
<li><a href="Defs.scala.html">Defs.scala</a></li>
<li><a href="If.scala.html">If.scala</a></li>
<li><a href="Literals.scala.html">Literals.scala</a></li>
<li><a href="NestedDefs.scala.html">NestedDefs.scala</a></li>
<li><a href="Q.scala.html">Q.scala</a></li>
<li><a href="XML.scala.html">XML.scala</a></li>
</body></html>
10 changes: 10 additions & 0 deletions test/expected/topLevel.index
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
A : A.scala
B : Q.scala
Comments : Comments.scala
If : If.scala
Literals : Literals.scala
NestedDefs : NestedDefs.scala
Q : Q.scala
XML : XML.scala
defs : Defs.scala
defs.Defs : Defs.scala

0 comments on commit a9eb6ad

Please sign in to comment.