diff options
Diffstat (limited to 'dom/base/test/test_appname_override.html')
-rw-r--r-- | dom/base/test/test_appname_override.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dom/base/test/test_appname_override.html b/dom/base/test/test_appname_override.html new file mode 100644 index 0000000000..bf1162a900 --- /dev/null +++ b/dom/base/test/test_appname_override.html @@ -0,0 +1,26 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=939445 +--> +<head> + <meta charset="utf-8"> + <title>Test for Bug 939445 - general.appname.override</title> + <script src="/tests/SimpleTest/SimpleTest.js"></script> + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=939445">Mozilla Bug 939445</a> + <script type="application/javascript"> + + function runTest() { + is(navigator.appName, "hello", "general.appname.override not working"); + + SimpleTest.finish(); + } + + SimpleTest.waitForExplicitFinish(); + SpecialPowers.pushPrefEnv({"set": [["general.appname.override", "hello"]]}, runTest); + </script> +</body> +</html> |