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

Commit 073560b

Browse files
Rohit Mulangearschmitz
Rohit Mulange
authored andcommitted
Performance: Add Dojo Widgets to test suite
Closes gh-51
1 parent a9b1b04 commit 073560b

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

performance/frameworks/dojo.js

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
module.exports = {
2+
css: [ "//ajax.googleapis.com/ajax/libs/dojo/1.10.3/dijit/themes/claro/claro.css" ],
3+
button: {
4+
generator: function( options ) {
5+
var button = "<span class='claro'><span class='dijit dijitReset " +
6+
"dijitInline dijitButton'>" +
7+
"<span class='dijitReset dijitInline dijitButtonNode'>" +
8+
"<span class='dijitReset dijitStretch dijitButtonContents'>" +
9+
"<span class='dijitReset dijitInline dijitIcon";
10+
11+
// Show icon if Icon is set, or button type is only-icon
12+
if ( options.icon || options.type ) {
13+
button += " dijitEditorIcon dijitEditorIcon" + options.icon;
14+
} else {
15+
button += " dijitNoIcon";
16+
}
17+
18+
button += "'></span>" +
19+
"<span class='dijitReset dijitToggleButtonIconChar'>●</span>" +
20+
"<span class='dijitReset dijitInline dijitButtonText ";
21+
22+
// Check if Button text is to be displayed
23+
if ( options.type ) {
24+
button += " dijitDisplayNone";
25+
}
26+
27+
button += " '>button</span></span></span>" +
28+
"<input type='button' value='' class='dijitOffScreen' " +
29+
"aria-hidden='true'></span></span>";
30+
return button;
31+
},
32+
variations: {
33+
type: [
34+
"",
35+
"icon-only"
36+
],
37+
38+
icon: [
39+
"",
40+
"Cut",
41+
"Save",
42+
"Bold",
43+
"Underline",
44+
"Copy"
45+
]
46+
47+
}
48+
}
49+
};

tasks/options/perfjankie.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ module.exports = {
3434
"http://localhost:4200/framework/topcoat-mobile/component/button/count/1000/" +
3535
"topcoat-mobile:button",
3636
"http://localhost:4200/framework/semantic-ui/component/button/count/1000/" +
37-
"semantic-ui:button"
37+
"semantic-ui:button",
38+
"http://localhost:4200/framework/dojo/component/button/count/1000/" +
39+
"dojo:button"
3840
]
3941
}
4042
}

0 commit comments

Comments
 (0)