-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjusttest.html
More file actions
executable file
·85 lines (59 loc) · 1.93 KB
/
justtest.html
File metadata and controls
executable file
·85 lines (59 loc) · 1.93 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<head>
<link href="css/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery-1.8.3.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="wwwCuelib.js"> </script>
<style type="text/css">
.goodresult {background:#0000ff }
.badresult { background: #fef4cf;width: 180px; }
</style>
</head>
<body style="font-size:100%;">
<p>
<div id="TestStatus" style="text-align:left; width : 50px">
</div>
<div id="TestResult" style="text-align:center; " "> </div>
<div id="unitTest" >
</div>
<p> Object Properties </p>
<div id="ObjectProp" >
</div>
<script type='text/javascript'>
/**************************DOCUMENT READY *****************************************************************/
function iterateO(obj) {
for (var property in obj) {
if (obj.hasOwnProperty(property)) {
if (typeof obj[property] == "object")
iterateO(obj[property]);
else
console.log(property + " " + obj[property]);
$("#ObjectProp").append("<p>" + property + " " + obj[property] +"</p>");
}
}
}
function noCueProperties(acue) {
var exproperty = new Object();
exproperty.cueName = "cuName";
for (var property in acue) {
alert ("with :" + property);
// if (exproperty.hasOwnProperty(property)) {
if (property in exproperty){ alert ("property in cue :" + property) ; }
// }
} }
$(document).ready(function() {
var W = new WWW("noJones");
W.CollectWord("hello","first greetings");
//test case 4
W.CollectWord("morning" );
//test case 5placeCue
W.noJones.placeCue("hello" );
alert ("no jone alert " + W.noJones.cuepath );
alert ("no jone 2 alert " + W.noJones.hello.cuepath );
//test case ends */
// iterateO(noJones);
//
} );
</script>
</body>
</html>