diff options
Diffstat (limited to 'testing/web-platform/harness/test/testdata/testharness/firefox')
4 files changed, 40 insertions, 0 deletions
diff --git a/testing/web-platform/harness/test/testdata/testharness/firefox/subdir/test_pref_inherit.html b/testing/web-platform/harness/test/testdata/testharness/firefox/subdir/test_pref_inherit.html new file mode 100644 index 000000000..10b285194 --- /dev/null +++ b/testing/web-platform/harness/test/testdata/testharness/firefox/subdir/test_pref_inherit.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 #00FF00</p> +<script> +test(function() { + assert_equals(getComputedStyle(document.body).color, "rgb(255, 0, 0)"); +}, "Test that pref was set"); +</script> diff --git a/testing/web-platform/harness/test/testdata/testharness/firefox/subdir/test_pref_reset.html b/testing/web-platform/harness/test/testdata/testharness/firefox/subdir/test_pref_reset.html new file mode 100644 index 000000000..5c75c1160 --- /dev/null +++ b/testing/web-platform/harness/test/testdata/testharness/firefox/subdir/test_pref_reset.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 #00FF00</p> +<script> +test(function() { + assert_equals(getComputedStyle(document.body).color, "rgb(0, 0, 0)"); +}, "Test that pref was reset"); +</script> 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> diff --git a/testing/web-platform/harness/test/testdata/testharness/firefox/test_pref_set.html b/testing/web-platform/harness/test/testdata/testharness/firefox/test_pref_set.html new file mode 100644 index 000000000..8e5e2989b --- /dev/null +++ b/testing/web-platform/harness/test/testdata/testharness/firefox/test_pref_set.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 #00FF00</p> +<script> +test(function() { + assert_equals(getComputedStyle(document.body).color, "rgb(0, 255, 0)"); +}, "Test that pref was set"); +</script> |