diff --git a/core-js/pom.xml b/core-js/pom.xml index 7ecbdab4..9591eb2d 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/mindplot/pom.xml b/mindplot/pom.xml index 16570a26..ffe8f675 100644 --- a/mindplot/pom.xml +++ b/mindplot/pom.xml @@ -254,6 +254,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 + + + diff --git a/pom.xml b/pom.xml index 1c365129..4652c8c4 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.5 +