<!--
    JBoss, Home of Professional Open Source
    Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual
    contributors by the @authors tag. See the copyright.txt in the
    distribution for a full listing of individual contributors.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<!DOCTYPE html>

<!--
Base test file for running quit tests.  Load this into any browser to execute
the tests for the HTML5/Mobile application.
-->

<html>
<head>
    <meta charset="UTF-8" />
    <title>HTML5 Test Suite</title>

    <link rel="stylesheet" href="qunit/qunit-1.14.0.css" type="text/css" media="screen">

    <!-- Libraries -->
    <script src="../../main/webapp/js/libs/jquery-2.0.3.min.js"></script>
    <script src="../../main/webapp/js/libs/lodash-2.4.1.min.js"></script>
    <script src="../../main/webapp/js/libs/jquery.validate-1.13.1.js"></script>
    <script src="../../main/webapp/js/libs/additional-methods-1.13.1.js"></script>
    <script src="../../main/webapp/js/libs/intlTelInput-libPhoneNumber-7.2.1.js"></script>
    <script src="../../main/webapp/js/libs/intlTelInput-6.4.3.js"></script>
    <script src="qunit/qunit-1.14.0.js"></script>

    <!-- The js file to be tested -->
    <script src="../../main/webapp/js/namespace.js"></script>
    <script src="../../main/webapp/js/util.js"></script>
    <script src="../../main/webapp/js/formSetup.js"></script>
    <script src="../../main/webapp/js/app.js"></script>
    <script src="../../main/webapp/js/validation.js"></script>
    <script src="../../main/webapp/js/submissions.js"></script>

    <!-- The js file that contains the tests -->
    <script src="test/test.js"></script>
    <script src="test/app_tests.js"></script>
    <script src="test/submissions_tests.js"></script>
    <script src="test/util_tests.js"></script>
    <script src="test/validation_tests.js"></script>

    <!-- jQuery Mobile Library: it needs to run last. -->
    <script src="../../main/webapp/js/libs/jquery.mobile-1.4.2.js"></script>

    <!-- Underscore.js Template for building contacts (simplified for testing) -->
    <script type="text/template" id="contact-tmpl"><% _.each(contacts, function(contact) { %><div><%=contact.id%></div><% }); %></script>
</head>
<body>
    <h1 id="qunit-header">HTML5 Test Suite</h1>
    <h2 id="qunit-banner"></h2>
    <div id="qunit-testrunner-toolbar"></div>
    <h2 id="qunit-userAgent"></h2>
    <ol id="qunit-tests"></ol>
    <div id="qunit-fixture">
        test markup
    </div>
</body>
</html>
