summaryrefslogtreecommitdiffstats
path: root/install/static/test/index.html
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2010-09-24 19:50:29 -0400
committerAdam Young <ayoung@redhat.com>2010-09-24 19:50:29 -0400
commit346615d4a0029fb3f59344a98963b7fea8356b8c (patch)
treef038a31261d2560d703daee0f2f190049ebfac23 /install/static/test/index.html
parent59d46abcd5fe9b5e83d4ae962a3afe8bf6bd8e87 (diff)
downloadfreeipa-346615d4a0029fb3f59344a98963b7fea8356b8c.tar.gz
freeipa-346615d4a0029fb3f59344a98963b7fea8356b8c.tar.xz
freeipa-346615d4a0029fb3f59344a98963b7fea8356b8c.zip
Test framework for Web UI.
Test framework for Web UI has been created using qUnit. The test files are located in install/static/test. The main page is index.html which contains links to all test suites (xxx_tests.html). The test cases are stored in xxx_tests.js. All test suites can be executed at once using all_tests.html. The test data is stored in data folder. This patch includes test suites for ipa.js and entity.js. Some variables and functions in ipa.js have been modified to accomodate testing (e.g. JSON URL, error handler, synchronous operation). The sampledata has been moved to test/data. The develop.js and webui.js also have been modified accordingly.
Diffstat (limited to 'install/static/test/index.html')
-rw-r--r--install/static/test/index.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/install/static/test/index.html b/install/static/test/index.html
new file mode 100644
index 000000000..c6d229502
--- /dev/null
+++ b/install/static/test/index.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>IPA Test Suite</title>
+ <link rel="stylesheet" href="qunit.css" type="text/css" media="screen">
+ <style type="text/css">
+#content {
+ font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
+ font-size: smaller;
+
+ border-bottom: 1px solid #fff;
+ padding: 0.5em 0.5em 0.5em 2.5em;
+
+ color: #2b81af;
+ background-color: #D2E0E6;
+}
+ </style>
+</head>
+<body>
+ <h1 id="qunit-header">IPA Test Suite</h1>
+
+ <h2 id="qunit-banner" class="qunit-pass"></h2>
+
+ <div id="content">
+ <a href="all_tests.html">Complete Test Suite</a>
+ <ul>
+ <li><a href="ipa_tests.html">Core Test Suite</a>
+ <li><a href="entity_tests.html">Entity Test Suite</a>
+ </ul>
+ </div>
+
+ <div id="qunit-testresult">
+ <br>
+ </div>
+
+</body>
+</html>