Uploaded image for project: 'JBoss Developer Materials'
  1. JBoss Developer Materials
  2. JDF-653

QUnit tests are failing in the archetype jboss-html5-mobile-archetype

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • None
    • None
    • archetypes
    • Hide

      1. Generate a project "html" based on archetype jboss-html5-mobile-archetype available on https://github.com/jboss-developer/jboss-wfk-archetypes with version 2.5.0-build-SNAPSHOT

      mvn archetype:generate -DarchetypeGroupId=org.jboss.archetype.wfk -DarchetypeArtifactId=jboss-html5-mobile-archetype -DarchetypeVersion=2.5.0-build-SNAPSHOT

      and follow the README.md file
      2. open in firefox the file src/test/qunit/index.html

      firefox src/test/qunit/index.html
      Show
      1. Generate a project "html" based on archetype jboss-html5-mobile-archetype available on https://github.com/jboss-developer/jboss-wfk-archetypes with version 2.5.0-build-SNAPSHOT mvn archetype:generate -DarchetypeGroupId=org.jboss.archetype.wfk -DarchetypeArtifactId=jboss-html5-mobile-archetype -DarchetypeVersion=2.5.0-build-SNAPSHOT and follow the README.md file 2. open in firefox the file src/test/qunit/index.html firefox src/test/qunit/index.html

    Description

      The QUnit tests in the archetype jboss-html5-mobile-archetype are failing with the following result:

      Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0
      
      Tests completed in 41 milliseconds.
      0 tests of 1 passed, 1 failed.
      
          global failure (1, 0, 1)Rerun
              Script error., file:///home/mjobanek/temp/archetypes/html/src/test/qunit/test/test.js:0
      
      

      The problem is in the src/test/qunit/test/test.js file, that there is (on the lines 53 and 88) missing the character "$" - there is ".ajax" instead of "$.ajax".

      This problems appears during the process of generating a project - in the original sources (in the .jar file) is the character present.

      Attachments

        Activity

          People

            rafabene_jira Rafael Benevides (Inactive)
            mjobanek Matous Jobanek
            Matous Jobanek Matous Jobanek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: