Bug 1166870 - Fix permissions on settings event tests. a=test-only
authorKyle Machulis <kyle@nonpolynomial.com>
Wed, 20 May 2015 12:09:26 -0700
changeset 274667 7467f27001fde3c4db7dd0a17a4d50a90374807d
parent 274666 bde7a690aba57d8f07d76db31a8e96e8242403ec
child 274668 d00b220688b3eab30236cfe9af8b536fe34d235b
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs1166870
milestone40.0a2
Bug 1166870 - Fix permissions on settings event tests. a=test-only
dom/settings/tests/test_settings_events.html
--- a/dom/settings/tests/test_settings_events.html
+++ b/dom/settings/tests/test_settings_events.html
@@ -7,20 +7,24 @@ https://bugzilla.mozilla.org/show_bug.cg
   <title>Test for Bug 678695</title>
   <script type="application/javascript" 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=678695">Mozilla Bug 678695</a>
 <p id="display"></p>
 <div id="content" style="display: none">
-  
+
 </div>
 <pre id="test">
 <script type="application/javascript">
+SpecialPowers.addPermission("settings-api-read", true, document);
+SpecialPowers.addPermission("settings-api-write", true, document);
+SpecialPowers.addPermission("settings-read", true, document);
+SpecialPowers.addPermission("settings-write", true, document);
 
 /** Test for Bug 678695 **/
 
 var e = new MozSettingsEvent("settingchanged", {settingName: "a", settingValue: 1});
 ok(e, "Should have settings event!");
 is(e.settingName, "a", "Name should be a.");
 is(e.settingValue, 1, "Value should be 1.");