summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/annotation-model/tools/template_js
blob: 29b76b323f1c40e8c0aa4c05c3af32e95f663f97 (plain)
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
<!doctype html>
<html>
<head>
<title>{{TESTTITLE}}</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/annotation-model/scripts/ajv.min.js"></script>
<script src="/annotation-model/scripts/JSONtest.js"></script>
<script>
setup( { explicit_done: true } );

var theDefinitions=[
  {{SCHEMADEFS}}
];

var theTestFile="{{TESTFILE}}";

var runningTest = new JSONtest( {
    "schemaDefs"  : theDefinitions,
    "testFile"    : theTestFile
} ) ;

var c;

runningTest.Promise.then(function(test) {
  test.runTests(test.Assertions, test.Test.content);
  done();
});
</script>
</head>
<body>
<div id="testDescription"></div>
<p>The following assertions are being evaluated:</p>
<div id="assertion"></div>
</body>
</html>