~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to ManualTests/memory/xhr-multiple-requests.html

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
2
 
 
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
4
         <head>
 
5
                  <title>TestWidget 1.3</title>
 
6
                  <script type="text/javascript">
 
7
                           var mainDiv;
 
8
                           var widgetID = "12345678";
 
9
                                             
 
10
                           function init() {
 
11
                                    mainDiv = document.getElementById( "main" );
 
12
                           
 
13
                                    if ( window.widget ) {
 
14
                                             widget.setCloseBoxOffset( 304, 16 );
 
15
                                             window.resizeTo( 640, 480 );
 
16
                                             //widgetID = widget.identifier;
 
17
                                    }
 
18
                           }
 
19
                                             
 
20
                           function getLocalMailIDList() {
 
21
                                    var storedLocalMailIDList = new Array();
 
22
                                    var xmlHttp = new XMLHttpRequest();
 
23
                                    xmlHttp.open("GET", "MessageUidsAlreadyDownloaded2", false);                                    
 
24
                                    xmlHttp.send(null);
 
25
                                    
 
26
                                    if (xmlHttp.readyState == 4) {
 
27
                                    }
 
28
                           }
 
29
                           
 
30
                           function getLocalMailIDList2() {
 
31
                                    var storedLocalMailIDList = new Array();
 
32
                                    var xmlHttp = new XMLHttpRequest();
 
33
                                    xmlHttp.open("GET", "MessageUidsAlreadyDownloaded2", false);                                    
 
34
                                    xmlHttp.send(null);
 
35
                                    
 
36
                                    
 
37
                                    if (xmlHttp.readyState == 4) {
 
38
                                    }
 
39
                           }
 
40
                           
 
41
                           function clear() {
 
42
                                    mainDiv.innerText = "C:\\>";
 
43
                           }
 
44
                           
 
45
                           function fillMyRam() {
 
46
                                    getLocalMailIDList2();
 
47
                                    setTimeout( "fillMyRam();", 500 );
 
48
                           }
 
49
                  </script>
 
50
         </head>
 
51
         
 
52
         <body onLoad="init();">
 
53
             <div><a href="javascript:fillMyRam();">fillMyRam</a></div>
 
54
         </body>
 
55
</html>