4
<title>YUI IO Instance Tests</title>
7
<body class="yui3-skin-sam">
8
<h1>YUI IO Instance Tests</h1>
10
<script type="text/javascript" src="../../../build/yui/yui.js"></script>
11
<script type="text/javascript">
15
base: "../../../build/",
28
}).use("test", "console", "io-base", function(Y) {
30
var console = new Y.Console().render();
32
var io_static_test = new Y.Test.Case({
33
name: 'Static Instance of Y.IO',
36
var instance1 = new Y.IO(),
37
static1 = Y.io('get.php?test=static', {});
39
Y.Assert.areEqual(instance1._uid, static1.io._uid);
43
var io_instance_test = new Y.Test.Case({
44
name: 'Compare IO Instances',
47
var instance1 = new Y.IO(),
48
instance2 = new Y.IO();
50
Y.Assert.areNotEqual(instance1, instance2);
54
var io_object_test = new Y.Test.Case({
55
name: 'IO Instance is an Object',
58
var instance1 = new Y.IO();
60
Y.Assert.isObject(instance1);
64
var io_instanceof_test = new Y.Test.Case({
65
name: 'Instance of Y.IO',
68
var instance1 = new Y.IO();
70
Y.Assert.isInstanceOf(Y.IO, instance1);
74
Y.Test.Runner.add(io_static_test);
75
Y.Test.Runner.add(io_instance_test);
76
Y.Test.Runner.add(io_object_test);
77
Y.Test.Runner.add(io_instanceof_test);