chromium/third_party/blink/web_tests/fast/dom/jsDevicePixelRatio.html

<html>
<body>

<script>
    if (window.testRunner)
        testRunner.dumpAsText();
    document.write("The user interface scale factor is " + devicePixelRatio + ".");
</script>

</body>
</html>