forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6809b55
commit d961b60
Showing
8 changed files
with
632 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import './button.definition.js'; | ||
|
||
const itemRenderer = () => { | ||
const btn = document.createElement('fluent-button'); | ||
btn.appendChild(document.createTextNode('Fluent button')); | ||
return btn; | ||
}; | ||
|
||
export default itemRenderer; | ||
export { tests } from '../utils/benchmark-wrapper.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { tests } from '@tensile-perf/web-components'; | ||
import { webLightTheme } from '@fluentui/tokens'; | ||
import { setTheme } from '@fluentui/web-components'; | ||
|
||
const testWrapper = (test: any, args: any) => { | ||
setTheme(webLightTheme); | ||
return test(args); | ||
}; | ||
|
||
const wrappedTests = {}; | ||
|
||
for (const testName of Object.keys(tests)) { | ||
const test = tests[testName]; | ||
|
||
wrappedTests[testName] = (args: any) => { | ||
return testWrapper(test, args); | ||
}; | ||
} | ||
|
||
export { wrappedTests as tests }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"moduleResolution": "Node16", | ||
"noImplicitAny": false, | ||
"outDir": "dist/esm" | ||
}, | ||
"include": ["./src/**/*.bench.ts", "./src/utils/benchmark-wrapper.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.