From 7e36425aadfd30db9d483ea1ff26d4dc57c7e791 Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Thu, 10 Apr 2014 00:53:48 -0300 Subject: [PATCH 1/3] jasmine maven plugin dependency declared in parent pom --- pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pom.xml b/pom.xml index bce1d823..6987b043 100644 --- a/pom.xml +++ b/pom.xml @@ -90,6 +90,11 @@ native2ascii-maven-plugin 1.0-beta-1 + + com.github.searls + jasmine-maven-plugin + 1.3.1.4 + From cd5ed0414e305a86ad5edf3d7ec2a65e847f84c0 Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Thu, 10 Apr 2014 00:54:10 -0300 Subject: [PATCH 2/3] adding configuration for mindplot module --- mindplot/pom.xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/mindplot/pom.xml b/mindplot/pom.xml index db8536b4..81c220ea 100644 --- a/mindplot/pom.xml +++ b/mindplot/pom.xml @@ -250,6 +250,31 @@ true + + com.github.searls + jasmine-maven-plugin + 1.3.1.4 + + + + test + + + + + FIREFOX_3_6 + org.openqa.selenium.firefox.FirefoxDriver + + + libraries/mootools/mootools-core-1.4.5-full-nocompat.js + header.js + + + static/test/*.js + simpleTest.js + + + From 4987f1030d5cfc229d536873de6152cdcf5aa7e7 Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Fri, 26 Sep 2014 23:22:37 -0300 Subject: [PATCH 3/3] adding jasmine configuration and suite to core-js module --- core-js/pom.xml | 18 ++++++++++++++++++ core-js/src/test/javascript/testSuite.js | 10 ++++++++++ pom.xml | 2 +- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 core-js/src/test/javascript/testSuite.js diff --git a/core-js/pom.xml b/core-js/pom.xml index b1c70bec..f36da552 100644 --- a/core-js/pom.xml +++ b/core-js/pom.xml @@ -40,6 +40,24 @@ maven-release-plugin 2.5 + + com.github.searls + jasmine-maven-plugin + 1.3.1.5 + + + + test + + + + + + + Functions.js + + + net.alchim31.maven diff --git a/core-js/src/test/javascript/testSuite.js b/core-js/src/test/javascript/testSuite.js new file mode 100644 index 00000000..760d0aab --- /dev/null +++ b/core-js/src/test/javascript/testSuite.js @@ -0,0 +1,10 @@ +describe("Functions suite test", function() { + it("$defined() test spec", function() { + var testVariable = undefined; + expect($defined(testVariable)).toBe(false); + testVariable = 1; + expect($defined(testVariable)).toBe(true); + testVariable = null; + expect($defined(testVariable)).toBe(false); + }); +}); diff --git a/pom.xml b/pom.xml index ad2b5716..4652c8c4 100644 --- a/pom.xml +++ b/pom.xml @@ -93,7 +93,7 @@ com.github.searls jasmine-maven-plugin - 1.3.1.4 + 1.3.1.5