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

Commit 49abcaf

Browse files
prasunanandarschmitz
authored andcommitted
Performance: Add semantic ui framework to tests
Closes gh-46
1 parent 6218462 commit 49abcaf

File tree

2 files changed

+61
-1
lines changed

2 files changed

+61
-1
lines changed

performance/frameworks/semantic-ui.js

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
module.exports = {
2+
css: [ "//cdnjs.cloudflare.com/ajax/libs/semantic-ui/1.11.1/semantic.min.css" ],
3+
button: {
4+
generator: function( options ) {
5+
var button = "<button class='ui button " + options.state + options.type +
6+
" " + options.size + options.color + options.misc + "' >";
7+
if ( options.icon ) {
8+
button = button + "<i class='icon " + options.icon + "'></i>";
9+
}
10+
return button + " Button </button>";
11+
},
12+
variations: {
13+
state: [
14+
" active",
15+
" disabled",
16+
" loading"
17+
],
18+
type: [
19+
"",
20+
" basic",
21+
" inverted"
22+
],
23+
icon: [
24+
"",
25+
" cloud",
26+
" underline",
27+
" left",
28+
" user"
29+
],
30+
size: [
31+
"",
32+
" mini",
33+
" tiny",
34+
" small",
35+
" medium"
36+
],
37+
color: [
38+
"",
39+
" black",
40+
" yellow",
41+
" green",
42+
" blue",
43+
" orange",
44+
" purple",
45+
" red",
46+
" pink",
47+
" teal"
48+
],
49+
misc: [
50+
"",
51+
" compact",
52+
" circular",
53+
" fluid",
54+
" toggle"
55+
]
56+
}
57+
}
58+
};

tasks/options/perfjankie.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ module.exports = {
3232
"http://localhost:4200/framework/topcoat/component/button/count/1000/" +
3333
"topcoat:button",
3434
"http://localhost:4200/framework/topcoat-mobile/component/button/count/1000/" +
35-
"topcoat-mobile:button"
35+
"topcoat-mobile:button",
36+
"http://localhost:4200/framework/semantic-ui/component/button/count/1000/" +
37+
"semantic-ui:button"
3638
]
3739
}
3840
}

0 commit comments

Comments
 (0)