// Run in a standalone JS shell like // js -e 'var global={}' -f hwdetect.js -f test_data.js -f test.js > output.html // where test_data.js is a giant file that's probably not publicly available yet // (ask Philip if you want a copy), then look at output.html and make sure it's // applying the hwdetected settings in the appropriate cases print(""); print(""); print(""); print(""); print(""); print(""); print("
OS"); print("GL_RENDERER"); print("Disabled"); print("Warnings"); hwdetectTestData.sort(function(a, b) { if (a.GL_RENDERER < b.GL_RENDERER) return -1; if (b.GL_RENDERER < a.GL_RENDERER) return +1; return 0; }); for each (var settings in hwdetectTestData) { var output = RunDetection(settings); var os = (settings.os_linux ? "linux" : settings.os_macosx ? "macosx" : settings.os_win ? "win" : "???"); var disabled = []; for each (var d in ["audio", "s3tc", "shadows", "fancywater"]) if (output["disable_"+d] !== undefined) disabled.push(d+"="+output["disable_"+d]) print("
" + os); print("" + settings.GL_RENDERER); print("" + disabled.join(" ")); print("" + output.warnings.concat(output.dialog_warnings).join("\n")); } print("
");