~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/embedding/qa/jstests/sHistory/loadHistoryPage.html

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
2
 
 
3
<html>
 
4
<head>
 
5
<title>loadHistoryPage</title>
 
6
 
 
7
<! -- called from SHListenerTest.html.
 
8
   -- Sets the sHistory listener, and purges sHistory.
 
9
   -->
 
10
 
 
11
 
 
12
<script TYPE="text/javascript" src="nsISHistoryTestLib.js">
 
13
</script>
 
14
</head>
 
15
<body>
 
16
 
 
17
<script TYPE="text/javascript">
 
18
 
 
19
var tc ;
 
20
var debug=1;
 
21
 
 
22
function SetListener(listener)
 
23
{
 
24
   sHistory = sHistoryInit(window);     // js window
 
25
   ddump("loadHistoryPage.html: session history object = " + sHistory + "\n About to set listener\n");
 
26
   setSHistoryListener(sHistory, listener);
 
27
}
 
28
 
 
29
function ddump(s)
 
30
{
 
31
   if (debug==1)
 
32
     dump(s);
 
33
   else if (debug==2)
 
34
     alert(s);
 
35
}
 
36
 
 
37
function purgeTheEntries(entries)
 
38
{
 
39
   sHistory = sHistoryInit(window);  // js window
 
40
   ddump("session history object = " + sHistory + "\n About to purge history.\n");
 
41
   purgeEntries(sHistory, entries);
 
42
}
 
43
 
 
44
</script>
 
45
Loading Session History Listener testcase
 
46
</body>
 
47
</html>
 
48