globalevents.html revision c28f85fdfe5f4318a887f384ac1e58d40414fdba
<PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>YUI io Global Events Tests</title>
</head>
<body class="yui3-skin-sam">
<h1>YUI io Global Events Tests</h1>
<script type="text/javascript">
(function() {
YUI({
base: "/build/",
filter: "debug",
logExclude: {
attribute: true,
dom: true,
node: true,
event: true,
base: true,
widget: true,
selector: true,
io: true
},
useConsole: true
}).use("test", "console", "io-base", function(Y) {
var console = new Y.Console().render();
var ioGlobalEventSuccessFlowTest = new Y.Test.Case(
{
name: 'Success flow test',
setUp: function() {
var t = this;
this.a0 = [];
this.a1 = ['start', 'complete', 'success', 'end'];
this.start = function(id, a) {
t.a0.push(a);
};
this.complete = function(id, o, a) {
t.a0.push(a);
};
this.success = function(id, o, a) {
t.a0.push(a);
};
this.end = function(id, a) {
t.a0.push(a);
};
this.resolve = function() {
for (var i=0; i < 4; i++) {
}
};
},
tearDown: function() {
},
testSuccessFlow: function() {
}
});
name: 'Failure flow test',
setUp: function() {
var t = this;
this.a0 = [];
t.a0.push(a);
};
t.a0.push(a);
};
t.a0.push(a);
};
t.a0.push(a);
};
this.resolve = function() {
for (var i=0; i < 4; i++) {
}
};
},
tearDown: function() {
},
testFailureFlow: function() {
this.wait(null, 1000);
}
});
Y.Test.Runner.add(ioGlobalEventSuccessFlowTest);
Y.Test.Runner.add(ioGlobalEventFailureFlowTest);
})
})();
</script>
</body>
</html>