summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/harness/test/testdata/testharness/firefox/test_pref_dir.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/harness/test/testdata/testharness/firefox/test_pref_dir.html')
-rw-r--r--testing/web-platform/harness/test/testdata/testharness/firefox/test_pref_dir.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/harness/test/testdata/testharness/firefox/test_pref_dir.html b/testing/web-platform/harness/test/testdata/testharness/firefox/test_pref_dir.html
new file mode 100644
index 000000000..105d9070c
--- /dev/null
+++ b/testing/web-platform/harness/test/testdata/testharness/firefox/test_pref_dir.html
@@ -0,0 +1,10 @@
+<!doctype html>
+<title>Example pref test</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<p>Test requires the pref browser.display.foreground_color to be set to #FF0000</p>
+<script>
+test(function() {
+ assert_equals(getComputedStyle(document.body).color, "rgb(255, 0, 0)");
+}, "Test that pref was set");
+</script>