<html> | |
<script> | |
if (window.testRunner) { | |
testRunner.dumpAsText(); | |
testRunner.overridePreference("WebKitDefaultFontSize", "24"); | |
} | |
</script> | |
<body> | |
<p>This test verifies that testRunner can have its default preferences overriden. | |
This test verifies that the API will accept string values and also override the default font size. | |
You should see "PASS" below.</p> | |
<script> | |
var p = document.getElementsByTagName("p")[0]; | |
if (!window.testRunner || window.getComputedStyle(p).fontSize == "24px") | |
document.write("PASS"); | |
</script> | |
</body> | |
</html> |