Skip to content

Commit

Permalink
use new version of js plugin, and added an example test
Browse files Browse the repository at this point in the history
  • Loading branch information
harlanji committed Aug 24, 2010
1 parent 9c61755 commit 3466896
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 35 deletions.
88 changes: 53 additions & 35 deletions pom.xml
Expand Up @@ -39,30 +39,63 @@
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo.javascript</groupId>
<groupId>com.devspan.mojo.javascript</groupId>
<artifactId>javascript-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<workDirectory>${basedir}/target/test-work</workDirectory>
</configuration>
</plugin>
</plugins>
</build>

<repositories>
<repository>
<id>sonatype-nexus-public</id>
<url>https://oss.sonatype.org/content/groups/public</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>



<!--
<distributionManagement>
<repository>
<id>jsrepo</id>
<url>http://localhost:8081/nexus/content/repositories/releases</url>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
<snapshotRepository>
<id>jsrepo</id>
<url>http://localhost:8081/nexus/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
-->
</repositories>

<pluginRepositories>
<pluginRepository>
<id>sonatype-nexus-public</id>
<url>https://oss.sonatype.org/content/groups/public</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>

<pluginRepository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>


<distributionManagement>
Expand All @@ -74,28 +107,6 @@


<profiles>
<profile>
<id>release-public</id>

<distributionManagement>
<repository>
<id>sonatype-nexus-releases</id>
<url>https://oss.sonatype.org/content/repositories/releases/</url>
</repository>
</distributionManagement>
</profile>

<profile>
<id>release-staging</id>

<distributionManagement>
<repository>
<id>sonatype-oss-staging</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>

<profile>
<id>release-sign-artifacts</id>
<activation>
Expand All @@ -105,6 +116,13 @@
</property>
</activation>

<distributionManagement>
<repository>
<id>sonatype-oss-staging</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<build>
<plugins>
<plugin>
Expand Down
32 changes: 32 additions & 0 deletions src/test/javascript/suite-basic.html
@@ -0,0 +1,32 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="http://github.com/jquery/qunit/raw/master/qunit/qunit.css" type="text/css" media="screen" />



</head>
<body>
<h1 id="qunit-header">QUnit example</h1>
<h2 id="qunit-banner"></h2>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">test markup, will be hidden</div>

<script>

module("Some Module");

test("a basic test example", function() {
ok( true, "this test is fine" );
var value = "hello";
equals( "hello", value, "We expect value to be hello" );
});


</script>

</body>
</html>

0 comments on commit 3466896

Please sign in to comment.