Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Commit 4b9af40

Browse files
prasunanandarschmitz
authored andcommitted
Performance: Add Kendo-ui buttons to performance tests
Closes gh-55
1 parent 96ce18f commit 4b9af40

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

performance/frameworks/kendo-ui.js

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
module.exports = {
2+
css: [ "//cdn.kendostatic.com/2014.1.318/styles/kendo.common.min.css",
3+
"//cdn.kendostatic.com/2014.1.318/styles/kendo.default.min.css",
4+
"//cdn.kendostatic.com/2014.1.318/styles/kendo.dataviz.min.css",
5+
"//cdn.kendostatic.com/2014.1.318/styles/kendo.dataviz.default.min.css",
6+
"//cdn.kendostatic.com/2012.1.318/styles/kendo.mobile.all.min.css"
7+
],
8+
button: {
9+
generator: function( options ) {
10+
var button = "<button class='" + options.type + " " + options.state + " " +
11+
options.disabled + "' >";
12+
if ( options.icon ) {
13+
button = button + "<span class='k-sprite k-icon " + options.icon + "'></span>";
14+
}
15+
return button + " Button </button>";
16+
},
17+
variations: {
18+
type: [
19+
"k-button",
20+
"km-button"
21+
],
22+
state: [
23+
"",
24+
"k-primary"
25+
],
26+
disabled: [
27+
"",
28+
"k-state-disabled"
29+
],
30+
icon: [
31+
false,
32+
"k-i-funnel",
33+
"k-i-funnel-clear",
34+
"k-i-refresh"
35+
]
36+
}
37+
}
38+
};

tasks/options/perfjankie.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ module.exports = {
3636
"http://localhost:4200/framework/semantic-ui/component/button/count/1000/" +
3737
"semantic-ui:button",
3838
"http://localhost:4200/framework/dojo/component/button/count/1000/" +
39-
"dojo:button"
39+
"dojo:button",
40+
"http://localhost:4200/framework/kendo-ui/component/button/count/1000/" +
41+
"kendo-ui:button"
4042
]
4143
}
4244
}

0 commit comments

Comments
 (0)