/
transition.html
71 lines (59 loc) · 1.65 KB
/
transition.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Benchmarks</title>
<style>
#demo {
background: #ccc;
width: 100px;
height: 100px;
}
</style>
</head>
<body class="yui3-skin-sam">
<p><button id="start">Start Benchmarks</button></p>
<div id="log"></div>
<div id="demo"></div>
<applet code="nano" archive="https://github.com/bestiejs/benchmark.js/raw/v1.0.0/nano.jar" style="display: none;"></applet>
<script src="http://pieisgood.org/misc/benchmark/benchmark.js"></script>
<script src="../../../../build/yui/yui.js"></script>
<script>
var Y = YUI({
modules: {
'transition-benchmark': {
fullpath: 'transition-benchmark.js',
requires: ['transition']
},
'test-console': {
fullpath : '../../../common/tests/assets/test-console.js',
requires : ['console-filters'],
skinnable: true
},
'skin-sam-test-console': {
fullpath: '../../../common/tests/assets/test-console.css',
type : 'css'
}
},
useBrowserConsole: false
}).use('transition-benchmark', 'test-console', function (Y) {
var suite = Y.BenchmarkSuite,
start = Y.one('#start');
suite.on('start', function () {
start.set('disabled', true);
Y.log('Starting benchmarks.');
});
suite.on('cycle', function (bench) {
Y.log(String(bench));
});
suite.on('complete', function () {
start.set('disabled', false);
Y.log('Finished.');
});
start.on('click', function () {
suite.run(true);
});
});
</script>
</body>
</html>