mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-11 12:33:45 +03:00
22 lines
651 B
HTML
22 lines
651 B
HTML
<script src='modernizr.js'></script>
|
|
<body></body>
|
|
<script>
|
|
const report = {};
|
|
for (const name in Modernizr) {
|
|
if (name.startsWith('_'))
|
|
continue;
|
|
if (['on', 'testAllProps', 'testProp', 'addTest', 'prefixed'].includes(name))
|
|
continue;
|
|
let value = Modernizr[name];
|
|
report[name] = value;
|
|
}
|
|
|
|
report['devicemotion2'] = 'ondevicemotion' in window;
|
|
report['deviceorientation2'] = 'orientation' in window;
|
|
report['deviceorientation3'] = 'ondeviceorientation' in window;
|
|
|
|
document.body.style.whiteSpace = 'pre';
|
|
document.body.textContent = JSON.stringify(report, undefined, 4);
|
|
window.report = JSON.parse(document.body.textContent);
|
|
</script>
|