blob: 5b5dc6dd66c13966be399bea5ee8e7c6f934cf83 (
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
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<script>
test1 = "FAIL";
var test2 = "FAIL"
function test3() {
return "FAIL";
}
</script>
<script>
function test1() {
return "SUCCESS";
}
function test2() {
return "SUCCESS";
}
function test3() {
return "SUCCESS";
}
shouldBeTrue("typeof test1 == 'function'");
shouldBeTrue("typeof test2 == 'function'");
shouldBeTrue("typeof test3 == 'function'");
shouldBe("test3()", '"SUCCESS"');
</script>
</body>
</html>
|