summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/annotation-model/tools/template_js
blob: 4be9fc8534e060d027f72e59194bdc2a00076f32 (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
37
<!doctype html>
<html>
<head>
<title>{{TESTTITLE}}</title>
<link rel="stylesheet" href="/resources/testharness.css">
<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>