You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2013/06/04 19:03:15 UTC

[3/3] git commit: Add tests for Less compilation

Add tests for Less compilation


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/a8b33360
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/a8b33360
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/a8b33360

Branch: refs/heads/master
Commit: a8b3336014cb94612c5ac6160552ba639170480d
Parents: 2aa9b52
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Tue Jun 4 10:01:12 2013 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Tue Jun 4 10:01:12 2013 -0700

----------------------------------------------------------------------
 .../test/groovy/t5/wro4j/tests/Wro4jSpec.groovy    |   21 ++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/a8b33360/tapestry-wro4j/src/test/groovy/t5/wro4j/tests/Wro4jSpec.groovy
----------------------------------------------------------------------
diff --git a/tapestry-wro4j/src/test/groovy/t5/wro4j/tests/Wro4jSpec.groovy b/tapestry-wro4j/src/test/groovy/t5/wro4j/tests/Wro4jSpec.groovy
index 1d0e5c9..ee37621 100644
--- a/tapestry-wro4j/src/test/groovy/t5/wro4j/tests/Wro4jSpec.groovy
+++ b/tapestry-wro4j/src/test/groovy/t5/wro4j/tests/Wro4jSpec.groovy
@@ -26,7 +26,7 @@ class Wro4jSpec extends GebSpec {
         // Open index page
         go()
 
-        waitFor { ! $("#banner").empty }
+        waitFor { !$("body[data-page-initialized]").empty }
 
         then:
 
@@ -34,4 +34,23 @@ class Wro4jSpec extends GebSpec {
         // means that the CoffeeScript was compiled to JS and executed.
         $("#banner").text().trim() == "Index module loaded, bare!"
     }
+
+    def "Less compilation"() {
+
+        when:
+
+        go()
+
+        waitFor { !$("body[data-page-initialized]").empty }
+
+        $(".navbar .dropdown-toggle").click()
+
+        $(".navbar .dropdown-menu a", text: "MultiLess").click()
+
+        waitFor { !$(".demo").empty }
+
+        then:
+
+        $(".demo").jquery.css("background-color") == "rgb(179, 179, 255)"
+    }
 }