~bac/juju-gui/trunkcopy

« back to all changes in this revision

Viewing changes to lib/yui/tests/yui/tests/assets/xframe.html

  • Committer: kapil.foss at gmail
  • Date: 2012-07-13 18:45:59 UTC
  • Revision ID: kapil.foss@gmail.com-20120713184559-2xl7be17egsrz0c9
reshape

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html>
2
 
<html>
3
 
<head>
4
 
<title>xframe tester</title>
5
 
<script type="text/javascript">
6
 
    function FakeArray() {
7
 
        // ok, if we put the index in the prototype we could fool
8
 
        // YAHOO.lang.isArray as long as the index is never
9
 
        // updated.  This isn't likely to happen unless someone
10
 
        // is trying very hard to break it.
11
 
        this.index=0; 
12
 
    }
13
 
 
14
 
    FakeArray.prototype.splice = function() {
15
 
        return this;
16
 
    };
17
 
 
18
 
    var str = "string",
19
 
        obj = {foo:"bar"},
20
 
        fun = function(){},
21
 
        arr = ["foo", "bar"],
22
 
        far = new FakeArray(),
23
 
        dat = new Date(),
24
 
        boo = false,
25
 
        num = 123.123,
26
 
        nul = null,
27
 
        el  = document.createElement('div'),
28
 
        und;
29
 
</script>
30
 
</head>
31
 
<body>
32
 
<h1></h1>
33
 
</body>
34
 
</html>