-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
54 lines (40 loc) · 1.3 KB
/
index.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<html>
<head>
<title>XML.UnitTest.JS</title>
</head>
<body>
<h1>XML.UnitTest.JS</h1>
<p>Tests unitaires JavaScript réalisés à l'aide de fichier XML et XSL.</p>
<ul>
<li>En local, fonctionne avec Firefox et Internet Explorer.</li>
<li>En ligne, pas de limitation.</li>
<li>Les évaluations asynchrones ne sont pas testables pour l'instant.</li>
</ul>
<p><a href="UnitTest.xml">Aperçu du résultat</a>.</p>
<h2>Structure du document XML</h2>
<pre>
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type="text/xsl" href="UnitTest.xsl"?>
<truth name="Titre H1">
<script src="../../../js/fichier_requis.js"></script>
<link rel="stylesheet" type="text/css" href="../../../css/fichier_requis.css" />
<desc> Desc 1 </desc>
<test name="Titre H2">
<desc> Desc 2 </desc>
<assertions name="Titre H3">
<desc> Desc 3 </desc>
<value><![CDATA[
/* Code JavaScript à évaluer avant les tests */
]]></value>
<assert> true </assert>
<assert><![CDATA[ false ]]></assert>
<assert><![CDATA[ (function(){throw new Error ( "Coucou" )})() ]]></assert>
...
</assertions>
...
</test>
...
</truth>
</pre>
</body>
</html>