summaryrefslogtreecommitdiffstats
path: root/dom/base/test/test_appname_override.html
blob: bf1162a90083c61b0a03085f64c7c645851b96d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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>