blob: e0c9ba18d82f2a952f6ee813c4e8fb6a4f02f2da (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<!DOCTYPE HTML>
<html>
<head>
<title id='desc'> DOMImplementation.hasFeature() with Events, 3.0 and 2.0</title>
<script type="text/javascript">
var PassTest = function()
{
document.getElementById("testresult").firstChild.data = "PASS";
}
var FailTest = function()
{
document.getElementById("testresult").firstChild.data = "FAIL";
}
window.onload = function()
{
try
{
var SupportEvents3 = document.implementation.hasFeature("Events", "3.0");
SupportEvents3 = SupportEvents3 && document.implementation.hasFeature("Events", "");
var SupportEvents2 = document.implementation.hasFeature("Events", "2.0");
if (SupportEvents3 && SupportEvents2)
{
PassTest();
}
else
{
FailTest();
}
}
catch(ex)
{
FailTest();
}
}
</script>
</head>
<body>
<h3>DOM Events</h3>
<h4>
Test Description: Since DOM Level 3 Events is built on top of DOM Level 2 Events, an
implementation that returns true for "Events" and "3.0" shall also return true for the
parameters "Events" and "2.0".
</h4>
<p>Test passes if the word "PASS" appears below.</p>
<div>Test result: </div>
<div id='testresult'>FAIL</div>
</body>
</html>
|