Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / harness / override-preferences-2.html
blob8df4f83235aaaf1cd5a791ce09231ac4d33dc8cc
1 <html>
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsText();
5 testRunner.overridePreference("WebKitDefaultFontSize", "24");
7 </script>
8 <body>
9 <p>This test verifies that testRunner can have its default preferences overriden.
10 This test verifies that the API will accept string values and also override the default font size.
11 You should see "PASS" below.</p>
12 <script>
13 var p = document.getElementsByTagName("p")[0];
14 if (!window.testRunner || window.getComputedStyle(p).fontSize == "24px")
15 document.write("PASS");
16 </script>
17 </body>
18 </html>