/
ellipsenofill.html
105 lines (85 loc) · 3.76 KB
/
ellipsenofill.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<applet code="../../../common/tests/perf/nano.jar" archive="../../../common/tests/perf/nano.jar" style="display: none;"></applet>
<script type='text/javascript' src="../../../common/tests/perf/benchmark.js"></script>
<script src="../../../../build/yui/yui.js"></script>
<script src="../../../common/tests/perf/multi.js"></script>
<script src="ellipsenofill-benchmark.js"></script>
</head>
<body class='yui3-skin-sam'>
<p><button id="start">Start Benchmarks against Local YUI</button></p>
<p><button id="iframe-start" disabled='true'>Start Benchmarks against YUI3.7.3</button></p>
<div id="log"></div>
<script>
YUI({
'multi': {
fullpath: '../../../common/tests/perf/multi.js',
requires: ['event-custom']
},
'ellipsenofill-benchmark': {
fullpath: 'ellipsenofill-benchmark.js',
requires: ['graphics']
},
'skin-sam-test-console': {
fullpath: '../../../common/tests/assets/test-console.css',
type : 'css'
},
'test-console': {
fullpath : '../../../common/tests/assets/test-console.js',
requires : ['console-filters'],
skinnable: true
},
defaultGraphicEngine: (window.location.search.match(/[?&]defaultGraphicEngine=([^&]+)/) || [])[1] || 'svg',
filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'raw',
useBrowserConsole: false
}).use('graphics', 'multi', 'ellipsenofill-benchmark', 'skin-sam-test-console', 'test-console', function (Y) {
new Y.Console().render('#log');
var suite = Y.BenchmarkSuite,
start = Y.one('#start'),
iframeStart = Y.one("#iframe-start"),
iY;
var multi = new Y.Multi({
seeds: {
Y_373: {
test: 'ellipsenofill-benchmark',
url: 'http://yui.yahooapis.com/3.7.3/build/yui/yui.js',
use: ['graphics', 'ellipsenofill-benchmark']
}
}
});
multi.on('ready', function () {
iframeStart.set('disabled', false);
iY = multi.Y_373;
});
suite.on('start', function () {
Y.log('Starting benchmarks on local YUI.');
});
suite.on('cycle', function (ev) {
Y.log(String(ev.target));
});
suite.on('complete', function () {
start.set('disabled', false);
Y.log('Finished benchmarks on local YUI.');
});
start.on('click', function () {
suite.run({async:true});
});
iframeStart.on('click', function () {
var suite = iY.BenchmarkSuite;
suite.on('start', function () {
Y.log('Starting benchmarks on old YUI.');
});
suite.on('cycle', function (ev) {
Y.log(String(ev.target));
});
suite.on('complete', function () {
Y.log('Finished benchmarks on old YUI.');
});
suite.run({async:true});
})
});
</script>
</body>
</html>